デバイスのリタイアメントメカニズムでは、障害管理フレームワーク (FMA) によって、障害ありとしてフラグが付けられているデバイスが隔離されます。この機能では、障害のあるデバイスを安全な方法で自動的に非アクティブにして、データ消失、データ破壊、パニック、システムのダウンタイムなどを回避できます。リタイアメント処理は、デバイスのリタイア後のシステムの安定性を考慮します。
重要なデバイスがリタイアされることはありません。リタイア済みのデバイスを手動で交換する必要がある場合は、デバイスの交換後に fmadm repair コマンドを使用して、デバイスが交換されたことをシステムに認識させます。
詳細は、fmadm(1M) を参照してください。
デバイスがリタイアすると、次のようなメッセージがコンソールに表示され、/var/adm/messages ファイルに記録されます。
Aug 9 18:14 starbug genunix: [ID 751201 kern.notice] \ NOTICE: One or more I/O devices have been retired
prtconf コマンドを使用して、特定のリタイア済みデバイスを確認することもできます。例:
# prtconf . . . pci, instance #2 scsi, instance #0 disk (driver not attached) tape (driver not attached) sd, instance #3 sd, instance #0 (retired) scsi, instance #1 (retired) disk (retired) tape (retired) pci, instance #3 network, instance #2 (driver not attached) network, instance #3 (driver not attached) os-io (driver not attached) iscsi, instance #0 pseudo, instance #0 . . .
障害のあるデバイスまたはリタイア済みのデバイスを解決するには、次の手順を使用します。
# fmadm faulty --------------- ------------------------------------ -------------- --------- TIME EVENT-ID MSG-ID SEVERITY --------------- ------------------------------------ -------------- --------- Jun 20 16:30:52 55c82fff-b709-62f5-b66e-b4e1bbe9dcb1 ZFS-8000-LR Major Problem Status : solved Diag Engine : zfs-diagnosis / 1.0 System Manufacturer : unknown Name : ORCL,SPARC-T3-4 Part_Number : unknown Serial_Number : 1120BDRCCD Host_ID : 84a02d28 ---------------------------------------- Suspect 1 of 1 : Fault class : fault.fs.zfs.open_failed Certainty : 100% Affects : zfs://pool=86124fa573cad84e/vdev=25d36cd46e0a7f49/ pool_name=pond/vdev_name=id1,sd@n5000c500335dc60f/a Status : faulted and taken out of service FRU Name : "zfs://pool=86124fa573cad84e/vdev=25d36cd46e0a7f49/ pool_name=pond/vdev_name=id1,sd@n5000c500335dc60f/a" Status : faulty Description : ZFS device 'id1,sd@n5000c500335dc60f/a' in pool 'pond' failed to open. Response : An attempt will be made to activate a hot spare if available. Impact : Fault tolerance of the pool may be compromised. Action : Use 'fmadm faulty' to provide a more detailed view of this event. Run 'zpool status -lx' for more information. Please refer to the associated reference document at http://support.oracle.com/msg/ZFS-8000-LR for the latest service procedures and policies regarding this diagnosis.
# zpool clear pond c0t5000C500335DC60Fd0
デバイスエラーが断続的に発生するが、デバイスを交換しなかった場合は、前のエラーのクリアを試みることができます。
# fmadm repaired zfs://pool=86124fa573cad84e/vdev=25d36cd46e0a7f49/ \ pool_name=pond/vdev_name=id1,sd@n5000c500335dc60f/a fmadm: recorded repair to of zfs://pool=86124fa573cad84e/vdev=25d36cd46e0a7f49/ pool_name=pond/vdev_name=id1,sd@n5000c500335dc60f/a
# fmadm faulty
エラーがクリアされると、fmadm faulty コマンドは何も返しません。