LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-16-2010, 10:37 AM   #1
GregIthaca
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Rep: Reputation: 0
RAID1 with 3 live drives?


I'm not entirely a newbie, but this seems like such a simple question I'm not sure where else to ask it. I checked through the various HOWTOs and searched already and didn't find a clear answer, and I want to know for sure before we start investing in hardware.

Is is possible to create a RAID1 (mirroring only) array with 3 live drives, rather than with 2 live plus a spare? Our goal is to have 3 drives in a hot-swap bay, and be able to pull and replace one drive periodically as a full backup. If I do:
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 --spare-devices=1 /dev/sda1 /dev/sdb1 /dev/sdc1
then I assume that only sda1 and sdb1 will be mirrored, and sdc1 will just "hang out" until it is needed, but won't get any data on it. Furthermore, only someone who knows how to read /proc/mdstat will be able to tell which drive they can pull to get the current data.

What I believe we want to do is:
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=3 /dev/sda1 /dev/sdb1 /dev/sdc1
but I can't see anyone actually giving this example as valid. It would be dumb to invest in the hardware and then discover that it doesn't work that way, right?

Additionally, we right now have the mirror set up with just two of the drives, like this:
Code:
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
Is it then possible to say:
Code:
mdadm --grow /dev/md0 --raid-devices=3
mdadm --manage /dev/md0 --add /dev/sdc1
to safely add the third device, and will it ensure that all three devices are mirroring the way we want? The manual pages say something about "only on kernels which provide necessary support" but doesn't mention if 2.6.12-1 (FC3) is one that does.

I'm hoping there is someone who has done this and can say "yep, it works."

Thanks,
Greg
 
Old 06-16-2010, 11:03 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
Yes it works, but I've never done it myself.
You can have n mirrors in a mirrored array.
This doesn't specifically say it can be done but it can.
https://raid.wiki.kernel.org/index.p...D_setup#RAID-1

Search for n-way mirroring.

BTW, FC3 is OLD.

Also, http://linuxfanboy.com/index.php/Linux_Software_RAID

Last edited by smoker; 06-16-2010 at 11:07 AM.
 
1 members found this post helpful.
Old 06-16-2010, 05:25 PM   #3
GregIthaca
LQ Newbie
 
Registered: Jun 2010
Posts: 7

Original Poster
Rep: Reputation: 0
smoker sez:
Quote:
BTW, FC3 is OLD.
Yeah. This server has been running since FC3 was new. I've tried some newer versions since then (on home machines, etc.) and everything just seems to keep going downhill. It is now moving to replace a machine that was running RH6.2.

We like stability around here, rather than new features. If it had been around at the time, I might have used one of the Ubuntu LTS releases, but I didn't know about them back then.

Greg
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding 2 new SATA drives as RAID1 danimalz Debian 1 02-08-2009 11:54 AM
Changing to bigger drives Raid1 DigiCrime Linux - Software 0 09-26-2008 06:13 PM
Software RAID1 on non-partitioned drives s.a. Linux - Software 7 01-16-2008 11:40 AM
HW raid5 or raid1, & how many drives? hank43 Linux - Enterprise 2 12-18-2006 09:03 AM
raid1 on mandrake 10 with 2x SATA drives karelvdm Linux - Hardware 0 09-08-2004 04:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:35 AM.

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