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] Resizing partitions on a VM sitting on a LVM volume

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] Resizing partitions on a VM sitting on a LVM volume
From: Erich Weiler <weiler@xxxxxxxxxxxx>
Date: Fri, 11 Jan 2008 09:52:12 -0800
Cc: Alain BARTHE <alain.barthe@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 18 Jan 2008 09:55:33 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200801111744.29633.mark.williamson@xxxxxxxxxxxx>
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>
References: <4785622E.3070808@xxxxxxxxxxxx> <200801111350.26478.mark.williamson@xxxxxxxxxxxx> <4787AA89.2090906@xxxxxxxxxxxx> <200801111744.29633.mark.williamson@xxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20071220)
Ya, it basically worked OK.

1: kpartx -a /dev/myvg/mylv
2: Resize partition using fdisk (delete old partition, recreate new one with a larger size, note that the file system remains on the partition)
3: Reboot Dom0
4: kpartx -a /dev/myvg/mylv  (again)
5: e2fsck -y /dev/myvg/mylv5
6: resize2fs -p /dev/myvg/mylv5

That's basically it.

Mark Williamson wrote:
Out of interest, did resizing the ext3 filesystem itself work properly once you'd enlarged the partition? Did you just use resize2fs?

Cheers,
Mark

On Friday 11 January 2008, Erich Weiler wrote:
Partition 5 is formatted with ext3.  parted isn't liking this but i think
that's because it's having trouble resizing the ext3 filesystem, rather
than because it can't resize the partition itself.

Is the filesystem mounted at the time?  Maybe it can't be live-resized?
No, the file system was definitely not mounted at the time.  I was able
to do this using fdisk as Alain suggested earlier.  Thanks for offering
your advice though!

-erich




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