LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

Rep: Reputation: 15
resize LVM partition


Hello,

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.

Thanks.
 
Old 12-15-2004, 12:12 AM   #2
trickykid
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:

Code:
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, 08:16 AM   #3
bkesting
Member
 
Registered: Mar 2004
Location: Nebraska
Distribution: SuSE, RedHat
Posts: 36

Original Poster
Rep: Reputation: 15
Cool......

Thanks.
 
Old 06-17-2005, 09:28 AM   #4
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
Hi,

I know this thread is really old, but I just tried reducing a logical volume with the command:
Code:
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.

Thanks.
 
  


Reply



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 07:21 AM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 07:45 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
Resize existing and add another partition with LVM donv2 Linux - Newbie 3 04-27-2005 04:23 AM
Cant resize with LVM plz help sendas4 Linux - General 4 10-21-2004 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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
Open Source Consulting | Domain Registration