Досталась мне тут инсталляция на libvirt и я полез в поиск искать способ ресайзить диски машине на лету. Рецептов в поиске куча, но они все тухлые. Как это сейчас делается?
ЗЫ. Блочные устройства виртуалок живут на LVM.
virsh qemu-monitor-command tarh-net --hmp "info block"
libvirt-pflash0-format: /usr/share/OVMF/OVMF_CODE_4M.ms.fd (raw, read-only)
Attached to: /machine/system.flash0
Cache mode: writeback
libvirt-pflash1-format: /var/lib/libvirt/qemu/nvram/tarh-net_VARS.fd (raw)
Attached to: /machine/system.flash1
Cache mode: writeback
sata0-0-0: [not inserted]
Attached to: sata0-0-0
Removable device: not locked, tray closed
libvirt-5-format: /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_boot-clone-7 (raw)
Attached to: /machine/peripheral/virtio-disk0/virtio-backend
Cache mode: writeback, direct
libvirt-4-format: /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_root-clone-7 (raw)
Attached to: /machine/peripheral/virtio-disk1/virtio-backend
Cache mode: writeback, direct
libvirt-3-format: /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_home-clone-7 (raw)
Attached to: /machine/peripheral/virtio-disk2/virtio-backend
Cache mode: writeback, direct
libvirt-2-format: /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_var-clone-7 (raw)
Attached to: /machine/peripheral/virtio-disk3/virtio-backend
Cache mode: writeback, direct
libvirt-1-format: /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_swap-clone-7 (raw)
Attached to: /machine/peripheral/virtio-disk4/virtio-backend
Cache mode: writeback, direct
virsh qemu-monitor-command tarh-net --hmp "block_resize libvirt-4-format 11G"
Error: Cannot find device='libvirt-4-format' nor node-name='
virsh domblklist tarh-net
Target Source
----------------------------------------------------------------
sda -
vda /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_boot-clone-7
vdb /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_root-clone-7
vdc /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_home-clone-7
vdd /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_var-clone-7
vde /dev/vg_S3Z8NB0JC02422N_00/dummy-ubuntu_swap-clone-7
virsh blockresize --domain tarh-net --path vdb --size 12g
error: Failed to resize block device 'vdb'
error: internal error: unable to execute QEMU command 'block_resize': Cannot grow device files
Помогите, пожалуйста.