Extending Linux Logical Volume

November 2, 2010 by
Filed under: Notes 

Thanks to this page

First, find the volume in /dev/. On the server, this was in /dev/cciss/:

# ls
c0d0 c0d0p1 c0d0p2 c0d1 c0d1p1

c0d0 was already in the Logical Volume; we want to add c0d1.
# pvcreate /dev/cciss/c0d1p1
Physical volume "/dev/cciss/c0d1p1" successfully created

Then
vgextend VolGroup00 /dev/cciss/c0d1p1
Volume group "VolGroup00" successfully extended

Need to have installed system-config-lvm. This is a graphical tool where you can go into the Logical View of VolGroup00, “Edit Properties”, and reset the size (“Use remaining”). Click “OK” and wait for the volume to get bigger.

Comments

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!