Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cobra is spot on. If you're somewhat new to Fedora/Linux, you probably left things with their defaults (for the most part) on the install which means you're using LVM.

To extend your filesystem:

  • /usr/sbin/cfdisk /dev/sda

    • Create a new partition with whatever space you've freed up.
    • make note of the name of the new partition (e.g. sda2)
    • write the changes to your partition table
  • /usr/sbin/pvcreate /dev/[name of new partition from above]

  • /usr/sbin/vgs

    • this displays the list of volume groups configured on your system (most likely only one). make note of the volume group name
  • /usr/sbin/vgextend [volume group name] [name of new partition]

(almost there)

  • /usr/sbin/vgdisplay [volume group name]
    • the vg name is optional if there is only one volume group configured on your system

Towards the bottom of the output you'll have four lines dealing with PE. PE = Physical Extents; extents being defined as "the area covered by something". You'll see Size, Total, Alloc(ated) and Free PE. The number of note is that on the "Free PE" line.

The final step is to actually add your freshly minted extents to your root volume group (assuming that's where you want them--you can put them in root or home or wherever)

The proper way is to find your filesystem's mount point in /etc/fstab or /proc/mounts.

I'm lazy:

mount /
mount: /dev/mapper/vg_lilbuddyjr-root is already mount or / busy

lvextend -r -l +[number of Free PE from the vgdisplay output above] [path to existing logical volume as shown just above]

You'll see some mutterings about the filesystem being mounted and requiring an online resize and then it will be done, and you will have your recovered disk space back in play!