11-03-2007
/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
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all:
I am new to this board and UNIX programming so please forgive if I don't explain something correctly.
I am trying to write a script to keep track of our links, we link one program written for Client A to Client B's directory.
What we want to do is to keep track of our linked programs... (1 Reply)
Discussion started by: Smurtzy
1 Replies
2. Shell Programming and Scripting
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
3. Solaris
i need to increase the size of my /var filesystem but i have no idea how to do it.
Filesystem kbytes used avail capacity Mounted on
/dev/dsk/c0t3d0s0 144799 74952 55377 58% /
/dev/dsk/c0t3d0s6 342183 201079 106894 66% /usr
/proc ... (0 Replies)
Discussion started by: roguekitton
0 Replies
4. Shell Programming and Scripting
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies
5. Solaris
Recently i have attended a telephonic interview. As i dont have work experience in solaris i was not able to deliver correct answer for this question.
Your answer will help for the people like me who is looking to become Solaris System administrator. (4 Replies)
Discussion started by: Sesha
4 Replies
6. Shell Programming and Scripting
I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help!
yy=`date +%Y`
mm=`date +%m`
dd=`date +%d`
echo "Today is : $yy $mm $dd"
#!/usr/bin/ksh
date '+%m... (5 Replies)
Discussion started by: libertyforall
5 Replies
7. Shell Programming and Scripting
Hi,
I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it.
For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day.
i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies
9. Shell Programming and Scripting
hello,
I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc.
I need to do it for several years and leap years as well.
What is the best way to do it ?
Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies
LEARN ABOUT OPENSOLARIS
sulog
sulog(4) File Formats sulog(4)
NAME
sulog - su command log file
SYNOPSIS
/var/adm/sulog
DESCRIPTION
The sulog file is a record of all attempts by users on the system to execute the su(1M) command. Each time su(1M) is executed, an entry
is added to the sulog file.
Each entry in the sulog file is a single line of the form:
SU date time
result port user-newuser
where
date The month and date su(1M) was executed. date is displayed in the form mm/dd where mm is the month number and dd is the day
number in the month.
time The time su(1M) was executed. time is displayed in the form HH/MM where HH is the hour number (24 hour system) and MM is the
minute number.
result The result of the su(1M) command. A ` + ' sign is displayed in this field if the su attempt was successful; otherwise a ` - '
sign is displayed.
port The name of the terminal device from which su(1M) was executed.
user The user id of the user executing the su(1M) command.
newuser The user id being switched to with su(1M).
EXAMPLES
Example 1 A sample sulog file.
Here is a sample sulog file:
SU 02/25 09:29 + console root-sys
SU 02/25 09:32 + pts/3 user1-root
SU 03/02 08:03 + pts/5 user1-root
SU 03/03 08:19 + pts/5 user1-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/14 08:31 + pts/4 user1-root
FILES
/var/adm/sulog su log file
/etc/default/su contains the default location of sulog
SEE ALSO
su(1M)
SunOS 5.11 6 Jun 1994 sulog(4)