From owner-freebsd-questions@FreeBSD.ORG Wed Feb 6 18:00:42 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 80502E05 for ; Wed, 6 Feb 2013 18:00:42 +0000 (UTC) (envelope-from glarkin@FreeBSD.org) Received: from mail1.sourcehosting.net (mail1.sourcehosting.net [74.205.51.45]) by mx1.freebsd.org (Postfix) with ESMTP id 5CB00E3D for ; Wed, 6 Feb 2013 18:00:42 +0000 (UTC) Received: from 24-181-237-39.dhcp.oxfr.ma.charter.com ([24.181.237.39] helo=Gregory-Larkins-iMac.local) by mail1.sourcehosting.net with esmtp (Exim 4.73 (FreeBSD)) (envelope-from ) id 1U39IQ-000P8c-3I; Wed, 06 Feb 2013 13:00:36 -0500 Received: from Gregory-Larkins-iMac.local (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by Gregory-Larkins-iMac.local (Postfix) with ESMTPS id 91E1519D5B63; Wed, 6 Feb 2013 13:00:33 -0500 (EST) Message-ID: <51129A40.1050606@FreeBSD.org> Date: Wed, 06 Feb 2013 13:00:32 -0500 From: Greg Larkin Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tim Gustafson References: In-Reply-To: X-Enigmail-Version: 1.5 X-SA-Exim-Connect-IP: 24.181.237.39 X-SA-Exim-Mail-From: glarkin@FreeBSD.org X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail1.sourcehosting.net X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00, RCVD_IN_SORBS_DUL,RDNS_DYNAMIC,SARE_MILLIONSOF,TVD_RCVD_IP autolearn=no version=3.3.1 Subject: Re: Restricting Periodic Scripts Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SA-Exim-Version: 4.2 X-SA-Exim-Scanned: Yes (on mail1.sourcehosting.net) Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: glarkin@FreeBSD.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Feb 2013 18:00:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2/6/13 12:26 PM, 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? > Hi Tim, Have a look at this posting from 2012: http://forums.freebsd.org/archive/index.php/t-31846.html There is a patch for the script in there, but I didn't check to see if the author ever filed a PR. There's also a workaround that involves using the nosuid mount option, if that is acceptable in your environment. Regards, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/cpucycle/ - Follow you, follow me -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlESmkAACgkQ0sRouByUApB2kgCfalTZRa5GQlAZjcNXq5qxfA3e 2rwAoLCMoscJYLVuevYLjZGj9qYiIjZD =3yUC -----END PGP SIGNATURE-----