From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 18:00:37 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1675BE02 for ; Wed, 6 Feb 2013 18:00:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id BB53BE3B for ; Wed, 6 Feb 2013 18:00:36 +0000 (UTC) Received: from r56.edvax.de (port-92-195-74-250.dynamic.qsc.de [92.195.74.250]) by mx01.qsc.de (Postfix) with ESMTP id 08E0B3CB73; Wed, 6 Feb 2013 19:00:34 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id r16I0b0I002658; Wed, 6 Feb 2013 19:00:37 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 6 Feb 2013 19:00:37 +0100 From: Polytropon To: Tim Gustafson Subject: Re: Restricting Periodic Scripts Message-Id: <20130206190037.b72b64f5.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 18:00:37 -0000 On Wed, 6 Feb 2013 09:26:17 -0800, Tim Gustafson wrote: > I have a FreeBSD ZFS file server with tens of millions of files stored on it. > > But, the daily periodic scripts like > /etc/periodic/security/110.neggrpperm and > /etc/periodic/weekly/310.locate take hours iterating through those > folders, and I just don't need them to be scanned. > > I see that I can edit /etc/locate.rc to fix the behavior for > /etc/periodic/weekly/310.locate but I don't see a way to exclude > folders from other scripts like /etc/periodic/security/110.neggrpperm > from scanning them. Is there any way to prune out folders that I > don't want scanned, or should I just disable those jobs? You can disable them per /etc/periodic.conf (see examples in /etc/defaults/periodic.conf). To keep the functionality, but restrict it to a smaller amount of files, you could use the system's scripts as templates, make your own "derivates" (wich inclusion or exclusion rules) and place them in /usr/local/etc/periodic for the system to call them (which it will if they are present). You can add your custom configuration flags to /etc/periodic.conf and have your scripts source that file (like the system's scripts do). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...