Operating System - HP-UX
1834479 Members
3482 Online
110067 Solutions
New Discussion

Re: /var/opt/hparray/log files -- deleteable?

 
SOLVED
Go to solution
Robert A. Pierce
Frequent Advisor

/var/opt/hparray/log files -- deleteable?

Good afternoon.

Can I delete the old files from /var/opt/hparray/log? How old can they be before they can be safely deleted? Anything before the last reboot, perhaps?

The directory looks rather like this:

-r--r--r-- 1 root sys 4096 Jul 6 1998 L0000001
-r--r--r-- 1 root root 40960 Jul 7 1998 L0000003
-r--r--r-- 1 root root 40960 Jul 7 1998 L0000004
-r--r--r-- 1 root root 12288 Jul 7 1998 L0000005
-r--r--r-- 1 root root 40960 Jul 8 1998 L0000006
-r--r--r-- 1 root root 40960 Jul 8 1998 L0000007
# ll | tail
-r--r--r-- 1 root root 40960 May 25 18:03 L0003975
-r--r--r-- 1 root root 40960 May 26 04:04 L0003976
-r--r--r-- 1 root root 40960 May 26 14:06 L0003977
-r--r--r-- 1 root root 40960 May 27 00:07 L0003978
-r--r--r-- 1 root root 40960 May 27 10:09 L0003979
-r--r--r-- 1 root root 40960 May 27 20:10 L0003980
-r--r--r-- 1 root root 40960 May 28 06:12 L0003981
-r--r--r-- 1 root root 24576 May 28 12:13 L0003982
-rw-r--r-- 1 root sys 174336 May 28 07:12 LOGCATLG

Thanks,

Rob Pierce
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: /var/opt/hparray/log files -- deleteable?

Once a month we run a cron job that does this, it can obviously do it on any log file.

cp /var/adm/btmp /backups

> btmp

For a multi file issue like this, you can run a find command

find /var/opt/hparry/log +mtime 10 -exec rm \;

That will nail anything over 10 days old.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Robert A. Pierce
Frequent Advisor

Re: /var/opt/hparray/log files -- deleteable?


Thank you, Steven!

Rob Pierce
Pete Randall
Outstanding Contributor
Solution

Re: /var/opt/hparray/log files -- deleteable?

Rob,

I was given the following procedure by HP Support:


1. /sbin/init.d/hparray stop

2. Wait for ARMServer to stop, checking with ps -ef |grep ARMS

3. Blow away the logfiles and the catalog entry with "rm /var/opt/hparray/log/L*"

4. Re-create the catalog with "touch /var/opt/hparray/log/LOGCATLG"

5. /sbin/init.d/hparray start




Pete

Pete
Robert A. Pierce
Frequent Advisor

Re: /var/opt/hparray/log files -- deleteable?

Thank you both.

Now another question -- why don't your points show up when I reload the page?

Rob Pierce
Pete Randall
Outstanding Contributor

Re: /var/opt/hparray/log files -- deleteable?

Rob,

Unfortunately, it's a known problem that HP is working on. In the meantime, it occasionally requires several repeated attempts to get the points to stick. Thanks for checking!

Pete

Pete