Question about Linux Software RAID

MGMorden

Diamond Member
Jul 4, 2000
3,348
0
76
Hey guys. I've got a fairly basic question here.

I've recently purchased an external drive housing, a SATA card that supports port multiplying, and 4 2TB hard drives. My intention is to setup a RAID5 array for a big file repository on my Linux desktop (Ubuntu 10.10).

Setup seems straightforward enough - I've got the RAID array configured and it's currently building (should be finished in about 14 more hours ).

My question though is about the recoverability of such an array in the event of the main system drive failing. Most of my experience setting up RAID arrays has been with servers where the array is configured in a hardware card's BIOS (and is hence outside the scope of the OS). Since this is software RAID, I'm assuming that there is some type of configuration defining the RAID stored somewhere.

If the drive holding that information crashes, gets accidentally reformatted - whatever - is it possible to recover the RAID array again without data loss? Are there any specific configuration files that would assist in helping me restore it in such an event?

Thanks.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
The RAID superblock is replicated as well to avoid that, but if you setup the array with mdadm then you should already know where to go to replace a failed drive, back to mdadm. There is a config file in /etc/mdadm/mdadm.conf, but most of it's optional as the array information is stored on each drive.
 

skyking

Lifer
Nov 21, 2001
22,635
5,744
146
Correct me if I am wrong, but What Nothinman means is, if your OS desktop drive fails but the array is fine, all you need to do is rebuild your desktop, add the mdadm package and mount the device.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
True, you should be able to plug all of the drives into any machine on any ports and the kernel and mdadm should find and bring up the array. I thought he was thinking that the array config is only on one drive in the array, which isn't true.
 

MGMorden

Diamond Member
Jul 4, 2000
3,348
0
76
I thought he was thinking that the array config is only on one drive in the array, which isn't true.

Kinda close. I figured that the array configuration was stored on a drive that wasn't in the array (ie, my system drive that is separate). Just wanted to make sure that if that was the case that I was backing up that configuration somewhere in the event that I reformat the system drive but wanted to preserve my raid array.

Sounds like this won't be an issue. I guess one of the downsides of easier admin tools is that it hides so much that you don't learn as much as you used to. Once upon a time I would have dug into this pretty good, but I was able to get the array setup with 10-12 mouse clicks, which left me kinda wondering how it actually all worked .
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |