Hi,
I've been using qemu-img resize for a few days now, seems fine.
But if I du the VMs image file, it still shows the size before resizing.
Inside that VM, the new size shows correctly.
Is qemu-img resize the right tool for this?
Once I qemu-img resize, I then use various fdisk/ LVM tools, etc... to resize within the VM just incase you all were wondering.
- aurf
Sorry folks.
Didn't realize resize creates a sparse file.
All good.
Gotta say, resize/lvm rocks.
- aurf
On Jun 6, 2013, at 5:44 PM, aurfalien wrote:
Hi,
I've been using qemu-img resize for a few days now, seems fine.
But if I du the VMs image file, it still shows the size before resizing.
Inside that VM, the new size shows correctly.
Is qemu-img resize the right tool for this?
Once I qemu-img resize, I then use various fdisk/ LVM tools, etc... to resize within the VM just incase you all were wondering.
- aurf
On Fri, Jun 7, 2013 at 6:14 AM, aurfalien aurfalien@gmail.com wrote:
I've been using qemu-img resize for a few days now, seems fine.
But if I du the VMs image file, it still shows the size before resizing.
What is the format of the VM files? qcow2 format -- the file size will not grow until disk usage within the VM guest grows.
When you do qemu-img info <filename>, the size should be consistent with the increase in disk image.
Inside that VM, the new size shows correctly.
Additionally, you need to resize the file system residing in this image file.
Is qemu-img resize the right tool for this?
Yes,
HTH.