LinuxQuestions.org
Review your favorite Linux distribution.
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 06-04-2008, 11:36 PM   #1
emrecio
LQ Newbie
 
Registered: Nov 2005
Location: Seattle, WA, US
Distribution: Fedora
Posts: 12

Rep: Reputation: 0
using md to boot


Is it possible to do a software raid mirror:
Code:
/dev/md/0 == /dev/sda1 -> /dev/sdb1 == /boot
/dev/md/1 == /dev/sda2 -> /dev/sdb2 == /
/dev/md/2 == /dev/sda3 -> /dev/sdb3 == /home
/dev/sda4 == (1/2) swap
/dev/sdb4 == (1/2) swap
. And boot off of the software raid?
Basically I want to do a full software raid mirrored system, so that I don't have to worry about *any* failure. And as soon as smartd tells me I am having problems, I can swap out the drive with a new drive.
. When I swap it out with the new drive, am I going to need to partition the drive first?
. It won't be hot-swapable, so is it legit to boot off the good drive with the new one is in there?
 
Old 06-05-2008, 03:47 PM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,637

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
I don't know if that's possible or not, but I do know that I'd only ever go with hardware RAID, unless I had no choice. Software RAID (performance wise), is not too good. A good RAID5 controller (SATA), is less than $500, and will get you the online-spare you're wanting, as well as being easy to set up, Linux wise. When you do your install, it'll see one disk...the array you set up in the controller BIOS. Install to there...everything else is invisible to Linux.
 
Old 06-05-2008, 03:57 PM   #3
emrecio
LQ Newbie
 
Registered: Nov 2005
Location: Seattle, WA, US
Distribution: Fedora
Posts: 12

Original Poster
Rep: Reputation: 0
500?!

I agree that it's simpler to set up. I have done that at work with the servers we have here (HP SMART Array). But that's the point, this is just my personal system, and I really don't want to spend the $$. I don't do much that's disk intensive, or cpu intensive. Heck, I was on a 1.5GHz Duron w/ 512mb until last year.
 
Old 06-06-2008, 08:17 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,637

Rep: Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573Reputation: 2573
Well, a SATA controller from Newegg that does hardware RAID1 can be had for less than $100. I know what you mean about your personal vs. office systems, though, but software RAID is agonizingly slow by comparison. I've never done what you're attempting, though, so I don't know how much pain you'll have to go through to get it going.
 
Old 06-09-2008, 07:40 AM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 231Reputation: 231Reputation: 231
Real h/w RAID 1 for <$100, may we have a link please? TIA.
 
Old 06-13-2008, 08:10 PM   #6
stefan_nicolau
Member
 
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529

Rep: Reputation: 32
a) It is possible to boot from software raid. You might not even need a /boot partition.
b) I would recommend avoiding hardware raid. Even real hardware raid cards may give you worse performance than software raid. Cheap raid controllers offload all the processing to the drivers. Linux drivers for these cards are notoriously buggy (look at all the dozens of raid threads in the forums here). I don't see why people claim hardware raid gives such great performance. I get 110mb/s from an ide software raid array, which is twice the speed of the individual drives. In addition, if anything happens to the hardware raid controller, your data might become inaccessible. (end of rant)
c) Yes, you can replace a drives. You will need to partition it first, I think, then tell mdadm to rebuild the array using the new drive.
d) If you want to really protect your system, you should put swap on a raid mirrored partition too. If a disk goes down with swap on it, the system will crash.
 
  


Reply

Tags
md, mdadm, raid, raid1


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
Is it better on dual boot,trible boot,quad boot rather than virtual machines? pleasehelpme Linux - Newbie 3 12-15-2007 12:04 PM
Boot Camp (fixing boot loaders, learning your way around boot & chainloaders) Siljrath Linux - General 7 05-29-2007 11:22 AM
When I boot my comp. (dual boot sys-Suse 10.1 & Win XP) the first boot stalls. philip niedermeyer Linux - Desktop 5 11-13-2006 06:04 PM
Kind souls: help getting Mandriva install 2 boot? edit boot.ini/grub /boot device or NoMoreReinstallMS Linux - Newbie 1 08-09-2006 04:34 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 12:09 PM


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