Restricting Periodic Scripts

2013-02-06 Thread Tim Gustafson
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?

--

Tim Gustafson
t...@ucsc.edu
831-459-5354
Baskin Engineering, Room 313A
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting Periodic Scripts

2013-02-06 Thread Polytropon
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, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting Periodic Scripts

2013-02-06 Thread Greg Larkin
-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-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Restricting Periodic Scripts

2013-02-06 Thread Tim Gustafson
 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?

Thanks to everyone who replied.

I got some helpful suggestions from a few people, which all amounted
to either disable the jobs or create your own custom version of
those jobs.  So for now, I'm just disabling them.

I appreciate all the help.  Thanks!

-- 

Tim Gustafson
t...@ucsc.edu
831-459-5354
Baskin Engineering, Room 313A
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org