LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 05-14-2009, 01:35 AM   #1
kbklinux
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 booting...it is saying file system corrupted error.

Please help me in resolving this..

Thank you
Bala
 
Old 05-14-2009, 03:06 AM   #2
FragInHell
Member
 
Registered: Sep 2003
Location: Sydney Australia
Distribution: Redhat, Centos, Ubuntu
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 03:10 AM. Reason: typo
 
  


Reply


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-12-2009 12:41 AM
LVM only lets me extend online but not reduce with ext3 jimdaworm Debian 2 05-29-2008 12:16 PM
Reduce LVM Partition size without any data loss viral_Ahire Linux - Software 1 04-11-2008 04:42 PM
How to reduce LVM partition ^ Guillaume777 Linux - Software 1 08-27-2007 06:01 AM
reduce an LVM partition in Red Hat jhnsegers Linux - Software 0 11-25-2004 02:57 AM


All times are GMT -5. The time now is 09:44 AM.

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