LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 05-20-2009, 06:56 AM   #1
newbuyer17
Member
 
Registered: Sep 2006
Posts: 38

Rep: Reputation: 15
LVM2 RAID mirroring with multiple distros/dual boot


I have a linux box consisting of a primary Opensuse 11 distro, but with other linux distros and also a windows XP bootable partition.

At present I have a 1Tb drive that has 1 largish partition for windows, and 4 10G partitions for each of the 4 distro's root partitions.
All other filesystems (home data etc) for any of the linux distros come from a large lvm volume.

Hope this makes sense so far. All is well but I now have so much data I really want to mirror stuff and have ordered another drive. I dont have mirroring available at BIOS level so I guess I'm going to have to mirror with LVM. I'm not overly fussed about having the windows partition mirrored.

Now I can fairly easily manage to convert the various existing lvm data partitions to be mirrored.

But I'm not sure how to setup/structure the drive so I can mirror all the root partitions for the various distros. Despite reading about a bit, I'm also still a bit baffled about whether I can have a mirrored boot partition? Can I convert existing installations to be mirroed, or am I looking at a reinstall of them all?

Has anyone else got a similar multiple distro mirrored setup the could share with me. Or have any idea how best to approach this?

Thanks
 
Old 05-21-2009, 02:47 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

I didn't quite understand your setup but I can tell you that a mirrored root is possible and can be setup without reinstalling the systems.

Simply create the same partitions you have on your original disk to the new disk, setup a RAID 1 and make it degraded. Then you should be able to reboot and sync the original disk with the new.

Don't forget to install grub on the MBR of the new disk so that it can boot in case of trouble with the original disk.

Hope this helps a bit.
 
Old 05-26-2009, 04:58 AM   #3
newbuyer17
Member
 
Registered: Sep 2006
Posts: 38

Original Poster
Rep: Reputation: 15
Thanks eco,
I dont think I helped myself with my original questions, as I wasn't aware that linux RAID and LVM2 were different things entirely. I thought the mirroring was done in lvm2.

Anyway, lets start again:
Lets forget windows and say I want 3 linux distros mirroring.

Currently I have:
/dev/sda1 - suse root
/dev/sda2 - swap
/dev/sda3 - fedora root
/dev/sda4 - ubuntu root
/dev/sda5 - lvm for data areas

My grub loader is installed automatically by ubuntu (installed last) and it picks up the other distros automatically.

What would I do with mirroring. Am I correct in saying I would need a seperate /boot partition if it was raided? Would I need a seperate /boot partition for each distro or just a single one - presumably this would get overwritten every time I installed another distro?

I've looked at and played about with varios howto's, but none of them quite seem to match my requirements.

Thanks
 
Old 05-27-2009, 12:30 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I'm not quite sure what you think you mean by mirroring..
However, the /boot for Linux can only be on RAID1 (aka mirror) http://en.wikipedia.org/wiki/RAID#Standard_levels if you want to raid it.
RAID basically gives you ways of making more resilient disksets that look like 1 disk to the filesystem.
LVM2 http://en.wikipedia.org/wiki/LVM2, http://sourceware.org/lvm2/ allows you to group multiple disks into one large diskset (aka volumegroup) that you can then split arbitrarily into Logical Volumes and then put a filesystem on top of each LV.
These 2 are not the same thing.
Note that you can RAID disks together, then put LVM on top, then split into LVs and put filesystems on top.
Your choice.
I suggest you have a good read and then come back with a design.
 
  


Reply



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
Dual booting multiple distros - Ubuntu Fiesty + PCLinuxOS(or other) zephyrcat Linux - General 32 07-23-2007 11:42 AM
Dual boot with LVM2 dbonnell Linux - Software 1 08-04-2005 02:23 AM
Dual boot with LVM2 dbonnell Linux - General 2 08-03-2005 08:41 AM
dual boot for multiple linux distros pirozzi Linux - General 5 01-29-2005 08:15 AM
dual booting multiple distros with 2 hdds xiato Linux - Newbie 9 05-05-2004 09:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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