I have a virtio disk mounted to a KVM guest, backed by an LVM logical volume. I increased the size of the logical volume with lvresize
on the KVM host machine.
Then I had to issue virsh pool-refresh
to make the KVM host aware of the volume size change. Now if I check the volume in virt-manager
, I see the correct disk size. But the guest OS still sees the disk by its old size no matter what.
How can I force the Linux kernel to rescan virtio disks without rebooting the guest?
The other solutions I found were not specific to virtio and they didn't work.
Like echo "- - -" > /sys/class/scsi_host/host0/scan
should work for SCSI disks, but not virtio. Another tip, echo 1 > /sys/block/vda/device/rescan
doesn't work because the rescan
file doesn't exist.
So do you know about any virtio specific tip to have my virtio disk rescanned?