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] Resize lvm disk

To: "Matthias Ableitner" <spam@xxxxxxx>, "ko0nz" <yesiko0nz@xxxxxxxxx>
Subject: RE: [xen-users] Resize lvm disk
From: "Kraska, Joe A \(US SSA\)" <joe.kraska@xxxxxxxxxxxxxx>
Date: Tue, 14 Aug 2007 09:31:11 -0700
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 14 Aug 2007 09:31:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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: <1f7e0c110708120753w27446359hdd979dca5de40bd@xxxxxxxxxxxxxx> <46C18C32.9080108@xxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcfeYu5D7R1s2Vg0Tve0N8DFkVvomQALNWMQ
Thread-topic: [xen-users] Resize lvm disk
> did i forget something to have the new size of my guest image disk...?

Just because your guest has a larger hard drive does not mean that the
guest's operating system knows what to do with it. Two things are
required:

1. growing your partition
2. making your logical volume take in the extra partitioned space

The below should work:

% parted

(parted) print

Verify that the physical size of your disk matches the desired new size
of the disk

(parted)  mkpart primary <begin> <end>

"Begin" should be the end of the last partition in the list. "End"
should be the end of the disk size extent. 

(parted) print

Verify the existence of the new primary partition . It should have a
size equivalent to the INCREASE of the disk size

(parted) quit

% system-config-lvm

-- Or log onto VM go to console, under Applications at the top of the
window, go to System Settings, then Logical Volume Manager

 Left Panel->Select "Unitialized Entities"->Select ("the partition with
the right amount of size")

 Tools Menu->Initialize Block Device

 Panel Select Button->Add to existing Volume Group

 Left Panel->Select Volume Groups->Select VolGroup00->Select VolGroup00
Logical View->Select LogVol00

 Click "Edit Properties"

 Drag the Size Slider all the way to the right.

 File->Quit

% df -k

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

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