The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Increasing swap size akyuceisik HP-UX 1 05-09-2008 07:55 AM
Help on increasing fs size kingsto88 HP-UX 5 02-11-2007 03:37 AM
Increasing File Size on AIX Rosie C AIX 1 05-12-2006 01:25 AM
Increasing the FileSystem Size aldowsary AIX 9 07-18-2005 12:59 AM
Increasing a directory size jonest UNIX for Dummies Questions & Answers 9 06-08-2005 07:26 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-03-2007
Registered User
 

Join Date: Oct 2007
Posts: 42
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
/var size is increasing day by day

Hi experts,

I am facing a big problem. i use solaris 9. i found size of /var is increasing day by.
snapshot of a yester moring-
/dev/vx/dsk/var 15G 14G 1.1G 94% /var
snapshot of a yesterday everning-
/dev/vx/dsk/var 15G 14G 824M 95% /var

I am expecting /var/adm/messages size is increasing and hence /var size is increasing. Its my assume. But I don't know how to delete lot of records from the file /var/adm/messages

Please guys advise me asap. I am danger situation and i am afraid.

Morning Snapshot- /var/adm

bash-2.05$ ls -lht
total 1250600
-r--r--r-- 1 root root 27K Nov 2 09:55 lastlog
-rw-r--r-- 1 root root 109M Nov 2 09:55 messages-rw-r--r-- 1 root bin 15K Nov 2 09:31 utmpx
-rw------- 1 root root 42K Nov 1 13:05 sulog
-rw-r--r-- 1 root root 179M Oct 29 03:10 messages.0
-rw-r--r-- 1 root root 123M Oct 22 03:10 messages.1
-rw-r--r-- 1 root root 87M Oct 15 03:10 messages.2
-rw-r--r-- 1 root root 112M Oct 8 03:10 messages.3
-rw-r--r-- 1 root root 0 May 10 2005 vold.log
drwxrwxr-x 5 adm adm 512 May 10 2005 acct
drwxrwxr-x 2 adm sys 512 May 10 2005 sa
drwxr-xr-x 2 root sys 512 May 10 2005 sm.bin
-rw------- 1 uucp bin 0 May 10 2005 aculog
-rw-rw-rw- 1 root bin 0 May 10 2005 spellhist
drwxr-xr-x 2 adm adm 512 May 10 2005 exacct
drwxr-xr-x 2 adm adm 512 May 10 2005 log
drwxr-xr-x 2 adm adm 512 May 10 2005 passwd
drwxr-xr-x 2 root sys 512 May 10 2005 streams
bash-2.05$

Evening snapshot- /var/adm

bash-2.05$ ls -ltrh
total 1269464
drwxr-xr-x 2 root sys 512 May 10 2005 streams
drwxr-xr-x 2 adm adm 512 May 10 2005 passwd
drwxr-xr-x 2 adm adm 512 May 10 2005 log
drwxr-xr-x 2 adm adm 512 May 10 2005 exacct
-rw-rw-rw- 1 root bin 0 May 10 2005 spellhist
-rw------- 1 uucp bin 0 May 10 2005 aculog
drwxr-xr-x 2 root sys 512 May 10 2005 sm.bin
drwxrwxr-x 2 adm sys 512 May 10 2005 sa
drwxrwxr-x 5 adm adm 512 May 10 2005 acct
-rw-r--r-- 1 root root 0 May 10 2005 vold.log
-rw-r--r-- 1 root root 112M Oct 8 03:10 messages.3
-rw-r--r-- 1 root root 87M Oct 15 03:10 messages.2
-rw-r--r-- 1 root root 123M Oct 22 03:10 messages.1
-rw-r--r-- 1 root root 179M Oct 29 03:10 messages.0
-rw------- 1 root root 42K Nov 2 09:59 sulog
-rw-r--r-- 1 root bin 15K Nov 2 18:24 utmpx
-rw-r--r-- 1 root root 118M Nov 2 18:29 messages-r--r--r-- 1 root root 27K Nov 2 18:29 lastlog
bash-2.05$

Best Regards,
Purple
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 11-03-2007
Registered User
 

Join Date: Jan 2007
Posts: 2,965
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
How are the messages.0, messages.1 etc files created, are they being created automatically? Or do those dates match reboots. You can archive and delete the old message.* files.
There are various "log rolling" solutions available.
Reply With Quote
  #3 (permalink)  
Old 11-03-2007
Registered User
 

Join Date: Oct 2007
Posts: 42
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
i don't know how messages.0, messages.1 , .2, .3 has created. System is up at least for last one and half months. So, those dates should not be match with reboots. If you see messages.0,1,2,3 size has not changed. Only "messages" size has changed. I m not sure Is only for file 'messages'- the size of /var is increasing?? Or else something hidden.
Could u pls tell me about something 'log rolling'??
Reply With Quote
  #4 (permalink)  
Old 11-03-2007
Moderator
 
Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,375
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Probably this may help:

HOWTO Rotate logs on Sun Solaris - BeezNest
Reply With Quote
  #5 (permalink)  
Old 11-03-2007
joerg's Avatar
Registered User
 

Join Date: Jan 2002
Location: Germany
Posts: 148
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Smile

Hi
The first thread in this Forum is named as following:

Filesystem full - what to look for << Very useful!!!!

Please first read this thread and then you can say what is the reason that the /var file system is so full.

In my opinion the messages files are not the reason!!
(But to use the "log rolling" is very comfortable.)
The article shows you how to handle this situation.

This is my favorite command to find problematic files and directory's
du -akd /var | sort -nr | more

Best regards joerg
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 03:31 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102