Libvirt blockresize » История » Редакция 3
Редакция 2 (Андрей Волков, 2013-06-27 18:47) → Редакция 3/4 (Андрей Волков, 2013-06-27 18:48)
h1. Libvirt blockresize host: # *lvresize -L +44g mirror/kvm602-guest-storage* <pre> Using stripesize of last segment 64.00 KiB Extending logical volume kvm602-guest-storage to 92.00 GiB Logical volume kvm602-guest-storage successfully resized </pre> host: # *lvs --units k mirror/kvm602-guest-storage* <pre> LV VG Attr LSize kvm602-guest-storage mirror -wi-ao 96468992.00k </pre> host:~# *virsh* <pre> Welcome to virsh, the virtualization interactive terminal. Type: 'help' for help with commands 'quit' to quit </pre> virsh # *list* <pre> virsh # list Id Name State ---------------------------------------------------- ... 7 kvm602-guest running ... </pre> virsh # *domblklist kvm602-guest* <pre> Target Source ------------------------------------------------ vda /dev/mirror/kvm602-guest-root vdb /dev/mirror/kvm602-guest-storage </pre> virsh # *blockresize kvm602-work-backup --path /dev/mirror/kvm602-guest-storage --size 96468992* <pre> Block device '/dev/mirror/kvm602-work-storage' is resized </pre> guest # *dmesg |tail* <pre> [838729.810179] vdb: detected capacity change from 51539607552 to 98784247808 </pre> guest # *blockdev --rereadpt /dev/vdb* guest # *pvresize /dev/vdb* <pre> Physical volume "/dev/vdb" changed 1 physical volume(s) resized / 0 physical volume(s) not resized </pre>