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] DomU guest - resize disk on LVM?

To: "'Gerd Hoffmann'" <kraxel@xxxxxxx>, "'Robin Bowes'" <robin-lists@xxxxxxxxxxxxxx>
Subject: RE: [Xen-users] DomU guest - resize disk on LVM?
From: "Roger Lucas" <roger@xxxxxxxxxxxxx>
Date: Tue, 31 Oct 2006 14:04:55 -0000
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 02 Nov 2006 13:37:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <454708EC.6050201@xxxxxxx>
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: Acb8xn0lqakiCZLqR/q1o5ZhZ/O4XgALsAig
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On
> Behalf Of Gerd Hoffmann
> Sent: 31 October 2006 08:27
> To: Robin Bowes
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] DomU guest - resize disk on LVM?
> 
> Robin Bowes wrote:
> > I can increase the size of the under-lying logical volume
> > (/dev/vg01/lv_bah_vm) e.g increase it from 10GB to 15GB. But, even
> > though I've resized the under-lying LV, the PV in the Xen guest is still
> > only 10GB.
> >
> > How do I get the PV inside the Xen guest to reflect the increased size
> > of the under-lying disk, i.e. appear to be 15GB?
> 
> I think you can't resize PVs.  How about creating a new /dev/hda3
> partition (inside the guest) using the new disk space, create a new pv
> there, add that to the volume group?

Recent versions of LVM should include the "pvresize" command which does exactly 
what you require.  There are also long discussions
on the LVM mailing list for how to achieve a PV resize effect on older systems 
where the pvresize command doesn't exist.

BR,

Roger


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