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

RE: [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


 


Rackspace

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