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] How to expand LVM without create new drive?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] How to expand LVM without create new drive?
From: Mark Dokter <dokter@xxxxxxxxxxxxx>
Date: Wed, 31 Aug 2011 18:47:03 +0200
Delivery-date: Wed, 31 Aug 2011 09:48:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tugraz.at; s=mailrelay; t=1314809232; i=@xxxxxxxxxxxxx; bh=Zg9YKIESwYhRQfvB9RvPQVjbKDx8LnkltlR5xQyiYRY=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=o6yp+QncuZyte28qtj+refmC0k6GqVQ/nFIgz/AZ37hqBQZmraEBSOOg2FBNjj+bb aac/r2VeHtewD4QbxGihY2zgkPuAWoyZQrZ1UtwCrRXwWFAD0iq/kZsms8GtAS+Tum Ga3Xcy+VNizy+meQ0Vbl5VUONlOWo6MEGfBbfW8s=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1314807313.59930.YahooMailRC@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1314807313.59930.YahooMailRC@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1
On 8/31/11 6:15 PM, Wendy William wrote:
> I now how to expand a LVM by creating a new drive as described here: 
> http://lists.centos.org/pipermail/centos/2007-February/032664.html, the steps 
> are:
> 

Hi!

> # pvcreate /dev/sda3
> # vgextend VolGroup00 /dev/sda3 
> 

That would be the easy and painless way.

> Now, I want to know how to expand a LVM without create /dev/sda3?
> 
> Suppose I have 2 GB free (unpartitioned) and LVM use /dev/sda2 (8 GB). How to 
> make /dev/sda2 become 10 GB? Then resize LVM to 10 GB.
> 

Resizing a partition/pv (sda2 in your case) doesn't really have to do
much (other than calling vgextend (?)) with lvm. What you need to do is
fire up your partitioning program (fdisk?), delete the partition and
recreate it with the same starting sector and set the last sector 2GB
further down the disk.

>  Regards, Wendy

hth, Mark

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

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