07-03-2015 01:04 AM
I have an issue with the space on /var file system on our Solaris machine,the /var files system reached 100%.
not exactly sure which files to clean in order to free up some space.
I would really appreciate for your suggestions.
Am thinking to clean up some old file from locations in /var tmp, /var/log, /var/adm, /var/mail
But in /tmp I can see some of the files created with users id's and sassrv with .config extension(SAS-QandR-34618.config) other than .log extension files, am not sure it’s safe to clean those files.
And also some old files located in /log and /adm is it safe to clean those files.
What is the best approach to free some space from /var file system,do you suggest any other files to clean in /var.
Please help me its very very urgent
Thanks in advance
07-03-2015 04:15 AM
It may be that SAS is not the culprit
In /var, do
du -sk *|sort -nr|head
which will show you the top 10 directory trees (or files, if you have some big enough) in descending order of disk usage.
Use this method recursively to go searching for the big files, and then determine which process writes/reads them.
To check when a file has last been read, use ls -ul filename. This may help you in determining if a file can be safely deleted.
Since /var is used by applications for files that should persist, I'd suggest to make sure that a backup or archive is available.
What is the size of your /var, BTW?