LinuxQuestions.org
Register a domain and help support LQ
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 04-18-2011, 09:55 PM   #1
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 534

Rep: Reputation: 248Reputation: 248Reputation: 248
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?
 
Old 04-19-2011, 02:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
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.
 
Old 04-19-2011, 08:53 AM   #3
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 534

Original Poster
Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by acid_kewpie View Post
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?
 
Old 04-23-2011, 05:51 PM   #4
gezley
Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware64, NetBSD
Posts: 534

Original Poster
Rep: Reputation: 248Reputation: 248Reputation: 248
Quote:
Originally Posted by gezley View Post
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.
 
  


Reply

Tags
centos, debian, lilo, lvm, slackware


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
LVM Mount Physical Volume/Logical Volume without a working Volume Group mpivintis Linux - Newbie 10 01-11-2014 08:02 AM
How do I resize LVM volume group? rconan Fedora 5 04-22-2009 08:45 PM
problems removing lvm volume group shane601 Linux - Hardware 1 01-11-2009 02:20 AM
Fedora LVM volume group & Physical Volume resize problem gabeyg Fedora 1 05-14-2008 12:26 PM
Missing LV from LVM volume group jalla2000 Linux - Software 1 04-21-2008 06:50 PM


All times are GMT -5. The time now is 07:55 PM.

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