[libvirt-users] vol-info showing old disk size

Hi, I just resized the disk image of a virtual machine by following the recommended virt-resize procedure. The enlarged disk is working fine, and the size is correctly detected and used in the virtual machine. But "virsh vol-info /path/to/imagefile" still shows the old size and allocation. Is there a way to "fix" this, i.e. making virsh aware of the new size? Thanks. Marco

On 09/12/2014 07:57 AM, Zero Uno wrote:
Hi, I just resized the disk image of a virtual machine by following the recommended virt-resize procedure. The enlarged disk is working fine, and the size is correctly detected and used in the virtual machine. But "virsh vol-info /path/to/imagefile" still shows the old size and allocation. Is there a way to "fix" this, i.e. making virsh aware of the new size?
Type of volume/pool? Version? Platform? Need just a few more details.... Tks, John
Thanks. Marco
_______________________________________________ libvirt-users mailing list libvirt-users@redhat.com https://www.redhat.com/mailman/listinfo/libvirt-users

2014-09-12 17:26 GMT+02:00 John Ferlan <jferlan@redhat.com>:
On 09/12/2014 07:57 AM, Zero Uno wrote:
The enlarged disk is working fine, and the size is correctly detected and used in the virtual machine. But "virsh vol-info /path/to/imagefile" still shows the old size and allocation. Is there a way to "fix" this, i.e. making virsh aware of the new size?
Type of volume/pool? Version? Platform? Need just a few more details....
Hi, sorry for replying so late. Michal's suggestion (virsh pool-refresh $pool) actually fixed my problem, vol-info now shows the new capacity and allocation values. Before trying his suggestion, I noticed that it was showing the old capacity (10.00 GiB) but it did show the new, larger, allocation (31,77 GiB), which doesn't make much sense. When I wrote the request to this list it was still showing the old allocation, too. Anyway, just for the record: the pool is of type "dir", the volume is in qcow2 format, the platform is Fedora 19 and here is the version output: # virsh version Compiled against library: libvirt 1.0.5 Using library: libvirt 1.0.5 Using API: QEMU 1.0.5 Running hypervisor: QEMU 1.4.2 Thanks. Marco

On 12.09.2014 13:57, Zero Uno wrote:
Hi, I just resized the disk image of a virtual machine by following the recommended virt-resize procedure. The enlarged disk is working fine, and the size is correctly detected and used in the virtual machine. But "virsh vol-info /path/to/imagefile" still shows the old size and allocation. Is there a way to "fix" this, i.e. making virsh aware of the new size?
virsh pool-refresh $pool may help, where $pool is the name that volume resides in. Michal
participants (3)
-
John Ferlan
-
Michal Privoznik
-
Zero Uno