Operating System - HP-UX
1834926 Members
2482 Online
110071 Solutions
New Discussion

Using gzip on /var/stm/logs/os

 
Manuales
Super Advisor

Using gzip on /var/stm/logs/os


Hi ...could i use gzip command under the following path:
/var/stm/logs/os

for reducing space on disk?
Is there any problem if i run gzip under that directory ???? i mead, does it affect OS???

Thanks ...
4 REPLIES 4
Peter Godron
Honored Contributor

Re: Using gzip on /var/stm/logs/os

Hi,
yes, they can be cleared, but with certain restriction.

These earlier threads will help explain:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=223774
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=958767

To help you find files that can be cleared, you may also want to read:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1035692
Sunny Jaisinghani
Trusted Contributor

Re: Using gzip on /var/stm/logs/os

Hi Manuales,

If the log files are continuosly updated then be careful while zipping the files.this could lead to system halt.

you need to check the time stamps of the files you are zipping before using gzip. if they are old log files then you can straight away zip them. i hope my point is clear.

sunny
Andrew Merritt_2
Honored Contributor

Re: Using gzip on /var/stm/logs/os

Hi Manueles,
The links Peter gives pretty much cover the topic. I'd just like to emphasize a couple of points.

If you are getting a lot of new files (logxxx.raw) in /var/stm/logs/os , you most likely have a hardware problem that needs to be solved. If the files are old, they can be removed (after archiving if you want) as the problem is probably now fixed, you won't need to keep them.

Make sure you have a recent version of OnlineDiags installed.

Compressing or removing the files is not going to stop the system, though it might interfere with the OnlineDiags.

Andrew

Re: Using gzip on /var/stm/logs/os

Hi,

Many years ago I wrote a script to tidy up the STM logs. See attached,

Warning, this is fairly old - certainly not tested with recent versions of STM.

HTH

Duncan

I am an HPE Employee
Accept or Kudo