WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

RE: [Xen-users] RE: domU lvm and resizing40

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] RE: domU lvm and resizing40
From: "Ben Winzenz" <Ben_Winzenz@xxxxxxxxxxxxxx>
Date: Fri, 10 Mar 2006 12:53:50 -0600
Delivery-date: Fri, 10 Mar 2006 18:54:53 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcZEcMIMYWf4asw9TFyalGszYuJxGQAAfcnQ
Thread-topic: [Xen-users] RE: domU lvm and resizing40
The way I've done it in the past is:

1.  Make sure that xen domain is shut down that you are re-sizing
2.  Run lvextend (you've already done this)
3.  Run e2fsck -f [logical volume name] (i.e. /dev/domain0/lvname)
4.  Run resize2fs [volume name] [new size in G of LV] (i.e. resize2fs
/dev/domain0/lvname 8G
5.  Start up vm.  New size should be reflected now.

HTH

-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of John S
Little
Sent: Friday, March 10, 2006 12:30 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] RE: domU lvm and resizing40

Ben..
> 
> Depends on what OS you are using.  For RHEL4, you can use either

oops-I'm using SlES 9 sp3.

> resize2fs (requires you to first run e2fsck), or (better choice) you 
> can

I tried resize2fs but maybe I didn't do right.  I ran it from dom0
against the lv /dev/xenlocal/xen0vm1 volume.  Is that the correct way
for a vm?

> also run ext2online, which doesn't require running e2fsck, but rather

ext2online looks as though it should be a part of ext2resize but if SuSE
is using it I haven't been able to find it.

> resizes it online.
> 
> Ben
> 

FWIW if I open yast from the vm and look at the partition manager it
also shows the new size.

Thanks,
John


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users




_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>