cancel
Showing results for 
Search instead for 
Did you mean: 

/var is Full 98% used

Eli Daniel
Super Advisor

/var is Full 98% used

Hi,
i have the problem, the FileSystem /var 98% used

these files are large size

/var/adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre_ia.tar
/var/adm/sw/save_custom/PHCO_39498/jre_old.tar
/var//adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre.tar

I can delet files?
14 REPLIES
Dennis Handly
Acclaimed Contributor

Re: /var is Full 98% used

If you delete these, you won't be able to rollback PHCO_39498. If you are happy with it or it has already been superseded, you can commit the patch or use "cleanup -c 1".
Eli Daniel
Super Advisor

Re: /var is Full 98% used

run the command cleanup -c 1 but not release space
Dennis Handly
Acclaimed Contributor

Re: /var is Full 98% used

>but not release space

Those particular files? Or just not as much as you wanted?
Has PHCO_39498 been superseded on your system? If not, "-c 1" won't remove them.
Eli Daniel
Super Advisor

Re: /var is Full 98% used

the filesystem has 100 MB free.
need free space

Anex the files in the FS /var

-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 other 122828800 May 16 2007 ./adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre.tar
-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 28721780 Oct 12 09:15 ./opt/perf/datafiles/logglob
-rw-r--r-- 1 root root 27931368 Oct 12 09:16 ./opt/perf/datafiles/logproc
-rwx------ 1 root root 26476867 Oct 12 09:16 ./opt/hpsmc/avc/VM00726000-1-1/log/monitorsvcd.log
-r--r--r-- 1 bin bin 22364160 Jun 13 2008 ./opt/wbem/repository.tar
-rw-r--r-- 1 root root 21648743 Oct 12 09:15 ./adm/cron/log
-rw-r--r-- 1 root root 20734388 Oct 12 09:15 ./opt/perf/datafiles/logdev
-r--r--r-- 1 bin bin 20476142 Mar 26 2004 ./adm/sw/save/PHSS_35055/LANG-64ALIB/usr/lib/hpux64/libstd_v2.a
-rw-r--r-- 1 root root 19022016 Oct 12 09:15 ./opt/perf/datafiles/logappl
-r-xr-xr-x 1 root bin 18602543 May 3 2005 ./opt/mx/opensource/hibernate-2.1.7c.zip
-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 sfmdb users 16777216 Oct 12 01:05 ./opt/sfmdb/pgsql/pg_xlog/0000000000000029
-rw------- 1 sfmdb users 16777216 Oct 12 01:06 ./opt/sfmdb/pgsql/pg_xlog/000000000000002A
-rw------- 1 sfmdb users 16777216 Sep 28 01:05 ./opt/sfmdb/pgsql/pg_xlog/000000000000002B
-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 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 13519840 Feb 14 2007 ./adm/sw/save/PHSS_38258/DCE-IA64-SHLIB/usr/lib/hpux32/libdcekt.so.1
-r--r--r-- 1 bin bin 13051098 Sep 3 2003 ./adm/sw/save/PHSS_34397/LIBF90-IA64/usr/lib/hpux64/libF90_parallel.a
-rw-r--r-- 1 root sys 12766284 Jul 20 2007 ./opt/ignite/recovery/2007-07-20,16:24/flist
-r--r--r-- 1 bin bin 12005614 Sep 3 2003 ./adm/sw/save/PHSS_34397/LIBF90-IA32/usr/lib/hpux32/libF90_parallel.a
-r--r--r-- 1 bin bin 11754302 Sep 3 2003 ./adm/sw/save/PHSS_34397/LIBF90-IA64/usr/lib/hpux64/libF90.a
-r-xr-xr-x 1 bin bin 11655440 Sep 24 2008 ./adm/sw/save/PHCO_39779/VXVM-RUN/etc/vx/static.d/build/vold.o
-r-xr-xr-x 1 bin bin 11374676 Sep 3 2003 ./adm/sw/save/PHSS_30601/KWDB-RUN/usr/contrib/kwdb/lib/kwdb32.sl
-r-xr-xr-x 1 root bin 11304329 Oct 19 2006 ./opt/mx/opensource/wiseman-101706.zip
Eli Daniel
Super Advisor

Re: /var is Full 98% used

I can back up these files on another filesystem?

/var/adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre_ia.tar
/var/adm/sw/save_custom/PHCO_39498/jre_old.tar
/var//adm/sw/save/PHCO_39498/VEA-FILESET/opt/VRTSob/jre.tar

not affect the system?
Patrick Wallek
Honored Contributor

Re: /var is Full 98% used

What messages did you get when you ran it? Did it tell you that it would clean up space.
Eli Daniel
Super Advisor

Re: /var is Full 98% used

Hi Patrick

SAPL907:/var> cleanup -c 1
### Cleanup program started at 10/12/10 09:59:15
Commit patches superseded at least 1 time(s) on 'SAPL907'.
Obtaining superseded patch information...done.
No non-committed patches superseded at least 1 time(s) are present.
All information has been logged to /var/adm/cleanup.log.
### Cleanup program completed at 10/12/10 09:59:15

SAPL907:/var>
Eli Daniel
Super Advisor

Re: /var is Full 98% used

thanks, I'll move these files to another filesystem
Bill Hassell
Honored Contributor

Re: /var is Full 98% used

Remember that when you remove files in /var/adm/sw, you can corrupt the installed patch database and at that point, swinstall stops working...no patches, no applications, no drivers, nothing.

Before you start moving files (and possibly losing a few), analyze /var. You may find that you have a lot of space occupied by files that can be removed without affecting your system.

Run this command:

du -kx | sort -rn | head -20

You will see the occupied size of each directory, largest listed first. You may find that /var/adm or /var/spool or /var/adm/crash or /var/mail are huge and need maintenance. Large files are not always the right things to find -- locate big directories first, then sort the directory with:

lls /var/adm | sort -rnk5 | head -20

Here are some hints:

/var/adm = logfiles (not trimmed automatically)
/var/adm/crash = old crash dumps
/var/adm/syslog = system logs
/var/spool/lp/request = printer jobs
/var/spool/mail = email messages
/var/opt/perf = performance logs
/var/stm/logs = hardware diagnostic logs

All possibilities for a lot of temporary files or files that are massively large.


Bill Hassell, sysadmin
Fraga
Advisor

Re: /var is Full 98% used

-bdf /var
-find /var -type f -size +1000000c -exec ll {} \; | sort -n -k 5
(list the files in order of size)
-du -kx | sort -rn | head -20
(look the size)

If a file is being written and you remove it from your space is not released (or a big file), is that you did not? indicated clear the file before removing it. If this is what happened will require a reboot.
btw, there must be more than just patch these files taking up space ...
ani007
Super Advisor

Re: /var is Full 98% used

Hi,
If you are not sure which files u will del. then simple extend 200/300mb.(space should be there in the vg).
regards,
Ani
V. Nyga
Honored Contributor

Re: /var is Full 98% used

Hi,

if you want to be sure to move it back to the right place if you need it, you can make a tar file (in a filesystem with more space) with the absolute path. Then you can delete the files.
At the end you can gzip the tar-file.

Also as said check for more 'not really needed' files like mentioned above.

HTH
V.
*** Say 'Thanks' with Kudos ***
Eli Daniel
Super Advisor

Re: /var is Full 98% used

Thanks for information