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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-28-2007, 07:09 PM
|
#1
|
|
Member
Registered: Apr 2006
Posts: 64
Rep:
|
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!
|
|
|
|
03-28-2007, 07:56 PM
|
#2
|
|
Member
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 399
Rep:
|
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.
|
|
|
|
03-29-2007, 07:49 AM
|
#3
|
|
Member
Registered: Apr 2006
Posts: 64
Original Poster
Rep:
|
Thanks, I've got /opt saved to a different disk just in case.
Does anyone know if the commands I listed above look right?
|
|
|
|
03-29-2007, 12:04 PM
|
#4
|
|
Member
Registered: Apr 2006
Posts: 64
Original Poster
Rep:
|
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 :-(
|
|
|
|
03-30-2007, 09:47 AM
|
#5
|
|
Member
Registered: Apr 2006
Posts: 64
Original Poster
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 09:56 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|