> Is the weekly bos restart (at 4 am on sunday), which "reduces the 
> potential for the core leaks that can develop as any process runs for an 
> extended time", really necessary? Anybody have any experience with 
> eliminating it? Maybe AFS 3.4 fixes the core leaks?

We have not observed any core leaks in the AFS 3.3a servers.

We have set the weekly restart to never.  To keep the growth of the
log files under control, we rotate them on a weekly basis.  We installed
the following shell script in /usr/afs/etc (on the system control machine).
The various server processes reopen the log file periodically (creating
the new logs).  This script is invoked as a bos cron job:

Instance rotate-log, (type is cron) currently running normally.
    Auxiliary status is: run next at Sun Jul  2 04:00:00 1995.
    Process last started at Sun Jun 25 04:00:01 1995 (1 proc starts)
    Last exit at Sun Jun 25 04:00:04 1995
    Command 1 is '/usr/afs/etc/rotate-log'
    Command 2 is 'sun 4:00'

============== rotate-log ===========
#!/bin/ksh
# Rotate any AFS log file (except SalvageLog) that is bigger than 1K.
cd /usr/afs/logs
for file in *Log; do
    if [[ $file != "SalvageLog" ]]; then
        if [[ $(wc -c <$file) -gt 1024 ]]; then
            mv -f $file $file.old
        fi
    fi
done
exit 0
============== end of rotate-log ===========

...Tim

          Tim Theisen           Associate Researcher
Internet: [EMAIL PROTECTED]       Department of Computer Sciences
    UUCP: uwvax!tim             University of Wisconsin-Madison
   Phone: (608)262-0438         1210 West Dayton Street
     FAX: (608)262-9777         Madison, WI   53706-1685

Reply via email to