システム上のディスクに欠陥セクターが存在する場合は、次の手順に従って修復できます。欠陥セクターを発見するのは次のような場合です。
ディスク上で表面解析を実行した場合
format ユーティリティーの解析機能については、「analyze メニュー」を参照してください。
システムの実行中にレポートされる欠陥領域は正確ではない場合があります。システムは一度に多数のセクターでディスク処理を実行するので、通常は、どのセクターが所定のエラーの原因かを正確に突き止めるのは困難です。セクターを正確に検出する方法については、「表面解析を使用して欠陥セクターを調べる方法」を参照してください。
システムの実行中に、ディスクドライバからディスクの特定部分に関して多数のエラーメッセージが表示される場合
次のようなディスクエラー関連のコンソールメッセージが表示される場合があります。
WARNING: /io-unit@f,e0200000/sbi@0,0/QLGC,isp@1,10000/sd@3,0 (sd33): Error for command 'read' Error Level: Retryable Requested Block 126, Error Block: 179 Sense Key: Media Error Vendor 'name': ASC = 0x11 (unrecovered read error), ASCQ = 0x0, FRU = 0x0 |
このメッセージから、ブロック 179 に欠陥があることがわかります。欠陥ブロックを再配置するには、format ユーティリティーの repair コマンドを使用します。または、repair オプションを有効にして analyze コマンドを実行します。
スーパーユーザーになるか、同等の役割を引き受けます。
欠陥セクターの存在するスライス内のファイルシステムをマウント解除します。
# umount /dev/dsk/device-name |
詳細は、mount(1M) のマニュアルページを参照してください。
format ユーティリティーを起動します。
# format |
調べるディスクを選択します。
Specify disk (enter its number):1 selecting c0t2d0: [disk formatted] Warning: Current Disk has mounted partitions. |
analyze メニューを選択します。
format> analyze |
analyze> プロンプトで setup と入力して、解析パラメータを設定します。
次のパラメータを使用してください。
analyze> setup Analyze entire disk [yes]? n Enter starting block number [0, 0/0/0]: 12330 Enter ending block number [2052287, 2035/13/71]: 12360 Loop continuously [no]? y Repair defective blocks [yes]? n Stop after first error [no]? n Use random bit patterns [no]? n Enter number of blocks per transfer [126, 0/1/54]: 1 Verify media after formatting [yes]? y Enable extended messages [no]? n Restore defect list [yes]? y Create defect label [yes]? y |
read コマンドを使って欠陥を検出します。
analyze> read Ready to analyze (won't harm SunOS). This takes a long time, but is interruptible with Control-C. Continue? y pass 0 2035/12/1825/7/24 pass 1 Block 12354 (18/4/18), Corrected media error (hard data ecc) 25/7/24 ^C Total of 1 defective blocks repaired. |
スーパーユーザーになるか、同等の役割を引き受けます。
format ユーティリティーを起動します。
# format |
欠陥セクターの存在するディスクを選択します。
Specify disk (enter its number): 1 selecting c0t3d0 [disk formatted] format> |
repair コマンドを選択します。
format> repair |
欠陥ブロック番号を入力します。
Enter absolute block number of defect: 12354 Ready to repair defect, continue? y Repairing block 12354 (18/4/18)...ok. format> |
欠陥セクターの特定に使う形式がわからない場合は、「表面解析を使用して欠陥セクターを調べる方法」を参照してください。