Operating System - HP-UX
1834635 Members
3487 Online
110069 Solutions
New Discussion

in /var filesystem needs to have space

 
SOLVED
Go to solution
rveri
Super Advisor

in /var filesystem needs to have space

Hi ,

I need to have space in /var filesystem for patch activity. I found the following big files.

root@server22 [/var/stm/logs/sys]
# ls -l
total 577036
-rw-r--r-- 1 root sys 294958605 Feb 26 04:01 activity_log
-rw-rw-rw- 1 root root 20854275 Mar 11 04:52 inet.log
-r--r--r-- 1 root root 20190966 Mar 11 14:59 mail.log


---------------------------------------

Can I nullify or move this files. I am much worried about the first one.
Please suggest,

Thanks,
Veri.
3 REPLIES 3
Rick Garland
Honored Contributor

Re: in /var filesystem needs to have space

If you are not having trouble with mail or need to keep records of who sent what when, then by all means cat /dev/null > mail.log

The activity.log and inet.log files, I do not have so I cannot comment.

Do this command;
cd /var
du . -ka | sort -nr | more

This will provide you with a sorted listed of the biggest files within the /var directory and down.
Robert-Jan Goossens
Honored Contributor
Solution

Re: in /var filesystem needs to have space

Hi Veri,

The /var/stm/logs/sys/activity_log is a log from stm.

# xstm

File --> Administration --> STM Shutdown

as soon as stm has been shutdown you can mv the log file.

# mv activity_log activity_log.old

start stm again
# xstm
File --> Administration --> STM Startup

A new log file will be created, now you remove the old one.

Hope this helps,
Robert-Jan
rveri
Super Advisor

Re: in /var filesystem needs to have space

Thanks Robert for such a good answer.

Now I can do that.

Have a good day,
Thank you,

Veri.