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

Re: RAW / Qcow disk image online resizing


  • To: xen-users@xxxxxxxxxxxxx
  • From: Charles Koprowski <charles@xxxxxxxxxx>
  • Date: Thu, 23 Dec 2021 12:45:10 +0100
  • Delivery-date: Thu, 23 Dec 2021 11:46:16 +0000
  • List-id: Xen user discussion <xen-users.lists.xenproject.org>

I found from https://documentation.suse.com/fr-fr/sles/12-SP5/html/SLES-all/cha-xen-admin.html#sec-xen-config-sparse that we can propagate the new size of a RAW image with losetup.

First detect the correct loop device with the command:

losetup -j /path/to/disk.img

Then resize the loop device, for example /dev/loop0, with the following command:

losetup -c /dev/loop0

But I have not yet found an equivalent for Qcow.

Regards,

Le mar. 21 déc. 2021 à 13:34, Charles Koprowski <charles@xxxxxxxxxx> a écrit :
Hello,

Is it possible to expand the disk capacity of a domU that uses a RAW or Qcow disk image?

I usually do this with domUs whose disks are LVM volumes using lvextend from the dom0 and then resize2fs from the domU.

But when I extend a RAW or Qcow image with qemu-img extend, the new disk size is not propagated to the domU until the next reboot.

Thank you

Regards,

--
Charles


--
Charles 

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.