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

[Xen-users] how do I increase a LVM based xen domU?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] how do I increase a LVM based xen domU?
From: "Rudi Ahlers" <rudiahlers@xxxxxxxxx>
Date: Thu, 18 Sep 2008 08:31:28 +0200
Delivery-date: Wed, 17 Sep 2008 23:32:05 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=IPhNZkOo/haqny/0FZREn9ym/oMWDhHjA7HM6Y6Yf1w=; b=LF6I1U/6t7iJrXLWuArsd/Do7y6+YWkgSRS0zPKybKQsJLWNudNjcDhFGHYcjWfIfU rs9cSoXpzxh0LzEybnqE47B33Jehx7JnbDfGCwo8SycnPk8WpifRjnLOjAYGX3S418l4 LxyhCyucdCiAsieIK6/IsAOczYe2shErBxP88=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ibTJE4rHdiuSkwbv7Hb5kgjt9fWjpcDbef7kqmw5axOic6M33ziTsv0SQ1YgRO2aWP pJbPr/3P7mq7QKMS9R0Z2GlhwVZu9+SWp++ZPqs2EJCwrZVYVPiUt5GSOeLseUmfEkXM G+Fy4+yzkaFuvORPbul+BdNRlPmhi742oNBd0=
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/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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi all

I know for many this is probably an easy answer, but I just can't figure it out. 

How do I increase the size of a xen domU that's installed on a LVM partition?

From what I can gather from Google searches, is that I need to use lvextend, but that doesn't seem enough. 

So, what do I need todo to extend a 5GB LVM to say 8GB?

I have the following setup:

[root@saturn plugins]# lvscan
  ACTIVE            '/dev/System/root' [10.00 GB] inherit
  ACTIVE            '/dev/System/swap' [4.00 GB] inherit
  ACTIVE            '/dev/System/pluto' [50.00 GB] inherit
  ACTIVE            '/dev/System/home' [10.00 GB] inherit
  ACTIVE            '/dev/System/data' [20.00 GB] inherit
  ACTIVE            '/dev/System/andrew_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/andrew_rootimg' [5.00 GB] inherit
  ACTIVE            '/dev/System/keith_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/keith_rootimg' [5.00 GB] inherit
  ACTIVE            '/dev/System/12_vmswap' [1.00 GB] inherit
  ACTIVE            '/dev/System/12_rootimg' [5.00 GB] inherit
  ACTIVE   Original '/dev/System/wiseguy_rootimg' [10.00 GB] inherit
  ACTIVE            '/dev/System/wiseguy' [5.00 GB] inherit
  ACTIVE   Snapshot '/dev/System/oldcpanel' [32.00 MB] inherit



And I would like to increase the size of /dev/System/wiseguy



Inside the domU, I get the following:


root@server [/scripts]# fdisk -l

Disk /dev/xvda: 5368 MB, 5368709120 bytes
255 heads, 63 sectors/track, 652 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot      Start         End      Blocks   Id  System
/dev/xvda1   *           1          13      104391   83  Linux
/dev/xvda2              14         652     5132767+  83  Linux




Can someone please tell me what commands I need to run to resize the LVM?



--

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