[libvirt-users] Hot resize virtio-scsi device with multipath device backend

Baptiste AGASSE baptiste.agasse at lyra-network.com
Mon Nov 18 10:56:23 UTC 2013


Hi all,

I'm currently testing virtio-scsi on EL6.4. I've seen that we can resize scsi disk without restarting the guest for qcow files backend for example (this point is well documented). I want to know if it's possible to "hot resize" a multipath device attached to a guest via virtio-scsi. I use multipath device hosted to a SAN array to store data used on virtual guests. I've attached this device with virtio-scsi device to a guest. Now i want to resize this device without restarting my guest. I've resized the disk on my SAN array, refreshed iscsi connections and multipathed device to reflect the new size, but how to say to my guest that device have been resized ?

I've tried "echo 1 > /sys/class/scsi_disk/2\:0\:0\:2/device/rescan" in my guest but it didn't works. I think i'm missing a step (libvirt notify the guest that the device have changed ?) and i don't find any documentation about resizing direct attached physical device via virtio-scsi.

Is it possible to do this ?

kernel.x86_64         2.6.32-358.14.1.el6
libvirt.x86_64        0.10.2-18.el6_4.14
qemu-kvm.x86_64       2:0.12.1.2-2.355.0.1.el6_4.9

Have a nice day.

Regards.

Bapiste.




More information about the libvirt-users mailing list