トップ «前の日記(2014-01-11(土)) 最新 次の日記(2014-01-19(日))» 編集

とた日記


2014-01-12(日) [長年日記]

_ HP ProLiant MicroServer + FreeBSD + ZFS 復旧

昨日,ZFS を構成している HDD のうちの1台が故障していることが判明したので,HDD を取り寄せて交換作業をしてみました. 事前に復旧手順をメモっていましたが,関連コマンドはすっかり忘れ去っていたので,それらしき情報を検索した後に実際の復旧作業を実施しました.(交換前の zpool status はし忘れた…)

# zpool status
  pool: storage
 state: DEGRADED
status: One or more devices could not be opened.  Sufficient replicas exist for
	the pool to continue functioning in a degraded state.
action: Attach the missing device and online it using 'zpool online'.
   see: http://illumos.org/msg/ZFS-8000-2Q
  scan: none requested
config:
 
	NAME                      STATE     READ WRITE CKSUM
	storage                   DEGRADED     0     0     0
	  mirror-0                ONLINE       0     0     0
	    ada0.nop              ONLINE       0     0     0
	    ada1.nop              ONLINE       0     0     0
	  mirror-1                DEGRADED     0     0     0
	    ada2.nop              ONLINE       0     0     0
	    16298518232402833789  UNAVAIL      0     0     0  was /dev/ada3.nop
 
errors: No known data errors
# zpool replace storage /dev/ada3.nop
# zpool status
  pool: storage
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
	continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Sun Jan 12 15:19:59 2014
        4.31G scanned out of 1.69T at 123M/s, 4h0m to go
        2.16G resilvered, 0.25% done
config:
 
	NAME                        STATE     READ WRITE CKSUM
	storage                     DEGRADED     0     0     0
	  mirror-0                  ONLINE       0     0     0
	    ada0.nop                ONLINE       0     0     0
	    ada1.nop                ONLINE       0     0     0
	  mirror-1                  DEGRADED     0     0     0
	    ada2.nop                ONLINE       0     0     0
	    replacing-1             UNAVAIL      0     0     0
	      16298518232402833789  UNAVAIL      0     0     0  was /dev/ada3.nop/old
	      ada3.nop              ONLINE       0     0 1.53K  (resilvering)
 
errors: No known data errors
# zpool status
  pool: storage
 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 867G in 2h23m with 0 errors on Sun Jan 12 17:43:57 2014
config:
 
	NAME          STATE     READ WRITE CKSUM
	storage       ONLINE       0     0     0
	  mirror-0    ONLINE       0     0     0
	    ada0.nop  ONLINE       0     0     0
	    ada1.nop  ONLINE       0     0     0
	  mirror-1    ONLINE       0     0     0
	    ada2.nop  ONLINE       0     0     0
	    ada3.nop  ONLINE       0     0 1.53K
 
errors: No known data errors
# zpool clear storage ada3.nop
# zpool status
  pool: storage
 state: ONLINE
  scan: resilvered 867G in 2h23m with 0 errors on Sun Jan 12 17:43:57 2014
config:
 
	NAME          STATE     READ WRITE CKSUM
	storage       ONLINE       0     0     0
	  mirror-0    ONLINE       0     0     0
	    ada0.nop  ONLINE       0     0     0
	    ada1.nop  ONLINE       0     0     0
	  mirror-1    ONLINE       0     0     0
	    ada2.nop  ONLINE       0     0     0
	    ada3.nop  ONLINE       0     0     0
 
errors: No known data errors

直った!!

参考サイト

_ あの4億円脱税主婦が教える FX勝利の真髄(池辺 雪子)

これはクソ.どうでもいいけど,ボリンジャーバンドを「ボリン」と略す人を初めて見た.

あの4億円脱税主婦が教える FX勝利の真髄
池辺 雪子
扶桑社
¥ 1,680