LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   How to Resize Root LVM Logical Volume??? (https://www.linuxquestions.org/questions/fedora-35/how-to-resize-root-lvm-logical-volume-337823/)

linux-who? 07-30-2009 12:06 PM

Quote:

Originally Posted by jdupre (Post 1721395)
Thank you for the replies.
I was sucessfull in reducing the root LVM logical volume on a default FC3 install to 10G with the following commands:

Boot with rescue CD. Skip mounting of the system partitions.

# lvm vgchange -a y
# e2fsck -f /dev/VolGroup00/LogVol00
# resize2fs -f /dev/VolGroup00/LogVol00 10G
# lvreduce -L10G /dev/VolGroup00/LogVol00

I recieved a message "Please run e2fsck -f /dev/VolGroup00/LogVol00" when trying to run resize2fs (even after I had run e2fsck) so I added the -f switch to force the resize. All went well.

- Joe

Hi All....this worked for me as well w/ RHEL 5.2

linux-who? 07-30-2009 12:08 PM

Quote:

Originally Posted by WhatsHisName (Post 1718036)
To activate the LVMs in FC4 Rescue Mode, run this from the command line:

lvm vgchange -a y

For a list of LVM commands, run:

lvm help

There is a really good LVM HowTo here http://www.ibiblio.org/pub/Linux/doc...LVM-HOWTO.html

The bottom line about resizing ext3 logical volumes is that it is easy to make them bigger, but difficult to make them smaller. In theory, the resize2fs command can reduce the size of the ext3 filesystem, but in practice, you will get a fatal error message regarding the new target size when you try to reduce the ext3 filesystem.

RedHat has really screwed everyone who uses the installation default LVM partitioning scheme, because it fills the volume group with logical volume(s), but does not provide tools for reducing the ext3 logical volumes to allow others to be created or enlarged. I anticipate that these tools will appear at some future date, presumably before the release of RHEL5. But, for now, you're screwed.

You hit the nail on the head....
By the way, it doesn't look like RH has addressed this in RHEL5....still screwed....well not totally screwed i guess.....the work around above does work

angelinap 10-02-2010 07:21 AM

It worked on RH ES 5
 
I just followed instructions as per Joe postings ... and worked perfectly!

Thank you!


All times are GMT -5. The time now is 11:48 PM.