雑記/2010-06-03に購入し、CentOS5.10 + GW3.5MX2-SUE/CB + WD20EARSx2台 RAID1構成で使っていたHDDのうち1台が壊れたようだ。
寿命はちょうど4年。
結論から言うと、RAID1のおかげでデータは無事。転送速度が遅いだけだったので、HDD故障に気がつくまでちょっと時間がかかった。
# fdisk -l Disk /dev/sdb: 2000.3 GB, 2000398934016 bytes 224 heads, 56 sectors/track, 311465 cylinders Units = シリンダ数 of 12544 * 512 = 6422528 bytes # dmesg ata6: EH complete Vendor: ATA Model: External Disk 0 Rev: 1.15 Type: Direct-Access ANSI SCSI revision: 05 SCSI device sdb: 3907029168 512-byte hdwr sectors (2000399 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back SCSI device sdb: 3907029168 512-byte hdwr sectors (2000399 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write back sdb: sdb1 sd 5:0:0:0: Attached scsi disk sdb sd 5:0:0:0: Attached scsi generic sg2 type 0 デバイス Boot Start End Blocks Id System /dev/sdb1 1 311465 1953508452 83 Linux
# fdisk -l ... Disk /dev/sdb: 8589 MB, 8589934080 bytes 255 heads, 63 sectors/track, 1044 cylinders Units = シリンダ数 of 16065 * 512 = 8225280 bytes デバイス Boot Start End Blocks Id System # dmesg ata6: hard resetting link ata6: SATA link down (SStatus 0 SControl 310) ata6: failed to recover some devices, retrying in 5 secs ata6: hard resetting link ata6: link is slow to respond, please be patient (ready=-19) ata6: COMRESET failed (errno=-16) ata6: hard resetting link ata6: link is slow to respond, please be patient (ready=-19) ata6: COMRESET failed (errno=-16) ata6: hard resetting link ata6: link is slow to respond, please be patient (ready=-19) ata6: SATA link up 1.5 Gbps (SStatus 113 SControl 310) ata6.00: configured for MWDMA2 ata6: EH complete SCSI device sdb: 16777215 512-byte hdwr sectors (8590 MB) sdb: Write Protect is off sdb: Mode Sense: 00 3a 00 00 SCSI device sdb: drive cache: write through
1台ずつ直接PCへ接続し、どちらか生きているか確認した。
コピー中にエラーになる事があったため、何度かfsckした。
数個のファイルの中身を確認しただけだが、全てのファイルはコピーできた。
mount /dev/sdc1 /mnt/disk1 rsync -av --exclude "lost+found" --exclude ".recycle" /mnt/disk1/ /opt/backup/
umount /mnt/disk1 fsck -y /dec/sdc1