Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-05-2006, 09:10 AM
|
#1
|
|
Member
Registered: May 2006
Posts: 100
Rep:
|
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?
|
|
|
|
05-05-2006, 10:16 AM
|
#2
|
|
Member
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 681
Rep:
|
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.
|
|
|
|
05-05-2006, 10:58 AM
|
#3
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
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
|
|
|
|
05-05-2006, 05:30 PM
|
#4
|
|
Member
Registered: May 2006
Posts: 100
Original Poster
Rep:
|
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.
|
|
|
|
05-05-2006, 05:54 PM
|
#5
|
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Ubuntu, OL
Posts: 9,311
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:10 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|