Re: Bad blocks in raid5 disk



Schraalhans Keukenmeester wrote:
I have the following situation:

3 harddisks, 2 P-ATA, 1 SATA. All 160 GB disks, not relevant I think)
/dev/hda, dev/hdb, /dev/sda

On each disk a 20GB partition (type fd) that is used in a software raid5 array /dev/md0. (/dev/hda5, /dev/hdb3, /dev/sda2)

My / is mounted on this raid volume.

Suddenly I got swamped in messages indicating disk problems on /dev/sda2
(Driveseek, Read errors)

(Temporarily stopped mdmonitor and auditd, as my system became almost totally unresponsive, as each error produces another message.)

Failed the /dev/sda2 device (mdadm /dev/md0 --fail /dev/sda2 --remove /dev/sda2)

Tried to fsck the partition but can't. There seems to be no fstype suited for checking a 'raid auto' partition.

There's no filesystem on the RAID component device. There *is* a filesystem on /dev/md0, which you should have been able to fsck.

Ran badblocks on the device and found bad blocks.
I'll buy a new disk asap.

For the time being : (how) Can I use fsck on this fd- partition to map out the bad sectors ?

No. As stated above, there's no filesystem there to check. Either fsck the md* device, or (if you don't want to touch the 'good' portions of the RAID) use badblocks, just the way you did. (It seems you've done the right thing without realizing it!)

Since the SATA-device is treated 'as scsi', does the driver itself take care of the bad block relocation?

To a point. If the disk runs out of spare sectors there's nothing that can be done.

How can I best proceed, given the fact the drive cannot be replaced until next week or so ? I found some wish-list for mdadm, so I assume this driver isn't fully developed yet. I'd rather have tools to 'repair' the thing from within the raid array. Is that possible ??

You probably can't repair anything except by replacing the disk, whether it's part of a RAID or not.
.



Relevant Pages

  • slackware 9.1 software raid problem
    ... Setting up a RAID system with Slackware 8 is not extremely difficult once ... mirroring the root partition and booting from that mirror was not possible. ... Each disk is attached to a different IDE chain on the motherboard. ... The ability to boot from the Slackware 8 install CD. ...
    (alt.os.linux)
  • Re: Un-RAID on ICH8R?
    ... These are the supported migrations in Intel Matrix RAID. ... Would adding an extra disk and making it a recovery partition help? ...
    (alt.comp.hardware.pc-homebuilt)
  • Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.general)
  • Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.sbs)
  • Re: Help! Repairing a RAID 1 dynamic disk
    ... Its a Dell Windows 2000 server with two SCSI hard drives running ... The two drives are configured with dynamic disk and software RAID ... The disk 0's C:OS partition is no longer synced to the disk 1's ...
    (microsoft.public.windows.server.sbs)