[mdlug] ext3 - fixing bad block in RAID 1 on root file system.

Stan Green Stan at mcomputersolutions.com
Sun Dec 21 21:40:06 EST 2008


I have a ext3 file system, which is the root FS, on a RAID 1 array where one 
drive failed.  No problem, I replace it and the array starts to rebuild. It 
gets to 99% done and finds a bad block on the source drive. So, it starts 
over going into an endless rebuild loop. 

I booted to Knoppix and ran e2fsck -cc (Should this have been -c ?) on the 
partition,  /dev/hda1, (not the RAID array), but that did not work. The 
rebuild still found the bad block.

So, I need to some how mark the block bad (I have the number) so that the RAID 
rebuild will complete.

The system seems to run fine with the bad block, it just will not rebuild the 
RAID array. The distro is Fedora 6.

Any ideas here?

FYI: Yes I am replacing the source drive as soon as I get the the RAID array 
working again.

Thanks,
Stan



More information about the mdlug mailing list