LinuxQuestions.org
Help answer threads with 0 replies.
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 10-26-2008, 06:51 AM   #1
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
lvm and multi boot


Hi,

I've been reading about LVM and wondering if it might be worth using it on my home machine to simplify partition management.

However, if I've got 2 Linux distros installed, would I be right in thinking that VGs and LVs created by one installation won't be visible to the other one? So I couldn't, say, use LVM to reduce the size of / for one installation and move the free space to the / of the other?
 
Old 10-27-2008, 07:46 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,438

Rep: Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950
Nope, it can be done. It's just a matter of ensuring the correct lvs are mounted in each case.
You'll probably still want an individual /boot partition for each distro to keep things clean. 100M each should be more than enough. It's not strictly necessary, but its tidy.

sda1 100M linux partition mounted as /boot for distro1
sda2 100M linux partition mounted as /boot for distro2
sda3 100M linux partition mounted as /boot for distro3
sda4 rest of disk in type 8e LVM partition used as PV.

Within the vg you would then create
/dev/sharedvg/lvroot_d1
/dev/sharedvg/lvroot_d2
/dev/sharedvg/lvroot_d3
/dev/sharedvg/lvswap00 (can be shared)


Gaz.
 
Old 10-27-2008, 12:43 PM   #3
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Original Poster
Rep: Reputation: 39
Ok, thanks. So for example, could I partition a drive as per your suggestion, use a live CD to create LVs on the large partition, and the standard graphical installers for various distros (ubuntu, fedora, suse, slack, ...) will recognise the lvm stuff and allow me to install / to an LV? Or would the installation be a bit more involved?
 
Old 10-27-2008, 03:35 PM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,438

Rep: Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950Reputation: 950
I guess it would be distro specific. I'm a slackware user and Slackware's installer is certainly flexible enough to allow something like this (you do all the partitioning from the command line anyway). I've also done an Ubuntu on lvm install before, but it requires a little messing about, you need to apt-get the lvm support as it isn't on the live cd, and setup the lvm stuff from the command line prior to running the installer, stuff like that. There's a number of guides to doing Ubuntu LVM out there, a quick google should find one.

Whether it's worth all the trouble is a different question however. By taking this sort of approach you're stepping outside 'the norm' with these distributions and that might lead to a few maintenance headaches in future. (most likely to bite you with the more 'automated' distributions).
 
  


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
/boot LVM sycamorex Linux - Hardware 15 07-02-2008 06:31 AM
how can i turn off LVM so it's not there at boot DarkPlexus Linux - Newbie 3 11-18-2007 04:14 AM
How to Boot Multi Windows & Multi Linux olkar Linux - Newbie 5 10-03-2005 11:52 AM
Need help with boot loader. Multi boot questions. Grub? 1993gt40 Linux - Software 1 10-16-2003 08:28 PM
GRUB, Multi Linux/Multi Disk Boot gtnorton Linux - Software 1 03-16-2003 03:48 AM


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