LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-23-2009, 01:18 PM   #1
yuanjunliang
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.

Thanks,

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

Rep: Reputation: 97
Hi.

Try 'lsof | grep deleted'.

Dave
 
Old 09-05-2010, 04:15 AM   #3
durga.linux
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
durga.kala@gmail.com
 
  


Reply



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
rotating apache logs.....looking for a good script to delete old log file ringding Linux - Server 6 04-25-2020 12:59 PM
Delete system log file but the space not released yuanjunliang Linux - Newbie 1 04-23-2009 03:09 PM
cannot delete or rotate messages log file dan451 Linux - Newbie 14 08-04-2006 04:13 PM
I've deleted a log file to save space and... ganninu Linux - General 3 11-04-2003 12:03 PM
Large tar file taking huge disk space in ext3 file system pcwulf Linux - General 2 10-20-2003 07:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:30 AM.

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