LinuxQuestions.org
Visit Jeremy's Blog.
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: 96
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


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 03:09 PM
rotating apache logs.....looking for a good script to delete old log file ringding Linux - Server 3 04-01-2009 10:57 AM
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


All times are GMT -5. The time now is 01:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration