- 追加された行はこの色です。
- 削除された行はこの色です。
*Raid 1+0 DEGRADED mode [#bd725e18]
Thu May 14 04:03:23 JST 2009
ad4: TIMEOUT - READ_DMA retrying (1 retry left) LBA=7515071
ad4: TIMEOUT - READ_DMA retrying (0 retries left) LBA=7515071
ad4: FAILURE - READ_DMA timed out LBA=7515071
ar0: WARNING - mirror protection lost. RAID0+1 array in DEGRADED mode
ar0: writing of nVidia MediaShield metadata is NOT supported yet
ガーン!!!!!
で、ディスク丸ごと
piano:root {130} % ./backup_to_blackcube_all.sh
#!/bin/sh
/usr/local/bin/rsync -av --delete --exclude '/usr/Backups/*' / www.smb.net:/usr/Backups/Piano/7_1/all/
しておく。
このとき、HDDのアクセスランプを見ると、ディスク3が点灯しない。
ので、きっと、ad4 は、ディスク3なのだ。
*FreeBSD ハンドブック [#nd158818]
**15.4.3. ATA RAID1 アレイの再構築 [#n5ec72b0]
FreeBSD はアレイ内の障害ディスクを動作中に交換できます。ただし、再起動前にそれを検知していることが必要です。
/var/log/messages または dmesg(8) の出力に次のような行があるでしょう。
ad6 on monster1 suffered a hard error.
ad6: READ command timeout tag=0 serv=0 - resetting
ad6: trying fallback to PIO mode
ata3: resetting devices .. done
ad6: hard error reading fsbn 1116119 of 0-7 (ad6 bn 1116119; cn 1107 tn 4 sn 11) status=59 error=40
ar0: WARNING - mirror lost
atacontrol(8) を使用して詳細を調べてください。
# atacontrol list
ATA channel 0:
Master: no device present
Slave: acd0 <HL-DT-ST CD-ROM GCR-8520B/1.00> ATA/ATAPI rev 0
ATA channel 1:
Master: no device present
Slave: no device present
ATA channel 2:
Master: ad4 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
Slave: no device present
ATA channel 3:
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
Slave: no device present
# atacontrol status ar0
ar0: ATA RAID1 subdisks: ad4 ad6 status: DEGRADED
***1.ディスクを安全に取り外すために、 まずアレイから切り離します。 [#f4f828d1]
# atacontrol detach 3
***2.ディスクを取り外します。 [#r1ce3683]
***3.スペアのディスクを取り付けます。 [#l8fdc697]
# atacontrol attach 3
Master: ad6 <MAXTOR 6L080J4/A93.0500> ATA/ATAPI rev 5
Slave: no device present
***4.アレイを再構築します。 [#q2fa284d]
# atacontrol rebuild ar0
***5.再構築コマンドは完了するまで他の操作を受け付けません。 [#r700c1bb]
しかし、もう一つ別のターミナルを (Alt+Fn を押して) 開き、次のコマンドを実行すると進行状態を確認することができます。
# dmesg | tail -10
[output removed]
ad6: removed from configuration
ad6: deleted from ar0 disk1
ad6: inserted into ar0 disk1 as spare
# atacontrol status ar0
ar0: ATA RAID1 subdisks: ad4 ad6 status: REBUILDING 0% completed
***6.操作が完了するまでお待ちください。 [#hffa41f0]