Hi all, A quick question regarding zfs scrubbing. According to the best practices, we should check the integrity of our datas regularly with the zfs scrub command.
Sometimes you just don't really know when it is the best time to do such things. Say that during the day your server must be fully available (I mean no background task that generate additionnal I/Os) and during the night there are recollections tasks that must be run and you want it to be backuped as fast as possible. When you start a scrub, does it scrub a whole pool from zero or does it start from last checked blocks ? What I would like to know is what happen if I start a scrub, stop it, then start it a few minutes later. Will I be able to scrub a whole pool by launching several relatively small scrubs sessions or should I run it only one time a week and waiting for it to finish. I was contemplating the idea of doing a script, which checks for the i/o load of the machine using dtrace and start or stop automatically the scrubbing process according to rules (like minimum and maximum of applications generated I/O's). Regards -- Thomas Leveille
