This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# "kubectl top nodes" based -> metric-servers or heapster needed | |
# possible CSV output w/o line 21 | |
# | |
# output example: | |
# worker-1: 2 % ; 5 % memory | |
# worker-2: 10 % ; 86 % memory | |
# 2019/10/04,17.43.08,CPU & RAM,6%,45% | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# qcow2 -> qcow2compress | |
qemu-img convert -O qcow2 -c vm-103-disk-0.qcow2 vm-103-disk-0-comp.qcow2 | |
# lvm-thin -> qcow2 | |
qemu-img convert -O qcow2 /dev/lvm-thin/vm-103-disk-1 vm-103-disk-1.qcow2 | |
# lvm-thin -> qcow2compress oneline | |
qemu-img convert -O qcow2 -c $(pvesm path lvm-thin:vm-103-disk-1) vm-103-disk-1.qcow2 | |
# qcow2 -> raw |
NewerOlder