2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

エラーを自動訂正するZFSのプール構成

Last updated at Posted at 2016-12-17

#エラーを自動訂正するZFSのプール構成
##ZFSプールでエラーが発生
###dailyのレポート
ある日のdailyのメールから (Subject: HOGEHOGE daily security run output から抜粋)

HOGEHOGE kernel log messages:
+(da2:umass-sim2:2:0:0): READ(10). CDB: 28 00 40 55 6d f5 00 00 52 00 
+(da2:umass-sim2:2:0:0): CAM status: SCSI Status Error
+(da2:umass-sim2:2:0:0): SCSI status: Check Condition
+(da2:umass-sim2:2:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
+(da2:umass-sim2:2:0:0): Error 5, Unretryable error
+(da2:umass-sim2:2:0:0): READ(10). CDB: 28 00 40 55 98 4d 00 00 80 00 
+(da2:umass-sim2:2:0:0): CAM status: SCSI Status Error
+(da2:umass-sim2:2:0:0): SCSI status: Check Condition
+(da2:umass-sim2:2:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
+(da2:umass-sim2:2:0:0): Error 5, Unretryable error
+(da2:umass-sim2:2:0:0): READ(10). CDB: 28 00 40 55 9e 06 00 00 80 00 
+(da2:umass-sim2:2:0:0): CAM status: SCSI Status Error
+(da2:umass-sim2:2:0:0): SCSI status: Check Condition
+(da2:umass-sim2:2:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
+(da2:umass-sim2:2:0:0): Error 5, Unretryable error
+(da2:umass-sim2:2:0:0): READ(10). CDB: 28 00 40 55 a4 45 00 00 80 00 
+(da2:umass-sim2:2:0:0): CAM status: SCSI Status Error
+(da2:umass-sim2:2:0:0): SCSI status: Check Condition
+(da2:umass-sim2:2:0:0): SCSI sense: MEDIUM ERROR asc:11,0 (Unrecovered read error)
+(da2:umass-sim2:2:0:0): Error 5, Unretryable error

この次のメールでは(Subject: HOGEHOGE daily run output から抜粋)

Checking status of zfs pools:
NAME    SIZE  ALLOC   FREE  EXPANDSZ   FRAG    CAP  DEDUP  HEALTH  ALTROOT
zroot   115G  28.5G  86.5G         -    30%    24%  1.00x  ONLINE  -
zurd0  2.03T  1.22T   830G         -    27%    60%  1.00x  ONLINE  -

  pool: zurd0
 state: ONLINE
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: http://illumos.org/msg/ZFS-8000-9P
  scan: resilvered 49.2M in 0h9m with 0 errors on Wed Dec 14 06:15:06 2016
config:

	NAME              STATE     READ WRITE CKSUM
	zurd0             ONLINE       0     0     0
	  raidz1-0        ONLINE       0     0     0
	    gpt/usbdisk0  ONLINE       0     0     0
	    gpt/usbdisk1  ONLINE       0   246     0
	    gpt/usbdisk2  ONLINE       0     0     0

最初のメールはディスクデバイスにエラーが発生したレポートであり、2つ目のメールではzpool statusの結果が表示されている。

scan: resilvered 49.2M in 0h9m with 0 errors on Wed Dec 14 06:15:06 2016

この行からわかるように、エラーが発生したけど、ZFSの修復機能によって自動的に修復されたことを示している。

(続く)

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?