LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Solaris 9 /var directory is at 100% (http://www.linuxquestions.org/questions/solaris-opensolaris-20/solaris-9-var-directory-is-at-100-a-441877/)

rust8y 05-05-2006 10:10 AM

Solaris 9 /var directory is at 100%
 
I'm running Solaris 9.

Doing a df -h shows the /var directory is at 100%

Can I delete the messages.3 file?
Would deleting this file do any harm?
What other files can I delete to free up disk space on /var?

Blinker_Fluid 05-05-2006 11:16 AM

yes you can delete messages.3 When log rotate runs again you'll get it back.

do this:
cd /var
find . -size +7777 -exec ls -lh {} \;

That should show you all the large files. if you have /var/audit/ files you can probably delete most of them if you don't look at them.

jlliagre 05-05-2006 11:58 AM

FWIW, I'm using xdu (http://sd.wareonearth.com/~phil/xdu/) to quickly find these big directories/files.

Code:

cd /
du -dak > du -dak.out
xdu < du -dak.out


rust8y 05-05-2006 06:30 PM

To remove the messages files in /var/adm
do I type this in the command line:

rm messages*

When will the messages files get generated again?

Thank you.

jlliagre 05-05-2006 06:54 PM

Don't do "rm messages*" but "rm messages.*", but before that, a wise thing to do would be also to have a look at the message files and see why they are growing that fast.

After all they are there to tell you something, and if there is a problem, it would be better to fix it in the first place.


All times are GMT -5. The time now is 01:36 AM.