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

[Libguestfs] Re: can libquestfs reduce partition size (.img size)



On Sat, Jul 25, 2009 at 01:53:56AM -0500, Paul Lambert wrote:
> I looked at the help for this app.  Not sure it is capable of reducing  
> the image size of a qemu image size.  I have a 115 gb partition that I  
> need to reduce to 30gb so I reclaim more disk space other VM machines.   

It can usually do this, but it depends what exactly is inside the qemu
image.  See:

http://libguestfs.org/recipes.html#resize
http://libguestfs.org/guestfs.3.html#guestfs_lvresize
http://libguestfs.org/guestfs.3.html#guestfs_pvresize
http://libguestfs.org/guestfs.3.html#guestfs_resize2fs
http://libguestfs.org/guestfs.3.html#guestfs_sfdisk_n

Rich.

-- 
Richard Jones, Emerging Technologies, Red Hat  http://et.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v


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