As many on this list have mentioned, there are a couple of problems that
keep people posting for help with. I've made some quick patches to the
raidtools-19990824-0.90 package in hopes of helping people out in the
future. these patches are all superficial, in that they shouldn't affect
how raid works in anyway once things are set up.
The changes I made are:
* Changed mkraid & mkpv to check the version of the raid in the kernel
versus their version, and complain if they are newer than the kernel
version. This will help the folks who have a new raidtools version, but an
unpatched kernel.
* Changed raidlib.c to give more information if it can't access md0. It
tells the user that either RAID isn't compiled into the kernel, or they need
to make the raid devices (make install_dev)
* Changed parser.c to assume a chunk-size of 4k for a raid0 array that
otherwise has no chunk-size... as the documentation suggests to folks that
no chunk-size param is needed for raid0... and since you can change raid0
chunk-size after the raid has been made, they aren't stuck with any one
value.
The patch can be found at
http://volition.org/~tsl/raid/friendlier.raidtools.patch.gz
does anyone have any other requests for more verbose error reporting in the
raid tools?
The output if you're running old raid:
ERROR: Unsupported md version in kernel!
mkraid has determined that you are using a kernel that includes an older
version of the RAID patches than this version of mkraid supports. Your
kernel RAID version is 0.36, while mkraid requires a version of 0.90
or higher. Newer raid kernel patches can be obtained from:
ftp://ftp.XX.kernel.org/pub/linux/daemons/raid/alpha/
where XX is a country code, like US
mkraid: aborted
and if you aren't running raid at all:
cannot determine md version: No such file or directory
This generally means either RAID was not compiled into the kernel or
/dev/md0 does not exist. Check your kernel options, or run
make install_dev to create the md devices
regards,
tom