The View from the Moon

20080129 Tuesday January 29, 2008

The joy of 'zpool scrub'

Some days, when it's cold and you're not feeling very motivated (like me, today), it's nice to do a zpool scrub on the machines you manage, and then once it's done:

$ zpool status
  pool: aux
 state: ONLINE
 scrub: scrub completed with 0 errors on Tue Jan 29 15:52:38 2008
config:

        NAME          STATE     READ WRITE CKSUM
        aux           ONLINE       0     0     0
          mirror      ONLINE       0     0     0
            c1t0d0s7  ONLINE       0     0     0
            c1t1d0s7  ONLINE       0     0     0

errors: No known data errors
And then relax, knowing that your data is safe.
(2008-01-29 17:23:44.0) Permalink Comments [2]
Tags:
Trackback: http://blogs.sun.com/dp/entry/the_joy_of_zpool_scrub
 

Comments:

Only if you don't take any snapshots!

See bug 6343667.

Posted by Chris Gerhard on January 30, 2008 at 02:56 AM PST #

Why don't you make your scrub a weekly cron job?
http://www.solarisinternals.com/wiki/index.php/ZFS_Best_Practices_Guide
This way you would have time for a coffee on those dull days... ;-)

Posted by Antonello Cruz on February 05, 2008 at 10:50 AM PST #

Post a Comment:

Comments are closed for this entry.
Dan Price's Weblog
[about me]