Discussion:
[EON] Scrubbing frequency?
Ronald Verlaan
2011-06-02 11:13:50 UTC
Permalink
Hello all,

One thing is not clear to me with zfs: when to scrub?
Schould it be done frequently by adding it to the crontab, or is it only needed after some problem has occured?

How do you guys implement automatic scrubbing in eon?

Regards,

Ronald
--
This message posted from opensolaris.org
Andre Lue
2011-06-02 13:49:23 UTC
Permalink
The recommended guide is:
Run zpool scrub on a regular basis to identify data integrity problems. If you have consumer-quality drives, consider a weekly scrubbing schedule. If you have datacenter-quality drives, consider a monthly scrubbing schedule. You should also run a scrub prior to replacing devices or temporarily reducing a pool's redundancy to ensure that all devices are currently operational.

to start scrub
zpoool scrub poolname

to stop it
zpool scrub -s poolname

status of scrub
zpool status

ZFS only allows one at a time. If a scrub is already in progress, the "zpool scrub" command ter-minates it and starts a new scrub. If a resilver is in progress, ZFS does not allow a scrub to be started until the resilver completes

You can automate it via cron.
--
This message posted from opensolaris.org
Ronald Verlaan
2011-06-02 14:36:54 UTC
Permalink
Thanks a lot for explaining!

Ronald
--
This message posted from opensolaris.org
Loading...