My problem was that one of the disks had changed positions in the enclosure to allow for a new CD-ROM drive. So it showed up in /proc/mdstat as degraded.
It turns out that Fedora Linux now uses "mdadm" to manage its RAID filesystems, and doesn't really need /etc/raidtab any more. In fact, I never found a way to regenerate the file.
A helpful article at http://www.networknewz.com/2003/0113.html described mdadm and all that you can do with it in detail. The resulting /dev/md0 configuration always uses persistent superblocks, so the RAID configuration is recognized by mdadm at reboot.
To add a new /dev/hdf1 partition to the existing RAID-5 configuration, using mdadm it was simple: mdadm /dev/md0 --add /dev/hdf1. Once I did that, I entered "cat /proc/mdstat" and got:
Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 hdf1[3] hdc1[1] hdd1[2]
240107264 blocks level 5, 32k chunk, algorithm 0 [3/2] [_UU]
[>....................] recovery = 4.1% (4968188/120053632) finish=193.1min speed=9929K/sec
unused devices:
To save the RAID configuration you need to save /etc/mdadm.conf. Once a RAID has been built, you need to run this command to create an entry for /etc/mdadm.conf:
/home/fredrick> mdadm --detail --scan ARRAY /dev/md0 level=raid5 num-devices=6 UUID=1ba7e95a:24d106f6:7756543e:82c7b110 devices=/dev/hde1,/dev/hdf1,/dev/hdi1,/dev/hdj1,/dev/hdk1,/dev/hdl1
/home/fredrick> mdadm --examine /dev/hde1
/dev/hde1:
Magic : a92b4efc
Version : 00.90.00
UUID : 89b4a3df:6553bf7f:59cdc3bb:9dc3b450
Creation Time : Tue Jun 15 07:09:38 2004
Raid Level : raid5
Device Size : 160079552 (152.66 GiB 163.92 GB)
Raid Devices : 6
Total Devices : 6
Preferred Minor : 0
Update Time : Fri Jun 25 06:21:33 2004
State : clean, no-errors
Active Devices : 4
Working Devices : 4
Failed Devices : 4
Spare Devices : 0
Checksum : 1b028087 - correct
Events : 0.217928
Layout : left-symmetric
Chunk Size : 64K
Number Major Minor RaidDevice State
this 0 33 1 0 active sync /dev/hde1
0 0 33 1 0 active sync /dev/hde1
1 1 33 65 1 active sync /dev/hdf1
2 2 56 1 2 active sync /dev/hdi1
3 3 56 65 3 active sync /dev/hdj1
4 4 0 0 4 faulty removed
5 5 0 0 5 faulty removed
in a RAID 5 array, only 1 device can safely be removed while maintaining
the integrity of the filesystem as a whole.
/home/fredrick> lsraid -a /dev/md0 lsraid: md device [dev 9, 0] /dev/md0 is offline: Please specify a disk to query
sudo mdadm --create --verbose /dev/md0 --level=5 --raid-devices=6 /dev/hde1 /dev/hdf1 /dev/hdi1 /dev/hdj1 /dev/hdk1 /dev/hdl1 sudo mount /dev/md0 /mntI may have also caused the problem by an errant /etc/raidtab file. For the record, /etc/raidtab should not exist.
1 cat /proc/mdstat 2 sudo mdadm --examine /dev/hde1 3 sudo mdadm /dev/md0 -a /dev/hde2 4 cat /proc/mdstat