I was suffering from a hard drive I/O problem. A quick check with smartctl -A -l error revealed 38 errors on sda, so it had to be replaced.
So this morning the hard drive was swapped for a new blank one and I began the process of rebuilding the RAID.
I booted of a Gentoo Minimal Install CD. These are notable as they are the only install CDs I’ve found that contain the necessary md[0–3] devices in /dev.
- I created the partitions on the new hard drive, set the types to Linux RAID and made partition 1 bootable
- I then mounted the root partition from sdb3 and copied the mdadm.conf file to /etc. I unmounted sdb3
- I edited the mdadm.conf file:
For every ARRAY entry I added the textdevices=/dev/sda3,missingat the end of each line - I mounted the RAID arrays under /mnt/gentoo as appropriate
- For each array I issued
mdadm /dev/md0 --add /dev/sdb1, changing md0 and sdb1 as appropriate - I also had to re-install GRUB on my system:
grub
device (hd0) /dev/sda
root (hd0,0)
setup (hd0)
device (hd1) /dev/sdb
root (hd1,0)
setup (hd1)
quit
Two hours later it was finished and I’m now giving the system a solid hard drive test to ensure future stability.
Post new comment