|raid0 configuration currently. I would like to do away with this
|configuration, and setup a linux software raid. I would prefer to use a
ok
|stable 2.0.X kernel but will use a 2.1.x kernel if neccessary. I am
shouldn't be a problem unless you need some of the 2.1.x (or now 2.2.0preX)
features.
|curious as to whether I can set them up in the following configuration. 3
|Drives for Data 1 for parity and another for a hot spare. If so, I've read
That's not a problem, but you're describing a RAID 4 setup (RAID 5 doesn't
have a dedicated parity drive.)
|through several raid-howto's and none of them give a step by step setup of
|raid5 on Linux. Can someone send me a list of things to do to go about
|setting this up, or if not does anyone know of one that's currently out
|there that they could point me to? Thank you,
let's see if I can remember:
1) grab kernel, apply latest raid patch + raidtools source
2) compile+install kernel, compile + install raidtools
3) reboot (load new kernel)
4) use fdisk to create partitions you want (possibly 1 partition taking up
entire drive), make sure to set partition type to 0xfd (will allow auto-start
at bootup).
5) create /etc/raidtab. mine looks like this, you'll have to modify it
slightly if you want spare-disks (as above):
raiddev /dev/md0
raid-level 5
nr-raid-disks 4
nr-spare-disks 0
chunk-size 256
parity-algorithm left-symmetric
persistent-superblock 1
device /dev/sdb1
raid-disk 0
device /dev/sdc1
raid-disk 1
device /dev/sdd1
raid-disk 2
device /dev/sde1
raid-disk 3
I believe you just up the nr-spare-disks to 1, and add in a spare-disk
command at the end, but look in the man page, it'll tell you.
6) (at this point my memory is a little foggy) do a /sbin/mkraid /dev/md0
this should create the md device for you.
7) mke2fs /dev/md0
8) you should be done. I'd try rebooting to make sure the auto-start works,
and that's about it. you can then mount up /dev/md0 as you like.