Here we go again. Yet another victim of the obsolete documentation. I don't
mind volunteering to put together a basic set of instructions for the new
code, but I have no practical experience of RAID-0 or RAID-5, so I'm
probably not the best person for this. But someone needs to do this to stop
every new user of the RAID code being completely confused.
Anyway, to answer Eugene's question: mdadd is obsolete - you don't use it
any more with the latest code (raidtools-0.90). The only tools you will need
are mkraid and raidstart (along with raidstop, raidhotadd and raidhotremove,
which are symlinks to raidstart).
Create /etc/raidtab for your setup, based on the examples in raidtab.sample
in the raidtools-0.90 directory. For each md device you want to create,
mkraid -f /dev/md? where ? is the number of the md device in your raidtab
file. Once you've done this, the md devices are running. You just need to
mke2fs them to create the filesystem on them, and then they are ready to be
mounted and used.
To use them in future, you can either start them with raidstart, or, more
simply, mark each RAID partition as type 0xfd (using fdisk) so that the
kernel will automatically recognize and start them at start-up (you will
need RAID support built into the kernel, or an initrd if you are using
modular-RAID). The kernel also takes care of stopping the md devices at
shutdown.
Cheers,
Bruno Prior [EMAIL PROTECTED]