LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices



Reply
 
Search this Thread
Old 05-05-2006, 10:10 AM   #1
rust8y
Member
 
Registered: May 2006
Posts: 100

Rep: Reputation: 15
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?
 
Old 05-05-2006, 11:16 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 682

Rep: Reputation: 63
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.
 
Old 05-05-2006, 11:58 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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
 
Old 05-05-2006, 06:30 PM   #4
rust8y
Member
 
Registered: May 2006
Posts: 100

Original Poster
Rep: Reputation: 15
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.
 
Old 05-05-2006, 06:54 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Umm... yeah, I deleted my /var directory. 8-bitDesigner Linux - Software 6 02-21-2006 09:36 PM
Problems with reiserfs, 2.6.15 & 2.4.18 kernel and /var directory okhin Debian 2 02-20-2006 10:19 AM
How do I free up space on / directory? I'm at 100% in use diamonaj Linux - Newbie 1 01-17-2004 09:00 PM
Upgrade Solaris 8 to 9, Sun Blade 100 Workstation itsjustme Solaris / OpenSolaris 5 10-27-2003 09:08 PM
a green-colored file name in the /var/named directory rioguia Linux - Newbie 2 10-16-2003 09:06 AM


All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration