I've been asked to look at a computer which had a Raid 1 Array in it until one drive failed 12 months ago without being picked up and has now been replaced but the other drive is also in a bad way and has a bunch of damaged sectors.
Ideally I'd like to integrate the new drive into the array and then decommission the broken drive and have it replaced. But when doing so mdadm gets so far then throws something like:
May 29 12:55:46 jackbarberlimited xinetd[21512]: START: smtps pid=28049 from=::ffff:2.102.62.201
May 29 12:55:46 kernel: ata2.00: status: { DRDY ERR }
May 29 12:55:46 kernel: ata2.00: error: { UNC }
May 29 12:55:46 kernel: ata2.00: configured for UDMA/133
May 29 12:55:46 kernel: sd 1:0:0:0: SCSI error: return code = 0x08000002
May 29 12:55:46 kernel: sdb: Current [descriptor]: sense key: Medium Error
May 29 12:55:46 kernel: Add. Sense: Unrecovered read error - auto reallocate failed
May 29 12:55:46 kernel:
May 29 12:55:46 kernel: Descriptor sense data with sense descriptors (in hex):
May 29 12:55:46 kernel: 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
May 29 12:55:46 kernel: 3a d9 d5 58
May 29 12:55:46 kernel: end_request: I/O error, dev sdb, sector 987354456
May 29 12:55:46 kernel: raid1: sdb: unrecoverable I/O read error for block 982615168
May 29 12:55:46 kernel: ata2: EH complete
May 29 12:55:46 kernel: SCSI device sdb: 1465149168 512-byte hdwr sectors (750156 MB)
May 29 12:55:46 kernel: sdb: Write Protect is off
May 29 12:55:46 kernel: SCSI device sdb: drive cache: write back
May 29 12:55:46 kernel: md: md2: sync done.
Clearly its a bit upset copying a broken drive to a new drive, is there a way of forcing this, or do I have to copy the stuff across on a recovery disk or something?