/usr/portage

Setting Up A Software Raid 5 0

Just to use my weblog as some kind of pad I want to write about creating an software RAID5 as I did with Johannes’ server yesterday. It doesn’t differs much from setting up a RAID1 but a bit.

First of all, you must have three partitions in the same size. The filesystem of this partitions is unimportant, just create one. Using three 200GB IDE-discs (hda, hdb, hdc) we first have to install mdadm (emerge sys-fs/mdadm). Then we’re going to set up the software RAID5.
$ mdadm –create /dev/md/0 –raid-devices=3 –level=5 /dev/hda1 /dev/hdb1 /dev/hdc1
Now /dev/md/0 exists and could be uses as a default block device. To make sure, that your Gentoo system reloads the RAID5 correctly on bootup, add the following lines to your /etc/mdadm.conf:
$ cat /etc/mdadm.conf
DEVICE /dev/hda1 /dev/hdb1 /dev/hdc1
ARRAY /dev/md/0 devices=/dev/hda1,/dev/hdb1,/dev/hdc1

MAILADDR admin@yourdomain.tld
Now you can follow »Crypt Your Partition With DM-Crypt«.

Filed under , , & no comments & three trackbacks

Trackbacks

Trackback specific URI for this entry

No Trackbacks

Comments

No comments

Add a Comment & let me know what you think