Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-23-2009, 02:18 PM   #1
LQ Newbie
Registered: Apr 2009
Posts: 22

Rep: Reputation: 0
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.


Old 04-23-2009, 02:25 PM   #2
Senior Member
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96

Try 'lsof | grep deleted'.

Old 09-05-2010, 05:15 AM   #3
LQ Newbie
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
/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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete system log file but the space not released yuanjunliang Linux - Newbie 1 04-23-2009 04:09 PM
rotating apache logs.....looking for a good script to delete old log file ringding Linux - Server 3 04-01-2009 11:57 AM
cannot delete or rotate messages log file dan451 Linux - Newbie 14 08-04-2006 05:13 PM
I've deleted a log file to save space and... ganninu Linux - General 3 11-04-2003 01:03 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 08:45 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration