Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
. 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?
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.