[sclug] Setting up SATA RAID for /home not / (Debian Lenny)

John Stumbles sclug at yaph.org.uk
Wed May 20 15:09:15 UTC 2009


Keith Edmunds wrote:

> # mdadm -C /dev/md0 /dev/sdc1 /dev/sdd1 -n 2 -l 1
...
> # mke2fs -j /dev/md0 (or whatever filesystem you want)
> # mount /dev/md0 /it/goes/here

I know it's just cosmetic, but is there a Linuxey 'standard' sort of 
place to mount a filesystem that's going to be exported (this box is a 
fileserver)?

> Add /dev/md0 to /etc/fstab if desired.

OK, thanks, and thanks Dickon:

 > and you'll probably want to set the partition type to 0xfe (RAID
 > autodetect).  If you're using a Debian kernel, you'll probably want to
 >
 > mdadm --misc --scan --brief > /etc/mdadm/mdadm.conf

When I installed mdadm it asked me:

"Once the base system has booted, mdadm can start all MD arrays (RAIDs) 
specified in /etc/mdadm/mdadm.conf which have not yet been started. This 
is recommended unless multiple device (MD) support is compiled into the 
kernel and all partitions are marked as belonging to MD arrays, with 
type 0xfd (as those and only those will be started automatically by the 
kernel)."

which sounds as if I don't need to set the type 0xfd ... we will see, I 
haven't restarted the system yet, mke2fs is still cooking ...


Bonus Q for another 10 points: I strikes me it would be kewl to know 
when the first HDD failure occurs, rather than waiting for the second 
;-). Presumably it'll be noted in the logs, but is there any more 
prominent way of getting notification?


-- 
John Stumbles                                       http://yaph.org.uk
:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:



More information about the Sclug mailing list