Re: qemu-img resize run on live VM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Jun 9, 2013 1:29 AM, "aurfalien" <aurfalien@xxxxxxxxx> wrote:
>
> Hi,
>
> I ran gemu-img on a VM thinking it was down but in fact it was live.
>
> I rebooted the VM and it does show the added space after running pv/lv etc to resize the disk, also the KVM server if you will, also shows the correct new size of that particular VMs raw file via du.
>
> However the virtual machine manager still shows the disk size of that VM as being before the resize.
>
> Is there a way that I can fix this?
>
> Is this a benign discrepancy?
>
> Thanks in advance,
>
> - aurf
> _______________________________________________
> CentOS-virt mailing list
> CentOS-virt@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos-virt

In virt-manager open the storage view and manually refresh.  It should then show the correct size.  Storage view I believe is under Edit -> Connection Details.

Also you may want look at using the virt-resize command to combine the steps of qemu-img and the LVM commands.  It can resize the virtual disk and the guest's logical volumes in a single command.

- Trey

_______________________________________________
CentOS-virt mailing list
CentOS-virt@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos-virt

[Index of Archives]     [CentOS Users]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [X.org]     [Xfree86]     [Linux USB]

  Powered by Linux