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

Dickon Hood dickon-ml at fluff.org
Wed May 20 08:41:30 UTC 2009

On Wed, May 20, 2009 at 04:11:03 +0100, John Stumbles wrote:
: Maybe my google-fu isn't up to scratch but I can't find how to set up 
: two drives as a pure software RAID <mutter> (mirrored).

: Lots of stuff on "SATA RAID" which seems to be using fake RAID on the 
: SATA card, and how hard that is to do, and stuff on how hard it is to 
: set up so your installation is actually on the RAID filesystem: I don't 
: want to do that - I've a separate small drive with the OS on it, just 
: want to configure 2 SATA drives as a separate RAID. Pointers?

>From memory:

mdadm --create /dev/md0 -l 1 -n 2 /dev/sd[ab]2

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

(or something similar; you'll need to read the manpage), and add the
device to /etc/initramfs/initramfs.conf to start it on boot, before
rebuilding your initramfs and re-liloing.

Dickon Hood

Due to digital rights management, my .sig is temporarily unavailable.
Normal service will be resumed as soon as possible.  We apologise for the
inconvenience in the meantime.

No virus was found in this outgoing message as I didn't bother looking.

More information about the Sclug mailing list