[SunHELP] help /var file system

Sree sreep at qnetstaff.com
Sat Mar 23 02:32:47 CST 2002


all log files
cd  /var/adm/messages.0,1,2,3
if you have setup accounting then
chek  /var/audit/
the log file over here must be growing check them
check /var/lp/logs
check the /var/tmp
check /cron/logs
#find / -mount -mtime -(number of days) -size(no.of sizes) -ls(lists the
file)

Note
Check your env and ammend this code if your are using oracle as your
database. ( Before Executing this code kindly chek with your dba's)
bdump, dump, and audit directories, and removes all files that are more than
two weeks old.

#!/bin/ksh
for ORACLE_SID in `cat /etc/oratab|egrep ':N|:Y'|grep -v \*|cut    -f1-d':'`
do
ORACLE_HOME=`cat /etc/oratab|grep ^$ORACLE_SID:|cut -d":" -f2`
DBA=`echo $ORACLE_HOME | sed -e 's:/product/.*::g'`/admin     *
find $DBA/$ORACLE_SID/bdump -name \*.trc -mtime +14 -exec rm {} \;
$DBA/$ORACLE_SID/udump -name \*.trc -mtime +14 -exec rm {} \;
find $ORACLE_HOME/rdbms/audit -name \*.aud -mtime +14 -exec rm {} \;
done

----- Original Message -----
From: "gsd" <gaurang123 at yahoo.com>
To: <sunhelp at sunhelp.org>
Sent: Saturday, March 23, 2002 10:37 AM
Subject: [SunHELP] help /var file system


> Dear All,
> I can see that my /var file system is increasing gradually and now it is
> around 88 to 90%.So which files I can remove or 'touch' safely without any
> harm.
> Thanks in advance...
>
> -Gaurang
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list