Find the answer to your Linux question:
Results 1 to 3 of 3
I have a Fedora 8 system that uses LVM on one of it's drives (/dev/sdb2). One of the logical volumes is getting full (LogVol02). There is an unused, unmounted logical ...
  1. #1
    Just Joined!
    Join Date
    May 2006
    Posts
    9

    LVM Advice

    I have a Fedora 8 system that uses LVM on one of it's drives (/dev/sdb2). One of the logical volumes is getting full (LogVol02). There is an unused, unmounted logical volume (LogVol03) available. I can see two possible options.

    1) Mount the unused logical volume (LogVol03) on a new mount point (/home2) and create more space there
    2) Delete the LogVol03 logical volume and extend the nearly full volume (LogVol02) into the now available space.

    Option 2 seems like the better approach, since it will seem seamless to the system users. I'm looking for suggestions on how I should go about doing this and what I need to look out for. Is it better to use the command line tools (lvm ...) or the GUI (system-config-lvm) to do this?

  2. #2
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    The logical volume is like a partition - growing a volume successfully is heavily dependent on the ability to change the *filesystem* size.

    You can Google for many docs/discussions/tutorials.

  3. #3
    Just Joined!
    Join Date
    May 2006
    Posts
    9
    Thanks for the additional links.

    To close out this thread, here is what I did to increase the logical volume size.

    /usr/sbin/lvextend -l +2560 /dev/VolGroup00/LogVol02
    /sbin/resize2fs /dev/VolGroup00/LogVol02

    I didn't even have to unmount the file system to do this. This worked because I had free physical extents available on the physical volume.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...