LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   LVM - multiple installations in one Volume Group? (http://www.linuxquestions.org/questions/linux-general-1/lvm-multiple-installations-in-one-volume-group-875766/)

gezley 04-18-2011 08:55 PM

LVM - multiple installations in one Volume Group?
 
I am not familiar with LVM at all, although I have successfully got it up and running in Slackware. What I would like to know is, could I create one Volume Group in a Physical Volume consisting at the moment of just one disk, and install separate Linux releases into Logical Volumes in this solitary VG? So, for example:

/dev/sda1 = Physical Volume

volgroup = Volume Group

lv01-root = Slackware root
lv01-swap = Slackware swap
lv01-home = Slackware home

lv02-root = Debian root
lv02-swap = Debian swap
lv02-home = Debian home

lv03-root = CentOS root
lv03-swap = CentOS swap
lv03-home = CentOS home

Or do I need to create different Volume Groups for each installation?

And one other question: I am quite comfortable with Lilo but not with Grub. What is the best way to chainload these installations so that Lilo assumes final control? Install Debian and CentOS grub to root instead of MBR, and Slackware to MBR?

acid_kewpie 04-19-2011 01:45 AM

You can do that, but it seems pointless and overly complex. You'd need a separate /boot partition too outside of LVM, which *could* be used as common between all distro. Possible but again, overly complex. You'd not want to chain load these either really, the boot loader has nothing to do with the distro really (as /boot doesn't either - it doesn't ever need to be available to the running system) so you should just have in them in a single grub instance.

gezley 04-19-2011 07:53 AM

Quote:

Originally Posted by acid_kewpie (Post 4328960)
You can do that, but it seems pointless and overly complex. You'd need a separate /boot partition too outside of LVM, which *could* be used as common between all distro. Possible but again, overly complex.

So what is the usual way of doing it? Excuse my ignorance, but I've never really needed anything more than traditional partitioning. Now I want to get certified and I intend to have NetBSD, Slackware, Debian and Scientific Linux set up. This is too much for traditional partitioning. I just want to know how to go about it with LVM. You're saying one Volume Group with multiple Logical Volumes is overly complex. Is the alternative a Volume Group for each distro?

gezley 04-23-2011 04:51 PM

Quote:

Originally Posted by gezley (Post 4329236)
So what is the usual way of doing it? Excuse my ignorance, but I've never really needed anything more than traditional partitioning. Now I want to get certified and I intend to have NetBSD, Slackware, Debian and Scientific Linux set up. This is too much for traditional partitioning. I just want to know how to go about it with LVM. You're saying one Volume Group with multiple Logical Volumes is overly complex. Is the alternative a Volume Group for each distro?

I ended up using one extended partition for the physical volume and separate LVs for each distro, with a standard partition for /
I understand LVM much better now. Thanks for the advice, even though I ended up going with my instincts.


All times are GMT -5. The time now is 08:38 AM.