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 |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-22-2009, 04:13 PM
|
#1
|
LQ Newbie
Registered: Jan 2009
Posts: 2
Rep:
|
How to convert a root filesystem into LVM2 configuration without reinstalling
Hello Friends,
i want to know that if i install linux on to my pc with
SWAP
/
/ boot
as partition and after that i want to convert them to LVM2 type configuration
how can i do that
i want to create a system having logical volumes from that system without reinstalling
these partitions should convert into two LV's
LV 0 for root
LV 1 for swap
both in one volume group
Please reply as soon as possible
Thanks and regards
Rahul Baheti
|
|
|
01-22-2009, 04:47 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,413
|
Quote:
Originally Posted by rahulbaheti86
Hello Friends,
i want to know that if i install linux on to my pc with
SWAP
/
/ boot
as partition and after that i want to convert them to LVM2 type configuration
how can i do that
i want to create a system having logical volumes from that system without reinstalling
these partitions should convert into two LV's
LV 0 for root
LV 1 for swap
both in one volume group
|
That's like wanting to replace your cars engine, while you're driving. If you repartition your disk, and employ an LVM configuration, there's going to be nothing on the disk after step 1, to keep the system running.
Sorry...you'll have to reinstall.
|
|
|
01-22-2009, 05:34 PM
|
#3
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
While there are a few (very few) instances that LVMs are required, most of the features it offers can be accomplished without them. LVMs have the (huge) disadvantage in that when they fail they add an additional layer of complexity to recovering them. IF there is no other way to get what you need, then this is acceptable but for the vast majority of users requirement LVMs are an unnecessary added level of complexity.
|
|
|
01-22-2009, 09:03 PM
|
#4
|
Senior Member
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375
|
Just like to add that /boot can NOT appear in LVM anyway. So that just can't be converted, and their is just no point to having SWAP in LVM really either. So the only thing that'd appear in LVM their is /, which to be honest the whole point of LVM is if your gunna have /, /tmp, /usr, /var, etc as seperate partitions that you can resize them but I personally just don't like LVM... if your just gunna have / then the others will appear under the / partitions so you might as well make a single / ext3 partition in my opinion.
|
|
|
03-04-2009, 05:43 PM
|
#5
|
LQ Newbie
Registered: May 2007
Distribution: Debian, RedHat, CentOS, Ubuntu, Knoppix, Backtrack
Posts: 6
Rep:
|
Actually you can. There is a document on Redhat's Website.
http://kbase.redhat.com/faq/docs/DOC-7375
Hope this helps.
|
|
|
All times are GMT -5. The time now is 09:31 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
|
|