I have a RAID 1 of 2 hard drives managed with
mdadm. Today, one of them failed. I figured out that this is because of bad sectors in
/dev/sdb. According to
badblocks, these sectors are affected:
1028, 1029, 1030, 1031. In
/dev/sdb1 (the only partition on the hard drive), they are sectors
4, 5, 6, 7. I performed a read-only test.
After googling the problem, I found out that you can instruct a file system to cope with bad blocks. But what do you do if the affected region isn't used directly by any file system but by a RAID manager instead?
I guess that in my case I could simply move the partition a bit to the right. But what would you do if the fault was somewhere in the middle of the drive? Is moving the partition a bit to the right the proper solution for my problem?