[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Rudi Ahlers" <rudiahlers@xxxxxxxxx>
  • Date: Thu, 18 Sep 2008 08:31:28 +0200
  • Delivery-date: Wed, 17 Sep 2008 23:32:05 -0700
  • 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=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.