Operating System - HP-UX
1847343 Members
2386 Online
110264 Solutions
New Discussion

how to purge /etc/hpC2400/HPARRAY.INFO

 
kholikt
Super Advisor

how to purge /etc/hpC2400/HPARRAY.INFO

Hi,

I have one file named HPARRAY.INFO consumed around 100MB of space. I have gzip the file to only 352K only, but my disk usage is still unchanged.

This HPARRAY.INFO seems to be very common on all the hpux server and located at /etc/hpC2400 directory.

I suspect this is some kind of log file for HPARRAY, Is there any command to purge the file to release all the space?
abc
4 REPLIES 4
Karthik_2
Regular Advisor

Re: how to purge /etc/hpC2400/HPARRAY.INFO

Kholikt ,
This file seems to be a log file but 100 Mb is too big for this file .
I would suggest you tail this file to see what are the latest entries and see if it is reporting any errors .
This is how mine looks ..
arrayscan: No HP SCSI array devices identified. Check SCSI connections.
SCAN FOR DISK ARRAY'S DID NOT DETECT DISK ARRAYS.
To disable set HPARRAY_START_STOP=0 in /etc/rc.config.d/hparray.

But the size is nowhere near as u said.

You can take a copy of this file in tape or in some other directory and trim this file .
>/etc/hpc2400/HPARRAY.INFO.

Cheers
Karthik...
Its ALL in the MATRIX
kholikt
Super Advisor

Re: how to purge /etc/hpC2400/HPARRAY.INFO

thanks for the reply..

I have basically gzip the file already. I can't gunzip back the file and truncate it to zero because the space can not be released and I do not have enough space to decompress it.

I am thinking about doing in this way. I create a new file call HPARRAY.INFO and trucate the file. Will this release the space of my / directory?
abc
Karthik_2
Regular Advisor

Re: how to purge /etc/hpC2400/HPARRAY.INFO

Kholkit,
You can use lsof to identify which process si keeping this file open.
/sbin/init.d/hparray stop
Now you can touch a file HPARRAY.INFO
/sbin/init.d/hparray start
and you can see logging happening to this file.
Did u check up if there is any error message seen in this file.

Karthik...
Its ALL in the MATRIX
kholikt
Super Advisor

Re: how to purge /etc/hpC2400/HPARRAY.INFO

Thanks Kartik

If restart the hparray during office hour, will it affect the downtime.
abc