Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Oct 2011 12:22:49 +0200
From:      Stefan Esser <se@freebsd.org>
To:        mm@FreeBSD.org
Cc:        freebsd-fs@FreeBSD.org, sm@kill-9.net
Subject:   [RESENT with patch] Re: bin/121366: [zfs] [patch] Automatic disk scrubbing from periodic(8)
Message-ID:  <4E9418F9.9030304@freebsd.org>
In-Reply-To: <201110110726.p9B7QhEC072913@freefall.freebsd.org>
References:  <201110110726.p9B7QhEC072913@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------020706090101080007040807
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

On 11.10.2011 09:26, mm@FreeBSD.org wrote:
> Synopsis: [zfs] [patch] Automatic disk scrubbing from periodic(8)
> 
> State-Changed-From-To: open->closed
> State-Changed-By: mm
> State-Changed-When: Tue Oct 11 07:26:43 UTC 2011
> State-Changed-Why: 
> Implemented in r209195 by netchild@ (/etc/periodic/daily/800.scrub-zfs)
> 
> http://www.freebsd.org/cgi/query-pr.cgi?pr=121366

There is no mention of

daily_scrub_zfs_enable
daily_scrub_zfs_pools
daily_scrub_zfs_default_threshold
daily_scrub_zfs_${poolname}_threshold

in /etc/defaults/periodic.conf, which we use to define configuration
options for all periodic scripts.

The attached patch adds the missing entries. I'm not sure about the
commented out line for "daily_scrub_zfs_${poolname}_threshold", but
there is precedent (in the "amd" section) and I think many users will
grep for scrub_zfs in that file instead of looking into the man-page for
periodic.conf.

If the defaults in the patch are considered OK (they just state the
defaults set in the script), I'd like to commit them to head and MFC
within a week.

Regards, STefan

(Please include my address in replies, since I'm not in freebsd-fs@).

PS: The following unrelated variables have no defaults defined:

    daily_backup_distfile_enable
    daily_backup_pkgdb_dbdir
    daily_distfile_enable

    I have not yet looked up their defaults, but I think they should
    also be defined in defaults/periodic.conf ...

--------------020706090101080007040807
Content-Type: text/plain;
 name="periodic.conf.zfs-scrub.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="periodic.conf.zfs-scrub.diff"

--- /usr/src/etc/defaults/periodic.conf~	2011-03-26 19:33:15.000000000 +0100
--- /usr/src/etc/defaults/periodic.conf	2011-10-11 11:34:09.245775412 +0200
@@ -205,6 +205,12 @@
 # 800.loginfail
 daily_status_security_loginfail_enable="YES"
 
+# 800.scrub-zfs
+daily_scrub_zfs_enable="NO"
+daily_scrub_zfs_pools=""			# empty string selects all pools
+daily_scrub_zfs_default_threshold="30"		# days between scrubs
+#daily_scrub_zfs_${poolname}_threshold="30"	# pool specific threshold
+
 # 900.tcpwrap
 daily_status_security_tcpwrap_enable="YES"
 

--------------020706090101080007040807--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E9418F9.9030304>