LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 01-22-2009, 04:13 PM   #1
rahulbaheti86
LQ Newbie
 
Registered: Jan 2009
Posts: 2

Rep: Reputation: 0
Exclamation 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
 
Old 01-22-2009, 04:47 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,413

Rep: Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111Reputation: 8111
Quote:
Originally Posted by rahulbaheti86 View Post
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.
 
Old 01-22-2009, 05:34 PM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.
 
Old 01-22-2009, 09:03 PM   #4
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
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.
 
Old 03-04-2009, 05:43 PM   #5
chm0dvii
LQ Newbie
 
Registered: May 2007
Distribution: Debian, RedHat, CentOS, Ubuntu, Knoppix, Backtrack
Posts: 6

Rep: Reputation: 0
Actually you can. There is a document on Redhat's Website.

http://kbase.redhat.com/faq/docs/DOC-7375


Hope this helps.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo-PC not booting with root on LVM2 Verbato Linux - General 4 11-22-2007 08:45 PM
How to partition a LVM2 filesystem? nick623 Fedora 2 09-13-2007 03:43 PM
root on lvm2 problem :-( echo>/dev/null Linux - Software 1 10-23-2006 11:21 PM
Convert to SW RAID with LVM2 on existing disk atman1974 Linux - General 1 05-15-2006 12:40 AM
suse 9.3 and root on lvm2 sam_vde SUSE / openSUSE 0 07-14-2005 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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