Skip to content

Instantly share code, notes, and snippets.

@lsowen
Created June 28, 2016 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsowen/57cdf24174fb0c054c1ea71cf4dd71f3 to your computer and use it in GitHub Desktop.
Save lsowen/57cdf24174fb0c054c1ea71cf4dd71f3 to your computer and use it in GitHub Desktop.
Quick notes on size a KVM guest (which uses LVM) up
On supervisor:
lvextend -L50G /dev/vg_kvmhost01/test-01.img
virsh qemu-monitor-command util-02 --hmp "info block"
virsh qemu-monitor-command util-02 --hmp "block_resize drive-virtio-disk0 50G"
On VM:
http://unix.stackexchange.com/a/42910
reboot
pvresize /dev/vda2
lvresize --resizefs -L+10G /dev/VG/lv_root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment