I had a raid array that was rebuilding when the system crashed. I brought the system back up and when I try to start my RAID5 array with mdctl: > mdctl --assemble --uuid 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 /dev/md0 /devfs/scsi/host?/*/*/*/part? I get: mdctl: failed to RUN_ARRAY /dev/md0: Invalid argument This looks not good. If my reading of the source code is correct, mdctl believes there are enough drives to start the array, but the system ioctl call fails. It looks almost as if the kernel thinks md0 is not a raid device, which it certainly is as this kernel was running the array earlier. Any help would be great. Thanks. Frank more..... > mdctl -v --assemble -f --uuid 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 /dev/md0 /devfs/scsi/host?/*/*/*/part? mdctl: looking for devices for /dev/md0 mdctl: /devfs/scsi/host0/bus0/target0/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host0/bus0/target1/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host0/bus0/target2/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host0/bus0/target3/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host1/bus0/target0/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host1/bus0/target1/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host1/bus0/target2/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host1/bus0/target3/lun0/part1 is identified as a member of /dev/md0. mdctl: /devfs/scsi/host1/bus0/target4/lun0/part1 is identified as a member of /dev/md0. mdctl: added /devfs/scsi/host1/bus0/target1/lun0/part1 to /dev/md0 as 1 mdctl: no uptodate device for slot 2 of /dev/md0 mdctl: added /devfs/scsi/host0/bus0/target0/lun0/part1 to /dev/md0 as 3 mdctl: added /devfs/scsi/host0/bus0/target3/lun0/part1 to /dev/md0 as 4 mdctl: added /devfs/scsi/host1/bus0/target0/lun0/part1 to /dev/md0 as 5 mdctl: added /devfs/scsi/host1/bus0/target2/lun0/part1 to /dev/md0 as 6 mdctl: added /devfs/scsi/host0/bus0/target1/lun0/part1 to /dev/md0 as 7 mdctl: added /devfs/scsi/host0/bus0/target2/lun0/part1 to /dev/md0 as 8 mdctl: added /devfs/scsi/host1/bus0/target4/lun0/part1 to /dev/md0 as 9 mdctl: added /devfs/scsi/host1/bus0/target3/lun0/part1 to /dev/md0 as 0 mdctl: failed to RUN_ARRAY /dev/md0: Invalid argument More info: > for i in /devfs/scsi/host?/*/*/*/part? ; do echo "=================================================================" ; mdctl --examine $i ; done ================================================================= /devfs/scsi/host0/bus0/target0/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d7aa - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 3 8 1 3 active sync /dev/sda1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host0/bus0/target1/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 11:28:20 2002 State : dirty, no-errors Active Drives : 8 Working Drives : 9 Failed Drives : 0 Spare Drives : 1 Checksum : 5395ccc1 - correct Events : 0.44 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 7 8 17 7 active sync /dev/sdb1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 active sync /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host0/bus0/target2/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d7d4 - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 8 8 33 8 active sync /dev/sdc1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host0/bus0/target3/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d7dc - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 4 8 49 4 active sync /dev/sdd1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host1/bus0/target0/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d7ee - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 5 8 65 5 active sync /dev/sde1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host1/bus0/target1/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d7f6 - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 1 8 81 1 active sync /dev/sdf1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host1/bus0/target2/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d810 - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 6 8 97 6 active sync /dev/sdg1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host1/bus0/target3/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d89c - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 0 8 129 0 active sync /dev/sdi1 0 0 8 1 0 active sync /dev/sda1 1 1 8 17 1 active sync /dev/sdb1 2 2 8 33 2 faulty removed /dev/sdc1 3 3 8 49 3 active sync /dev/sdd1 4 4 8 65 4 active sync /dev/sde1 5 5 8 81 5 active sync /dev/sdf1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 113 7 /dev/sdh1 8 8 8 129 8 active sync /dev/sdi1 9 9 8 113 9 /dev/sdh1 ================================================================= /devfs/scsi/host1/bus0/target4/lun0/part1: Magic : a92b4efc Version : 00.90.00 UUID : 60f4d8c1:ed98d6ba:bafc1a88:226a3ef6 Creation Time : Tue Dec 25 23:22:57 2001 Raid Level : raid5 Size : 97851648 Raid Disks : 9 Total Disks : 9 Preferred Minor : 0 Update Time : Wed Feb 20 12:15:22 2002 State : dirty, no-errors Active Drives : 7 Working Drives : 8 Failed Drives : 1 Spare Drives : 1 Checksum : 5395d820 - correct Events : 0.45 Layout : left_asymmetric Chunk Size : 256K Number Major Minor RaidDisk State this 9 8 113 9 /dev/sdh1 0 0 8 129 0 active sync /dev/sdi1 1 1 8 81 1 active sync /dev/sdf1 2 2 0 0 2 faulty removed 3 3 8 1 3 active sync /dev/sda1 4 4 8 49 4 active sync /dev/sdd1 5 5 8 65 5 active sync /dev/sde1 6 6 8 97 6 active sync /dev/sdg1 7 7 8 17 7 faulty /dev/sdb1 8 8 8 33 8 active sync /dev/sdc1 9 9 8 113 9 /dev/sdh1 - To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html