[OpenIndiana-discuss] auto-scrub and its result
Edward Ned Harvey (openindiana)
openindiana at nedharvey.com
Mon Dec 31 12:32:55 UTC 2012
> From: Richard L. Hamilton [mailto:rlhamil at smart.net]
>
> I seem to recall that only one scrub could be running at a time, even against
> different zpools. So the cron that does them all might never actually do more
> than the first.
Your system should not be scrubbing most of the time. If you are running the cron "scrub now" script more frequently than the scrub can finish, you need to reduce the frequency of your scrub script.
If it takes a few hours for your scrub to complete, it would be reasonable for you to scrub once every 1-4 weeks.
> zpool scrub mpool;sleep 2;zpool scrub rpool
This is incorrect.
"zpool scrub" only sends a command to the OS, to begin background scrubbing. It does not wait for a scrub to finish before it returns, so the "sleep 2" in between is useless and misleading.
> (where mpool is the one based on a file, itself on zfs) and that crashed my
> system. Of course, said system is far back (snv_97), so maybe it's been fixed
> since then. And for additional weirdness, I think mpool was originally created
> with zfs on a Mac (the file having been shared via iSCSI). Yes, I do some
> weird things...but there was a reason at the time...
It should work, so if it didn't work back then using an old and hacked up version on an unsupported OS, I would suspect something related to your setup back then.
More information about the OpenIndiana-discuss
mailing list