6

Rebuilding Raid1 array

view full story
linux-howto

http://forums.opensuse.org – Having problems getting this to work... I originally had openSUSE 10.2 running as a simple fileserver with 2 software RAID 1 arrays. Things were working fine, until the system drive (a small, cheap 10GB IDE drive) died. I put in a new IDE drive and have installed openSUSE 11.2 on it without a problem. Problem now is that I need to get the RAID arrays up and running again. I had used YAST to build the arrays originally under 10.2, but it's unclear to me how to reconstruct previously functioning software RAID arrays. I tried this with one pair of the drives. They are 2 500GB SATA drives on a PCI SATA adapter: Code: # mdadm --assemble /dev/md0 /dev/sdb1 /dev/sdc1 mdadm: failed to add /dev/sdc1 to /dev/md0: Invalid argument mdadm: failed to add /dev/sdb1 to /dev/md0: Invalid argument mdadm: /dev/md0 assembled from 0 drives - not enough to start the array. Here is output of fdisk -l : Code: # fdisk -l /dev/sdb   Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x69617220     Device Boot      Start        End      Blocks  Id  System /dev/sdb1              1      60800  488375968+  fd  Linux raid autodetect # fdisk -l /dev/sdc   Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0d646961     Device Boot      Start        End      Blocks  Id  System /dev/sdc1              1      60800  488375968+  fd  Linux raid autodetect Any help, tips, guidance, suggestions, etc. would be appreciated. Many thanks! (Distributions)