LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Delete system log file but the space not released (https://www.linuxquestions.org/questions/linux-server-73/delete-system-log-file-but-the-space-not-released-721213/)

yuanjunliang 04-23-2009 01:18 PM

Delete system log file but the space not released
 
I have empty the log file using:
cat /dev/null >/var/spool/compaq/cma.log
but the space is not released.

I checked the process which opening the log file, but no process found.
lsof /var/spool/compaq/cma.log

Could you please let me know how to find the process. I don't want to reboot the system.

Thanks,

Julie

ilikejam 04-23-2009 01:25 PM

Hi.

Try 'lsof | grep deleted'.

Dave

durga.linux 09-05-2010 04:15 AM

/var is 100% due to cma.log
 
Best solution for this problem is to stop hpasm deamon.

/opt/compaq/hpasm/etc/hpasm stop

and then cd /var/spool/compaq/

compress cma.log file using

gzip -9 cma.log

and then restart the hpasm deamon.

Durga Prasad Kala
System Admin Linux
AT&T Linux Support
durga.kala@gmail.com


All times are GMT -5. The time now is 06:11 PM.