LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 03-28-2007, 07:09 PM   #1
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Rep: Reputation: 15
Resize LV with LVM


Hello,

I've got a LV that needs to be enlarged. The volume is mounted on /opt. File system is Ext3.

My SuSE 10.2 has LVM installed, but it can't resize volumes unless they are unmounted. I've never done this before, so I figured I better get some advice before attempting it. So, can anyone please tell me if this is the best way?

I assume:
First safe boot and logon as root
unmount /dev/system1/opt
lvextend -L+2G /dev/system1/opt (adding 2 GB)
resize2fs /dev/system1/opt (not sure if this utility is installed)
mount /dev/system1/opt

Does this seem about right? Anything else I should consider?

Thanks for any replies!
 
Old 03-28-2007, 07:56 PM   #2
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 413

Rep: Reputation: 82
Quote:
Originally Posted by Slipstream2006
Hello,

I've got a LV that needs to be enlarged.

Etc.

Anything else I should consider?
Yes. Back up all of your data first. Then confirm that the backup worked.
 
Old 03-29-2007, 07:49 AM   #3
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks, I've got /opt saved to a different disk just in case.

Does anyone know if the commands I listed above look right?
 
Old 03-29-2007, 12:04 PM   #4
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Original Poster
Rep: Reputation: 15
Ok, I threw caution to the wind and tried the lvextend command that I listed above. The message states Command not Found.

Then I tried the SuSE installation disk. I chose Installation--->Other Options--->Repair Installed System--->Customized Repairs--->Start Partitioning Tool

Once I'm in Expert Partitioner, I can Edit the size of /opt. But when I Accept the change and try to move to the next screen, it tells me I need to choose a Swap partition..... Apparently, all of my mount points are lost, so I need to reset them somehow. But it's not possible because the Mount Point fields are disabled.

It doesn't seem like the Expert Partitioner tool is designed for the resizing task :-(
 
Old 03-30-2007, 09:47 AM   #5
Slipstream2006
Member
 
Registered: Apr 2006
Posts: 64

Original Poster
Rep: Reputation: 15
I figured it out! Luckily.... As I posted above, using the SuSE installation disk. I chose Installation--->Other Options--->Repair Installed System--->Customized Repairs--->Start Partitioning Tool. The partitioning tool in this case is Expert Partitioner, just like during initial setup of the system. I was able to edit the /opt volume size without a hitch. But here's the tricky part:

After the edit, it is necessary to Accept the partition scheme. Same way as during initial setup, except that all the mount points are gone! And they can't be reassigned! Then a dialog appears asks to assign a swap partition! All this stuff was already nicely arranged in my system. But, I took a chance and ignored everything. Luckily, the /opt volume was resized, and I was able to exit Expert Partitioner unscathed.

I found the process very unintuitive because it left me with the impression that the system would get messed-up with every mouse click. Maybe a sticky on this topic would be a good idea. At least until EP's dialogs can be updated to instruct users better.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
LVM Resize - After logical resize, FS size does not match physical size. spectra Linux - Software 6 11-01-2006 11:28 AM
How To Resize LVM Partition sfo Linux - General 1 09-17-2006 11:39 AM
Is there a way to resize PVs in LVM 1.0.8? Ken-ji Linux - Software 0 02-12-2006 09:20 PM
resize LVM partition bkesting Linux - General 3 06-17-2005 09:28 AM
Cant resize with LVM plz help sendas4 Linux - General 4 10-21-2004 07:05 PM


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

Main Menu
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