[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] how do I increase a LVM based xen domU?
On Fri, Sep 19, 2008 at 09:09:33AM +0200, Rudi Ahlers wrote: > On Thu, Sep 18, 2008 at 9:07 AM, Pasi Kärkkäinen <pasik@xxxxxx> wrote: > > > > > > > > > Can someone please tell me what commands I need to run to resize the LVM? > > > > > > > I assume you have those LVM volumes in dom0. > > > > - lvextend the volume in dom0. > > - run "cat /proc/partitions" in domU. Check the size of xvda. > > - shutdown domU and start it up again (to pick up the new size for xvda > > from the extended lvm volume) > > - run "cat /proc/partitions" in domU. Verify xvda is bigger now. > > - create new partition to xvda, or resize existing partition (you can only > > grow the last partition easily) > > > I've come this far, and can add a new partition to the domU, but ideally I'd > like to have one partition, since we're installing cPanel (and splitting the > data across partitions confuses some people & scripts. ) > > > > > > > - mkfs.ext3 the new partition or resize2fs the existing partition you just > > grew by editing the xvda partition table. > > > > If I understand this correctly, this will format the partition, and I will > loose all data on it, right? > mkfs.ext3 will format, yes, and you loose all the data. resize2fs will resize (grow) existing partition, not loosing any data. Backups are good to have anyway. -- Pasi _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |