+++ This bug was initially created as a clone of Bug #1359588 +++ Description of problem: Currently scrub-frequency value for scrubber is {hourly|daily|weekly|biweekly}. So scrubber need to wait for that frequency value before starting scrubbing. This patch implements on demand scrubbing. If user set scrub value ondemand then scrubber do not need to wait for scrubbing frequency, Scrubber will start crawling of filesystem immediately. Command for on-demand scrubbing will be. #gluster volume bitrot <VOLNAME> scrub ondemand
REVIEW: http://review.gluster.org/15111 (feature/bitrot: Ondemand scrub option for bitrot) posted (#3) for review on master by Kotresh HR (khiremat)
REVIEW: http://review.gluster.org/15111 (feature/bitrot: Ondemand scrub option for bitrot) posted (#4) for review on master by Kotresh HR (khiremat)
REVIEW: http://review.gluster.org/15111 (feature/bitrot: Ondemand scrub option for bitrot) posted (#5) for review on master by Kotresh HR (khiremat)
COMMIT: http://review.gluster.org/15111 committed in master by Vijay Bellur (vbellur) ------ commit 0b3e4130b576c11156d6327e4cc3c9310a74c143 Author: Kotresh HR <khiremat> Date: Fri Aug 5 09:03:22 2016 +0530 feature/bitrot: Ondemand scrub option for bitrot The bitrot scrubber takes 'hourly/daily/biweekly/monthly' as the values for 'scrub-frequency'. There is no way to schedule the scrubbing when the admin wants it. Ondemand scrubbing brings in the new option 'ondemand' with which the admin can start scrubbing ondemand. It starts the scrubbing immediately. Ondemand scrubbing is successful only if the scrubber is in 'Active (Idle)' (waiting for it's next frequency cycle to start scrubbing). It is not entertained when the scrubber is in 'Paused' or already running. Here is the command line syntax. gluster volume bitrot <vol name> scrub ondemand Change-Id: I84c28904367eed827a7dae8d6a535c14b28e9f4d BUG: 1366195 Signed-off-by: Kotresh HR <khiremat> Reviewed-on: http://review.gluster.org/15111 Smoke: Gluster Build System <jenkins.org> NetBSD-regression: NetBSD Build System <jenkins.org> CentOS-regression: Gluster Build System <jenkins.org> Reviewed-by: Venky Shankar <vshankar>