System Administration

FileSystem /var It is 97% used

 
SOLVED
Go to solution
Russell Cannon
New Member

Re: FileSystem /var It is 97% used

How about checking /var/.audit (slash var DOT audit). This can grow very large when auditing is enabled.

Russ
Eli Daniel
Super Advisor

Re: FileSystem /var It is 97% used

this which I can delete files without problems?

SAPL907:/tmp> cat var_files | sort +4 -5nr | head -n 30
-rw-r--r-- 1 root other 205516800 May 16 2007 ./adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre_ia.tar
-rw-r--r-- 1 root sys 205516800 Jan 30 2010 ./adm/sw/save_custom/PHCO_39498/jre_old.tar
-rw-r--r-- 1 root sys 204912640 Apr 26 2008 ./adm/sw/save_custom/PHCO_36028/jre_old.tar
-rwx------ 1 root root 167665810 Jul 29 18:27 ./opt/hpsmc/avc/VM00726000-1-1/log/monitorsvcd.bak
-rw-r--r-- 1 root other 152025600 Aug 16 2004 ./adm/sw/save/PHCO_33081/VEA-FILESET/opt/VRTSob/jre_ia.tar
-rw-r--r-- 1 root other 122828800 May 16 2007 ./adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre.tar
-rw-r--r-- 1 root other 106736128 Aug 16 2004 ./adm/sw/save/PHCO_33081/VEA-FILESET/opt/VRTSob/jre.tar
-rwx------ 1 root root 88381354 Aug 3 09:43 ./opt/hpsmc/avc/VM00726000-1-1/log/monitorsvcd.log
-r--r--r-- 1 bin bin 54990224 Mar 26 2004 ./adm/sw/save/PHSS_35055/LANG-64ALIB/usr/lib/hpux64/librwtool_v2.a
-r--r--r-- 1 bin bin 43529790 Mar 26 2004 ./adm/sw/save/PHSS_35055/LANG-MIN/usr/lib/hpux32/librwtool_v2.a
-rw-r--r-- 1 root root 28023504 Aug 3 09:40 ./opt/perf/datafiles/logglob
-rw-r--r-- 1 root root 24737670 Aug 3 09:43 ./opt/perf/datafiles/logproc
-rw-r--r-- 1 root sys 23902988 Jul 17 18:21 ./adm/SGsnmpsuba.log
-r--r--r-- 1 bin bin 22364160 Jun 13 2008 ./opt/wbem/repository.tar
-r--r--r-- 1 bin bin 20476142 Mar 26 2004 ./adm/sw/save/PHSS_35055/LANG-64ALIB/usr/lib/hpux64/libstd_v2.a
-r-xr-xr-x 1 root bin 18602543 May 3 2005 ./opt/mx/opensource/hibernate-2.1.7c.zip
-rw-r--r-- 1 root root 18450456 Aug 3 09:40 ./opt/perf/datafiles/logappl
-rw-r--r-- 1 root root 18311884 Aug 3 09:40 ./opt/perf/datafiles/logdev
-r-xr-xr-x 1 root bin 17973553 Aug 1 2005 ./opt/mx/opensource/jboss-3.2.7-src.zip
-r--r--r-- 1 bin bin 17219438 Mar 26 2004 ./adm/sw/save/PHSS_35055/LANG-MIN/usr/lib/hpux32/libstd_v2.a
-rw------- 1 hpsmdb users 16777216 Jul 17 18:22 ./opt/hpsmdb/pgsql/pg_xlog/0000000000000000
-rw------- 1 sfmdb users 16777216 Aug 2 18:22 ./opt/sfmdb/pgsql/pg_xlog/0000000000000027
-rw------- 1 sfmdb users 16777216 Aug 3 01:09 ./opt/sfmdb/pgsql/pg_xlog/0000000000000025
-rw------- 1 sfmdb users 16777216 Jul 20 01:05 ./opt/sfmdb/pgsql/pg_xlog/0000000000000026
-r-xr-xr-x 1 root bin 15176926 Jun 27 2006 ./opt/mx/opensource/samba-3.0.10.tar.gz
-r-xr-xr-x 1 bin bin 15095352 Dec 7 2007 ./adm/sw/save/PHSS_39093/C-KRN/usr/ccs/bin/ld
-r-xr-xr-x 1 bin bin 14101440 Jan 6 2009 ./adm/sw/save/PHSS_39821/C-KRN/usr/ccs/bin/ld
-r-xr-xr-x 1 bin bin 13695216 Feb 14 2007 ./adm/sw/save/PHSS_38258/DCE-IA64-SHLIB/usr/lib/hpux64/libdcekt.so.1
-r-xr-xr-x 1 bin bin 13695216 Nov 24 2006 ./adm/sw/save/PHSS_36005/DCE-IA64-SHLIB/usr/lib/hpux64/libdcekt.so.1
-r-xr-xr-x 1 bin bin 13519840 Feb 14 2007 ./adm/sw/save/PHSS_38258/DCE-IA64-SHLIB/usr/lib/hpux32/libdcekt.so.1
Dennis Handly
Acclaimed Contributor

Re: FileSystem /var It is 97% used

>which I can delete files without problems?

Have you run cleanup(1m) yet? Most of these are patch save areas.

You might be able to remove all but the latest of:
/var/opt/hpsmdb/pgsql/pg_xlog/*
Eli Daniel
Super Advisor

Re: FileSystem /var It is 97% used

what is the best option?
1 - run cleanup-c 1
2 - delete these files
James R. Ferguson
Acclaimed Contributor

Re: FileSystem /var It is 97% used

Hi (again):

> what is the best option?
1 - run cleanup-c 1
2 - delete these files

Why don't you run 'cleanup' as I have suggested and *see* how much space is returned!

As for "delete these files", I presume you mean '/var/opt/hpsmdb/pgsql/pg_xlog/*' as Dennis mentioned.

Do what you like or do both! You have a very nearly full filesystem that isn't going to improve unless you *do something*.

...JRF...
Eli Daniel
Super Advisor

Re: FileSystem /var It is 97% used

Thanks