Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 08-10-2008, 06:51 PM   #1
LQ Newbie
Registered: Jan 2008
Location: Los Angeles, CA
Distribution: Sabayon
Posts: 12

Rep: Reputation: 0
Can I remove an LVM easily?

I have had the same Sabayon install for quite a while now, but was recently bothered by the fact that I can't try out other distros and mount my /home while they're running because Sabayon created an LVM using all my disk space.

Would there be an easy way to get the partition out of the LVM or do something else to get rid of the LVM without having to format? I really don't want to lose all the work I put into my Sabayon install, but if that's what it comes down to, I will do it.
Old 08-10-2008, 07:27 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Actually, it isn't hard to mount home. Look in the /dev/ directory for a device like /dev/system/home and use that instead of a node like /dev/sdb3. Also look at your sabayon /etc/fstab file. That should indicate the exact name of the device to use. The kernel will assemble the LVM array when you boot up so the devices should be available.

The only problem I've had, is when playing around, I created two empty files on on external drive and used losetup to create two devices /dev/loop1 and /dev/loop2. I was trying to create an lvm array manually. It worked but didn't show up in the /dev directory. So I used "yast2 disk" which did detect the loop devices and created device nodes in /dev/. For a disk based array you shouldn't have this problem, and your trial distro probably has a similar lvm manager just in case.

Removing a drive from an lvm may require migrating the contents elsewhere temporarily. Either backing up the data or moving home to a drive still in the lvm array. I haven't worked that much with it, but usually if you are dealing with large amounts of data it can be hard making these kinds of changes whether you are using normal devices, raid devices or lvm.

IMHO, accessing your sabayon /home partition would be easier than removing the disk or partition from the lvm array safely.

Last edited by jschiwal; 08-10-2008 at 07:28 PM.


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
Correct Way To Remove a Drive from LVM kromberg Linux - Software 1 12-10-2007 10:27 PM
LVM - can't remove vg zdenisl Linux - Software 1 08-16-2007 09:36 AM
LXer: Back Up (And Restore) LVM Partitions With LVM Snapshots LXer Syndicated Linux News 0 04-17-2007 12:16 PM
How to resize the / LVM under Fedora 6, or remove the /home mount & make new one? gerhardbartsch Fedora 7 03-06-2007 08:14 AM
LVM: Wanting to remove a partition from a Volume Grou Jongi Linux - General 13 11-01-2006 02:43 PM > Forums > Linux Forums > Linux - Software

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration