Performed an acid test of my software RAID level 1 and can't for the life of me figure out how to re-sync/rebuild the array. At least I know GRUB works nicely from either drive.
Currently running in degraded mode. I think the following will give all the info required to help me get back on the right path.
---------------------------
[root@krell root]# lsraid -a /dev/md0 -a /dev/md1 -a /dev/md2
[dev 9, 0] /dev/md0 4B97747C.B68C533E.DC5AA065.0A4F42FD online
[dev 33, 1] /dev/hde1 4B97747C.B68C533E.DC5AA065.0A4F42FD good
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing
[dev 9, 1] /dev/md1 F200A9DD.FC2736B1.25E93D02.6A031A26 online
[dev 33, 3] /dev/hde3 F200A9DD.FC2736B1.25E93D02.6A031A26 good
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing
[dev 9, 2] /dev/md2 D2DECFDF.27BCC8AF.4B9A16F7.E02123FF online
[dev 33, 2] /dev/hde2 D2DECFDF.27BCC8AF.4B9A16F7.E02123FF good
[dev ?, ?] (unknown) 00000000.00000000.00000000.00000000 missing
[root@krell etc]# cat raidtab
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
nr-spare-disks 0
device /dev/hda3
raid-disk 0
device /dev/hde3
raid-disk 1
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
nr-spare-disks 0
device /dev/hda1
raid-disk 0
device /dev/hde1
raid-disk 1
raiddev /dev/md2
raid-level 1
nr-raid-disks 2
chunk-size 64
persistent-superblock 1
nr-spare-disks 0
device /dev/hda2
raid-disk 0
device /dev/hde2
raid-disk 1
[root@krell root]# sfdisk -l
Disk /dev/hde: 14593 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hde1 * 0+ 12 13- 104391 fd Linux raid autodetect
/dev/hde2 13 142 130 1044225 fd Linux raid autodetect
/dev/hde3 143 14592 14450 116069625 fd Linux raid autodetect
/dev/hde4 0 - 0 0 0 Empty
Disk /dev/hda: 14593 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 12 13- 104391 fd Linux raid autodetect
/dev/hda2 13 142 130 1044225 fd Linux raid autodetect
/dev/hda3 143 14592 14450 116069625 fd Linux raid autodetect
/dev/hda4 0 - 0 0 0 Empty
---------------------------
As you can see, my testing disconnected all the hda devices from the array. I've been searching around, but just can't seem to figure out the magic required to get the hda drives back into the array and re-synched. I tried:
mdadm --create /dev/md0 --level=raid1 --raid-devices=2 /dev/hde1 /dev/hda1
but got:
SET_ARRAY_INFO failed for /dev/md0: File exists
So now I'm stuck. And let me pre-apologize if this answer has been obviously provided elsewhere and somehow I'm too thick to get it. I really have been searching for hours and am truly stumped.
While I'm at it, can someone tell me how to proceed when I get a power outage problem and upon reboot GRUB will get stuck at Stage 2 due to the file system corruption? That's my next test and I'd rather not get stuck again.
