Sorry for the delay in getting back. Its a very busy week at the moment.
The how-to was one that Darrell May had written regarding adding additional RAID devices to v4.1.2 found down at the bottom of
http://forums.contribs.org/index.php?topic=31847.0. I took this as an outline of the process and made use of mdadm --help to get me to :
mdadm /dev/md2 --add /dev/sdb2
mdadm /dev/md1 --add /dev/sdb1
after reading the partition table from SDA and using fdisk to create the same layout on SDB.
The array re-built as it should, problem is that on reboot my logs show that the Partition table on SDB (second drive) is not recognized.
Extract from DMESG:
scsi1 : ata_piix
Vendor: ATA Model: Maxtor 7Y250M0 Rev: YAR5
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sda: 488281250 512-byte hdwr sectors (250000 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 488281250 512-byte hdwr sectors (250000 MB)
SCSI device sda: drive cache: write back
sda: sda1 sda2
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Vendor: ATA Model: WDC WD2500JS-75N Rev: 10.0
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdb: 488281250 512-byte hdwr sectors (250000 MB)
SCSI device sdb: drive cache: write back
SCSI device sdb: 488281250 512-byte hdwr sectors (250000 MB)
SCSI device sdb: drive cache: write back
sdb: unknown partition tableAttached scsi disk sdb at scsi0, channel 0, id 1, lun 0
device-mapper: 4.5.0-ioctl (2005-10-04) initialised: dm-devel@redhat.com
md: raid1 personality registered as nr 3
md: Autodetecting RAID arrays.
md: autorun ...
md: considering sda2 ...
md: adding sda2 ...
md: sda1 has different UUID to sda2
md: created md2
md: bind<sda2>
md: running: <sda2>
raid1: raid set md2 active with 1 out of 2 mirrors
md: considering sda1 ...
md: adding sda1 ...
md: created md1
md: bind<sda1>
md: running: <sda1>
raid1: raid set md1 active with 1 out of 2 mirrors
md: ... autorun DONE.
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
I ran fdisk again and was able to read the partition table from the disk and then write it back. I then used the mdadm commands as above to rebuild the array.
/proc/mdstat from before re-building the array was :
[root@betty /]# cat /proc/mdstat
Personalities : [raid1]
md2 : active raid1 sda2[0]
244035264 blocks [1/2] [U_]
md1 : active raid1 sda1[0]
104320 blocks [1/2] [U_]
unused devices: <none>
[root@betty /]#
I am concerened about the partition table on SDB is not sticking after a reboot and the fact that /proc/mdstat doesn't recognise /dev/sdb as a potential unused device.
Thanks,
Bill.