Re: resizing Xen para-virtualized guest partition

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

 



On Mon, 7 May 2007, Chris Lalancette wrote:

> > like to grow it to 20GB.   Can I do this with it being just a file on Dom0.
> > The only possible solution I can think of is creating a new domU as 20GB and
> > then doing a dd command and copying one virutal disk to another.  But I
> > would like to just grow the guest, if possible.
> > Thanks
> > Terry
> >
>
> There are two possible ways to do this; both rely on using LVM inside the
> guest to expand the LV.

> 1)  You should just be able to append data to the end of the disk in the dom0
> (something like "dd if=/dev/zero count=10G >> /var/lib/xen/images/guest.dsk),
> and use "pvresize", vgextend, lvextend, and resize2fs inside the guest to
> expand the disk.

You do not need LVM for that provided you have the disk space on the dom0:

dd if=/dev/zero bs=1M count=1024 >> /var/lib/xen/images/guest.dsk
e2fsck -f /var/lib/xen/images/guest.dsk
resize2fs /var/lib/xen/images/guest.dsk
e2fsck -f /var/lib/xen/images/guest.dsk

Paul

--
Fedora-xen mailing list
Fedora-xen@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-xen

[Index of Archives]     [Fedora General]     [Fedora Music]     [Linux Kernel]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux