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

Jay Nugent jjn at nuge.com
Mon Dec 22 00:00:01 EST 2008


Greetings,

On Sun, 21 Dec 2008, Stan Green wrote:

> 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.

   /sbin/badblocks

   See the manpage for the syntax used to map out the bad blocks.

      --- Jay Nugent

+------------------------------------------------------------------------+
| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)649-0850/Cell       |
|   Nugent Telecommunications  [www.nuge.com]                            |
|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.org] ISP & Modem Performance Monitoring |
| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
+------------------------------------------------------------------------+
 11:01pm  up 22 days,  7:11,  4 users,  load average: 0.35, 0.63, 0.34




More information about the mdlug mailing list