Disk Enclosures
1753321 Members
6280 Online
108792 Solutions
New Discussion юеВ

clearing VA7100 logs

 
Peter Oliver_1
Occasional Contributor

clearing VA7100 logs

The HP-UX logdel command deletes old logs related to VA7100 disk arrays. However, it doesn't seem to touch the logs in "/var/opt/sanmgr/commandview/server/logs/performance". Does anyone know if it's safe to selectively delete these, or is there another command that you're supposed to use?
4 REPLIES 4
Bernhard Mueller
Honored Contributor

Re: clearing VA7100 logs

Peter,

this is what I found and probably the best way to do it:

You can configure the operating parameters to automatically limit the performance log file size. This is done by adding the following parameters to the PanConfigParams.txt file

PERFORMANCE_DB_MAX_SIZE=nnn
Sets the maximum amount of disk space in Mbytes that performance log files can consume.

Once this limit is reached, the oldest performance log files are automatically deleted. A value of zero will not delete any logs.

PERFORMANCE_KEEP_MIN_LOGS=nn

Regards,
Bernhard

Bernhard Mueller
Honored Contributor

Re: clearing VA7100 logs

Ooops,

here is the rest...

PERFORMANCE_KEEP_MIN_LOGS=nn

Sets the minimum number of days worth of log files to keep. This parameter overrides the PERFORMANCE_DB_MAX_SIZE parameter if the
two parameters conflict. The default is seven days. For the default case, a minimum of seven days worth of performance log files will be kept for each device regardless of the max disk space setting.

PERFORMANCE_LOG_CLEAN=nn

Defines how often (in hours) the performance logs will be checked to see if log files need to be deleted, based on the PERFORMANCE_DB_MAX_SIZE setting.
The default setting is 24 hours.

Regards
Bernhard
Peter Oliver_1
Occasional Contributor

Re: clearing VA7100 logs

That looks like it will do the trick. Where are these settings documented, btw?
Bernhard Mueller
Honored Contributor

Re: clearing VA7100 logs

Peter,

this is from the CommandView documentation (I would have attached the pdf but it is too large), so look under /opt/sanmgr/doc or similar, alternatively if you have a CD with the (separate) CommandView SW it will be there too.

Regards,
Bernhard