[OpenIndiana-discuss] auto-scrub and its result
Edward Ned Harvey (openindiana)
openindiana at nedharvey.com
Sat Dec 29 13:42:06 UTC 2012
> From: Bob Friesenhahn [mailto:bfriesen at simple.dallas.tx.us]
>
> 20 3 * * 1 /usr/sbin/zpool scrub rpool
I'm not 100% sure if this will work directly inside a cron job; you might have to stick it inside of a bash shell script, and then have cron call the shell script. (This is what I do).
for pool in `/usr/sbin/zpool list -H -o name` ; do /usr/sbin/zpool scrub $pool ; done
More information about the OpenIndiana-discuss
mailing list