Growing an LVM Partition in Fedora 10 using Logical Volume Manager
OK, please see the image attached to this thread.
Essentially I originally setup Fedora 10 dual booted with XP, I then found I'd been daft and given my Windows partition FAR too much room, so I trimmed it back by 50GB, this has left me with 50GB of unpartitioned space which I'd like to add to my LVM, if I could work out how.
Let me know if you need more information.
Stupidly I've just gotten myself a step further, I used GParted to initialize the drive and leave it unformatted, I could then add it to my LVM using the Logical Volume Manager GUI but df is still listing the same space as before.
Still looking into this.
The easiest and lowest risk way would be to create a new lvm partition (type 8e) in the unused space with your preferred partition editor and then run pvcreate and vgextend commands on it. The manual pages will give you the details but a quick example would be
pvcreate /dev/sdaN (where sdaN is your newly created lvm partition)
vgextend VolGroup00 /dev/sdaN
The alternative (assuming the free space is at the end of your existing PV) would be to resize the partition and then run pvextend on it to make it available, but that's much higher risk and unless your comfortable enough with disk partitions and lvm to figure out how for yourself I'd recommend you go with the first option.
As always before making changes to disk storage, make sure you've got a good backup in case something bad happens.
Forgot to add, to make the new space available to you filesystems (so that df shows it), you'll then need to do a lvextend and then extend the filesystem on that LV. How varies depending on which filesystem you use.
|All times are GMT -5. The time now is 04:00 PM.|