[Fedora-xen] How to expand the file created by xenguest-install?

Chris Hirsch chris at base2technology.com
Mon Apr 24 18:07:30 UTC 2006


Ben wrote:
> Yeah, you use LVM and grow you logical volume size, then expand it
> in the guest domain. I'm not sure, but I suspect you'd have to
> restart your guest before you can expand it.
But isn't the xvda just a file containing partitions and the like?
I've actually been wanting to do this myself WITH LVM. I'd LOVE to
have lvm extend the file itself.

I did find the trick extending an image:
dd if=/dev/zero  bs=1024 count=3500000 >> fedora.fc5.img
resize2fs -f fedora.fc5.img

and thats works great...The way I understand the xvda file is that
you'd have to copy out anything that is after the main image resize
the image (like above) and then append the old stuff back to the end
of the disk. I'd assume "stuff" here to mean something like swap.

Chris

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-xen/attachments/20060424/2f30c732/attachment.htm>


More information about the Fedora-xen mailing list