Operating System - HP-UX
1834170 Members
2880 Online
110064 Solutions
New Discussion

Clearing the HP Array Logs

 
Richard Ace
Frequent Advisor

Clearing the HP Array Logs

What are the implications if any on stopping the hparray daemon mid flight with user on the system ?


1. /sbin/init.d/hparray stop

2. mv /var/opt/hparray/log/* /tmp

3. touch /var/opt/hparray/log/LOGCATLG

4. /sbin/init.d/hparray start
3 REPLIES 3
Jeff Machols
Esteemed Contributor

Re: Clearing the HP Array Logs

I would just copy the log files out first, then do a

cp /dev/null /var/opt/hparray/log/log_file

for each log file. That will free up the space without having to stop the process
Paula J Frazer-Campbell
Honored Contributor

Re: Clearing the HP Array Logs

Richard
If you want to clean the logs then use the facility in sam:-

SAM Routine Tasks ->
SAM System Log Files
Action
ADD TO LIST

Then enter path, type and the max size that you would like.

You can then use the trim log option on a "live" log.


HTH

Paula
If you can spell SysAdmin then you is one - anon
S.K. Chan
Honored Contributor

Re: Clearing the HP Array Logs

You don't need to stop hparray.
Also if you have logs on the autoraid,the ARMServer daemon periodically queries the hardware, and extracts the logs to those files on disk, then clears the hardware logs in the Autoraid.