Operating System - Tru64 Unix
1752749 Members
5133 Online
108789 Solutions
New Discussion юеВ

Re: Logs that can be deleted

 
SOLVED
Go to solution
Bruno Vilardo
Regular Advisor

Logs that can be deleted

Hello all,

What log files can i delete ?
When i delete them , are going to be created again ?
I am asking it because i need to free up some space.

Thanks

Bruno
11 REPLIES 11
Ravi_8
Honored Contributor
Solution

Re: Logs that can be deleted

Hi

/var/adm/syslog.dated keep the recent log file. you can remove remainings.

you can also remove /var/adm/patch/log files
never give up
Joris Denayer
Respected Contributor

Re: Logs that can be deleted

You can also give following command to archive the current errorlog file.

# kill -USR1 `cat /var/run/binlogd.pid`

See also # man binlogd
To err is human, but to really faul things up requires a computer
Bruno Vilardo
Regular Advisor

Re: Logs that can be deleted

Hi Ravi

in the directory /var/adm/syslog.dated i have others directory and show bellow :

drwxr-xr-x 2 root adm 8192 Mar 13 00:10 12-Mar-14:09
drwxr-xr-x 2 root adm 8192 Mar 14 00:10 13-Mar-14:09
drwxr-xr-x 2 root adm 8192 Mar 15 00:10 14-Mar-14:09
drwxr-xr-x 2 root adm 8192 Mar 16 00:10 15-Mar-14:09
drwxr-xr-x 2 root adm 8192 Mar 17 00:10 16-Mar-14:09
drwxr-xr-x 2 root adm 8192 Mar 18 00:10 17-Mar-14:09

and the current directory .

Should i delete these directories ive shown ?

Thanks a lot
BRuno
Johan Brusche
Honored Contributor

Re: Logs that can be deleted


Don't delete patchlog files, they are a very valuable troubleshooting tool for detecting patch installation problems.

Check for dumps in /var/adm/crash/vm*
and delete them (if the cause is known)
Recycle /var/adm/biinary.errlog regulary via the command "kill -USR1 "
and gzip the most recent old file, customer services migth need it.
If you have COLECT_AUTORUN=1, then check for old collect.cgz files in /var/adm/collect.dated.
/var/adm/messages can be quite big, you can put a new one in place with 'cp /dev/null /var/adm/messages'

Make sure that in root's crontab you have the line with "dirclean" and "find /var/adm/syslog.dated..." enabled.

JB.

_JB_
Bruno Vilardo
Regular Advisor

Re: Logs that can be deleted

Hi ,

I have these 2 files
-rw-r----- 1 root system 12581984 Aug 3 2002 vmunix.0
-rw-r----- 1 root system 16002048 Aug 3 2002 vmzcore.0
when i delete them , are they going to be created again ?

Thanks

Bruno
Johan Brusche
Honored Contributor

Re: Logs that can be deleted


Yes, you may delete them, since we can suppose that the cause of the panic 2 years ago has been corrected in the meanwhile.
Next time this system panics, you will find a vmunix.1 and a vmzcore.1 in that directory.
You may delete those too, after HP gave you a solution for that panic.

Johan.

_JB_
Michael Schulte zur Sur
Honored Contributor

Re: Logs that can be deleted

Hi Bruno,

-rw-r----- 1 root system 12581984 Aug 3 2002 vmunix.0
-rw-r----- 1 root system 16002048 Aug 3 2002 vmzcore.0
when i delete them , are they going to be created again ?

yes, after the next crash, if the machine manages to write a dump. ;-)

Unless one of the directories is huge, you can leave /var/adm/syslog.dated in peace
this is being taken care or by root crontab. It keeps a number of days stuff older than that is deleted.

Interesting are the crash*data files in /var/adm/crash. The rest you can delete. You need them only for crash dump research.

greetings,

Michael
Bruno Vilardo
Regular Advisor

Re: Logs that can be deleted

Well i don├В┬┤t if HP gave us the solution.
I am in this machine for 2 months and i don├В┬┤t have this information.
BUt the system is running well .

Now i have doubt to delete or not ...

But thanks a lot my friend .

Br
Michael Schulte zur Sur
Honored Contributor

Re: Logs that can be deleted

Hi,

usually you find big files in /var/adm
like messages, wtmp, utmp.
sometimes the Xerror will get big as sell.
Since you will have the machine only two months, I won't put too much work into it.

Michael