Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-14-2004, 03:44 PM   #1
Registered: Mar 2004
Location: Nebraska
Distribution: SuSE, RedHat
Posts: 36

Rep: Reputation: 15
resize LVM partition


I have a new Suse 9.2 server running and I want to learn how to work with LVM properly before I put the box into production. I have an LVM /tmp partition of 1.0 GB (did it intentionallyl to practice resizing) that I want to reduce. What are the proper steps to go about doing it? If someone could point me to a website or give me some good tips, I would appreciate it.

Old 12-15-2004, 01:12 AM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Here are some generic instructions and proper steps to resizing LVM partitions, just plug in or change how your setup differs from this one, etc:

The example given would be for their /tmp directory giving them 4 more GB of space:

sudo umount /tmp
or the full path of the actual device mounted would be this command:
sudo umount /dev/rootvg/tmp
sudo lvextend --size +4g /dev/rootvg/tmp
sudo e2fsck -f /dev/rootvg/tmp
sudo resize2fs /dev/rootvg/tmp
sudo mount /tmp
Old 12-15-2004, 09:16 AM   #3
Registered: Mar 2004
Location: Nebraska
Distribution: SuSE, RedHat
Posts: 36

Original Poster
Rep: Reputation: 15

Old 06-17-2005, 10:28 AM   #4
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30

I know this thread is really old, but I just tried reducing a logical volume with the command:
lvreduce /dev/VolGroup00/LogVol02 --size <can't remember what size I reduced to>
and now when I try to boot, I get many errors and then get dropped to a shell. I get messages saying that the I have a bad super block on LogVol00 and that the partition table is corrupt.

I'm really not sure what to do since I don't have too much experience with logical volumes. I can boot and login with the rescue CD or login as root after I get these errors, so all is not lost, but I do have a lot of data on these volumes that I absolutely need to recover so you can understand that any help would be much appreciated.



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Resize Root LVM Logical Volume??? jdupre Fedora 17 10-02-2010 08:21 AM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 08:45 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 05:15 PM
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 05:23 AM
Cant resize with LVM plz help sendas4 Linux - General 4 10-21-2004 08:05 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:41 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