1834813 Members
2698 Online
110070 Solutions
New Discussion

Re: /var

 
SOLVED
Go to solution
John Curtis
Occasional Advisor

/var

I can't easly extend this directory given the current circumstances, HFS and a production server. What files under /var might I be able to remove to free up some space?
6 REPLIES 6
Eileen Millen
Trusted Contributor

Re: /var

You can look in /var/tmp for any large temporary files.
Kofi ARTHIABAH
Honored Contributor

Re: /var

John:

You could always create a new filesystem and mount it under /var somewhere - I would suggest going with /var/adm/sw. ie. create a filesystem say /tempfs ; mount it and copy all the contents of /var/adm/sw to /tempfs ; umount /tempfs ; remove all files in /var/adm/sw ; mount the new filesystem under /var/adm/sw (remember to make the changes in your /etc/fstab)

the files that are expendible are in /var/tmp

you may also want to use

cd /var
du -a | sort +n

or

find /var -size +1000000c -print
to see a listing of really large files.

Good luck
nothing wrong with me that a few lines of code cannot fix!
Rita C Workman
Honored Contributor
Solution

Re: /var

Check under /var/adm/crash for any core files that you can remove.
Check under /var/tmp for any temp files you can get rid of...things like exclude.temp and include.temp are leftovers from your make_recovery...ok to remove.
Check for any log files under /var (omniback puts alot of stuff here)....reduce the size of these.
tail -100 logfile.log > tmp.log then move tmp.log back to logfile.log

Another thing you might want to check on doing (if you haven't in awhile) is cleanup....it will clean up old patches from system. I think it's cleanup -i (but double check man cleanup to be sure...)

Hope this helps ya,
/rcw
Madhu Sudhan_1
Respected Contributor

Re: /var

Try using cleanup command. You can preview what it is going to cleanup using clenaup -p and use "cleanup -n" to request confirmation of the cleanup.

...Madhu
Think Positive
Donald Kok
Respected Contributor

Re: /var

First: If you are sure you will your patches are ok, you can remove your backupfiles:

swmodify -y PH[CKNS][SOEL]_*.* PH[CKNS][SOEL]_*
cd /var/adm/sw/patch
rm -r *

Second: with freedisk you can remove unused software.

Third: with du -ks * |sort -nr in a dir, you can see which dir consumes most space.

Good luck
My systems are 100% Murphy Compliant. Guaranteed!!!
Donald Kok
Respected Contributor

Re: /var

sorry.
the swmodify -y ... should be swmodify -u ...


My systems are 100% Murphy Compliant. Guaranteed!!!