hajichan.net technical version
トップページ >> サーバ管理(Solaris) >> 破損ブロック調査

サーバ管理

破損ブロック調査

ディスクが故障した際に、formatコマンドのanalyzeサブコマンドでディスクの表面解析をして詳細調査する事が出来ます。しかし、直接運用機で実行するのは止めましょう。

format→analyzeの実行

# format
  Searching for disks...done


  AVAILABLE DISK SELECTIONS:
       0. c0t0d0 
          /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@0,0
       1. c1t1d0 
          /sbus@1f,0/QLGC,isp@0,10000/sd@1,0
  Specify disk (enter its number): 1   // 調査対象ディスク指定
  selecting c1t1d0
  [disk formatted]


  FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        quit
  format> analyze   // 欠陥ブロック解析コマンド


  ANALYZE MENU:   // analyzeのサブコマンド
        read     - read only test   (doesn't harm SunOS)
        refresh  - read then write  (doesn't harm data)
        test     - pattern testing  (doesn't harm data)
        write    - write then read      (corrupts data)
        compare  - write, read, compare (corrupts data)
        purge    - write, read, write   (corrupts data)
        verify   - write entire disk, then verify (corrupts data)
        print    - display data buffer
        setup    - set analysis parameters
        config   - show analysis parameters
        quit
  analyze> read   // readを指定
  Ready to analyze (won't harm SunOS). This takes a long time,
  but is interruptable with CTRL-C. Continue? yes   // かなり時間が掛かる
  analyze> quit   // 調査が終了したらquitで抜ける

欠陥ブロックが無い場合の出力。

pass 0
   5265/19/84

        pass 1
   5265/19/84

  Total of 0 defective blocks repaired. 

欠陥ブロックが有る場合の出力例。

pass 0

  // ブロック17370084が不良だが、修復された(Recovered)の意
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Recovered
   Requested Block: 0      Error Block: 17370084
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Soft Error   // ソフト的なエラー
   ASC: 0x18 (recovered data with error correction), ASCQ: 0x1, FRU: 0xea
  Recoverable error during read: block 17370084 (0x1090be4) (5169/13/60)
  ASC: 0x18   ASCQ: 0x1

  // ブロック17370087が不良だが、修復された(Recovered)の意
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Recovered
   Requested Block: 0      Error Block: 17370087
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Soft Error   // ソフト的なエラー
   ASC: 0x18 (recovered data with error correction), ASCQ: 0x1, FRU: 0xea
  Recoverable error during read: block 17370087 (0x1090be7) (5169/13/63)
  ASC: 0x18   ASCQ: 0x1

  // ブロック17370088が不良だが、修復された(Recovered)の意
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Recovered
   Requested Block: 0      Error Block: 17370088
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Soft Error   // ソフト的なエラー
   ASC: 0x18 (recovered data with error correction), ASCQ: 0x1, FRU: 0xea
  Recoverable error during read: block 17370088 (0x1090be8) (5169/13/64)
  ASC: 0x18   ASCQ: 0x1

  // ブロック17370089が不良だが、修復された(Recovered)の意
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Recovered
   Requested Block: 0      Error Block: 17370089
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Soft Error   // ソフト的なエラー
   ASC: 0x18 (recovered data with error correction), ASCQ: 0x1, FRU: 0xea
  Recoverable error during read: block 17370089 (0x1090be9) (5169/13/65)
  ASC: 0x18   ASCQ: 0x1

  // ブロック17370094が不良。修復コマンド打つ必要有り(Retryable)の意?
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Retryable
   Requested Block: 0      Error Block: 17370094
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Media Error   // ハード的なエラー
   ASC: 0x11 (unrecovered read error), ASCQ: 0x0, FRU: 0xea
  Medium error during read: block 17370094 (0x1090bee) (5169/13/70)
  ASC: 0x11   ASCQ: 0x0
  Repairing hard error on 17370094 (5169/13/70)...ok.

  // ブロック17370095が不良。修復コマンド打つ必要有り(Retryable)の意?
  WARNING: /sbus@1f,0/QLGC,isp@0,10000/sd@1,0 (sd16):
   Error for Command: read(10)     Error Level: Retryable
   Requested Block: 0      Error Block: 17370095
   Vendor: SEAGATE                 Serial Number: LAA73023
   Sense Key: Media Error   // ハード的なエラー
   ASC: 0x16 (data sync mark error), ASCQ: 0x0, FRU: 0xd2
  Medium error during read: block 17370095 (0x1090bef) (5169/13/71)
  ASC: 0x16   ASCQ: 0x0
  Repairing hard error on 17370095 (5169/13/71)...ok.

   5265/19/84

        pass 1
   5265/19/84   215/4/84

  // 2つの欠陥ブロックが修復されたと分かる?
  Total of 2 defective blocks repaired.
ページのトップへ戻る