[pve-devel] online resize of virtio-blk?

Stefan Priebe s.priebe at profihost.ag
Sun Jul 29 11:33:08 CEST 2012


Am 29.07.2012 09:01, schrieb Alexandre DERUMIER:
> just found this on ceph tracker;
> http://tracker.newdream.net/issues/2232
>
> I tested this on Friday, and qemu rereads the size (at least when using
> virtio) when the guest requests it (i.e. echo 1 | sudo tee
> /sys/bus/pci/rescan).

doesn't work for me:

~# blockdev --getsize64 /dev/vda
21474836480

~# echo 1 > /sys/bus/pci/rescan

~# blockdev --getsize64 /dev/vda
21474836480

But lvs show the correct size of 30GB:
~# lvs
   vm-100-disk-1 pve  -wi-ao-- 30.00g

Stefan



More information about the pve-devel mailing list