0,15,30,45 * * * * zpool status -x|grep 'all pools are healthy' || zpool status -v | perl /root/mailsend.pl
しといたら、ガンガンメールがとどいて、 pool: pool1
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://www.sun.com/msg/ZFS-8000-9P
scrub: resilver completed after 5h46m with 0 errors on Wed Oct 13 15:19:49 2010
config:
NAME STATE READ WRITE CKSUM
pool1 ONLINE 0 0 0
mirror ONLINE 0 0 0
c7t1d0 ONLINE 0 0 0
c7t2d0 ONLINE 0 0 0 560G resilvered
mirror ONLINE 0 0 0
c7t3d0 ONLINE 1 0 0
c7t4d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c7t5d0 ONLINE 0 0 0
c7t6d0 ONLINE 0 0 0
とかいわれたので、無視して zpool clear pool1 した。 pool: pool1
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use 'zpool clear' to mark the device
repaired.
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
pool1 DEGRADED 0 0 0
mirror DEGRADED 0 0 0
c7t1d0 ONLINE 0 0 0
c7t2d0 FAULTED 3 15 0 too many errors
mirror ONLINE 0 0 0
c7t3d0 ONLINE 0 0 0
c7t4d0 ONLINE 0 0 0
mirror ONLINE 0 0 0
c7t5d0 ONLINE 0 0 0
c7t6d0 ONLINE 0 0 0
errors: No known data errors
とかいわれたzpool detach pool1 c7t2d0
zpool attach pool1 c7t1d0 c7t2d0
して完了