I'm trying to rebuild a raid 1 (dmraid+isw) unsuccessfully. I replaced the failed disk with a new one and the BIOS added it automatically to the raid. Running kernel 2.6.18-194.17.4.el5.

dmraid -r

/dev/sda: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0 /dev/sdb: isw, "isw_babcjifefe", GROUP, ok, 1953525165 sectors, data@ 0

dmraid -s

*** Group superset isw_babcjifefe --> Subset name : isw_babcjifefe_Raid0 size : 1953519616 stride : 128 type : mirror status : nosync subsets: 0 devs : 2 spares : 0

When i try to start the raid i receive the next errors

dmraid -f isw -S -M /dev/sdb

ERROR: isw: SPARE disk must use all space on the disk

dmraid -tay

isw_babcjifefe_Raid0: 0 1953519616 mirror core 3 131072 sync block_on_error 2 /dev/sda 0 /dev/sdb 0

dmraid -ay

RAID set "isw_babcjifefe_Raid0" was not activated ERROR: device "isw_babcjifefe_Raid0" could not be found

dmraid -f isw -S -M /dev/sdb

ERROR: isw: SPARE disk must use all space on the disk

dmraid -R isw_babcjifefe_Raid0 /dev/sdb

ERROR: disk /dev/sdb cannot be used to rebuilding

dmesg

device-mapper: table: 253:13: mirror: Device lookup failure device-mapper: ioctl: error adding target to table device-mapper: ioctl: device doesn't appear to be in the dev hash table. device-mapper: table: 253:13: mirror: Device lookup failure device-mapper: ioctl: error adding target to table device-mapper: ioctl: device doesn't appear to be in the dev hash table. device-mapper: table: 253:13: mirror: Device lookup failure device-mapper: ioctl: error adding target to table device-mapper: ioctl: device doesn't appear to be in the dev hash table. device-mapper: ioctl: device doesn't appear to be in the dev hash table. device-mapper: ioctl: device doesn't appear to be in the dev hash table.

Disks:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes

LVM: