Hello everyone,
I'm having a trouble rebuilding raid 1 array using dmraid, can anyone offer some suggestions?
The server originally has two hard drives configured into RAID1 through intel ich9r chip, which is a fakeraid. However, one of the hard drive failed a couple of days ago, and I ordered a replacement hard drive. However, I cannot rebuild the raid 1 array.
After I've inserted the hard drive, I used control+I in Bios to set the new hard drive into the rebuild status, and it says the rebuild will be performed in the operating system. After I boot up the system I cannot rebuild it using dmraid -R. Here is the status.
$ sudo /sbin/dmraid -ay
RAID set "isw_djijedgcga_Volume0" was not activated
ERROR: device "isw_djijedgcga_Volume0" could not be found
$ sudo /sbin/dmraid -s
*** Group superset isw_djijedgcga
--> Subset
name : isw_djijedgcga_Volume0
size : 1465143296
stride : 128
type : mirror
status : nosync
subsets: 0
devs : 2
spares : 0
$ sudo /sbin/dmraid -r
/dev/sda: isw, "isw_djijedgcga", GROUP, ok, 1465149165 sectors, data@ 0
/dev/sdb: isw, "isw_djijedgcga", GROUP, ok, 1465149165 sectors, data@ 0
$ sudo /sbin/fdisk -l
Disk /dev/sda: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 12748 102398278+ 83 Linux
/dev/sda2 12749 14788 16386300 82 Linux swap / Solaris
/dev/sda3 14789 91200 613779390 83 Linux
Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
$ sudo /sbin/dmraid -R isw_djijedgcga /dev/sdb
ERROR: disk /dev/sdb cannot be used to rebuilding
Thanks a million for help.