The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
.
google unix.com



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

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

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-03-2007
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
/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
  #2 (permalink)  
Old 11-03-2007
porter porter is offline Forum Advisor  
Registered User
  
 

Join Date: Jan 2007
Posts: 2,965
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.
  #3 (permalink)  
Old 11-03-2007
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
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'??
  #4 (permalink)  
Old 11-03-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Probably this may help:

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

Join Date: Jan 2002
Location: Germany
Posts: 167
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
  #6 (permalink)  
Old 11-07-2007
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
H Joerg,
Thanks for the suggestion. I tried with du -akd /var | sort -nr > /tmp/duvar.out. But i don't know how to find the porblemetic files and directorys from there. In the output file
is see somthing like below. left value i thing telling the size. But what do i think to c these???
...
21104 /var/sadm/pkg/VRTSvxvm/save/116697-03/undo.Z
16042 /var/mail
16000 /var/mail/bgw
  #7 (permalink)  
Old 11-08-2007
joerg's Avatar
joerg joerg is offline
Registered User
  
 

Join Date: Jan 2002
Location: Germany
Posts: 167
Hi,
for more human readable:

But you must use a ksh!
and
"M " is not a space after the "M" it is a control-I (It is a big I like Imagine (Tab is the same))

du -akdh /var | sort -nr | grep "M "

With this you can find the biggest files and the dir with the most among of filesystem place.
This search only Megabyte big files if you looking for a Gigabyte file you have to change M to G.

Best regards
joerg
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB 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 -4. The time now is 08:01 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0