Results 1 to 5 of 5
Ok, I'm a little lost here.
I have a vmware image of "Fedora Core 6" running on my windows xp host. I increased the allocated disk size using vmware. Now ...
- 01-19-2007 #1
Increase size of LVM on FC6 VMware image
Ok, I'm a little lost here.
I have a vmware image of "Fedora Core 6" running on my windows xp host. I increased the allocated disk size using vmware. Now I have to find a way to add the new space into my LVM. My new space is recognized as /dev/sda3 and I changed the type to "8e" (aka: LVM).
I apparently have 2 Logical Volumes: "LogVol00" and "LogVol01" in my Volume Group: "VolGroup00". When i checked /etc/fstab I found that "LogVol00" was "/" and "ext3"... and that "LogVol01" was "swap".
So I figure, i just have to extend my /dev/VolGroup00/LogVol00 using my newly created space on the vmware image.
I've done some serious reading, and I know I have to use the pvcreate, vgextend, and lvextend commands, but I am very unsure of what parameters to use and how.
How do I use these commands, what should I do from here?
- 01-20-2007 #2
It's pretty easy. You've already created the physical volume correct? So now in the lvm console do
Now that sda3 is in the volgroup you need to extend the logical volume to it. You have to give lvextend an option for size, I use the -l option to specify in physical extents because it makes life a lot easier. To see the PE's you have left, runCode:vgextend VolGroup00 /dev/sda3
Note the Free PE line and then runCode:vgdisplay -v VolGroup00
Where xxxx is the number of free pe's you have. Then at a regular command line runCode:lvextend -l xxxx /dev/VolGroup00/LogVol00
I've only had to resize a couple times, it was really easy.Code:resize2fs /dev/VolGroup00/LogVol00
- 01-22-2007 #3
Great! Doesn't look hard at all. Thanks for the info.
I haven't used pvcreate yet, I just started the partition with "gparted"... left the type as "unknown", and set the flag as "8e".
Also, (serious newbie question): How do I open an "lvm console"?
- 01-22-2007 #4
If you have set it to 8e, then you need to do
in lvm before all those other steps. To get into the interactive lvm console, just typeCode:pvcreate /dev/sda3
at the command line.Code:lvm
- 01-22-2007 #5
Wow, that worked beautifully!
Thanks so much!!
I think I kept screwing it up before, because I was trying to run the commands outside of the lvm console.


Reply With Quote