Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-14-2009, 12:35 AM   #1
LQ Newbie
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
how to reduce lvm in size in RHEL5.0

Hi Friends,

Please help me in reducing the size of LVM. I did it by using the commands, lvreduce,fsck,resize2fs.After reducing the lvm size, my system is not is saying file system corrupted error.

Please help me in resolving this..

Thank you
Old 05-14-2009, 02:06 AM   #2
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Solaris, Ubuntu, SUSE
Posts: 282

Rep: Reputation: 45
You need to reduce the size of the filesystem first, before reducing the logical volume.

The only way out of this is to boot to a rescue disk, resize the logical volume back to the original size, and then fsck the filesystem.

Then start again.

for example to shrink from 5 GB file system to say 3GB (of course you need less than 3GB of data for this to work)

resize2fs -p /dev/vg_something/lvsomething 3G

now reduce the logical volume
lvreduce -L -2G vg_something/lvsomething

then fsck the filesystem.

Alway make sure you have a backup before doing any of this type of work!

Good luck.

Last edited by FragInHell; 05-14-2009 at 02:10 AM. Reason: typo


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you safely reduce a LVM partitions size? Igby Linux - Server 4 05-11-2009 11:41 PM
LVM only lets me extend online but not reduce with ext3 jimdaworm Debian 2 05-29-2008 11:16 AM
Reduce LVM Partition size without any data loss viral_Ahire Linux - Software 1 04-11-2008 03:42 PM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 05:01 AM
reduce an LVM partition in Red Hat jhnsegers Linux - Software 0 11-25-2004 01:57 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration