linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Greg Hanson <greg@perusion.com>
To: Ross Vandegrift <ross@kallisti.us>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] difference in space used
Date: Fri, 18 May 2007 19:12:57 -0700	[thread overview]
Message-ID: <464E5D29.2020508@perusion.com> (raw)
In-Reply-To: <20070519010033.GA12791@kallisti.us>

[-- Attachment #1: Type: text/plain, Size: 1565 bytes --]

Ross Vandegrift wrote:
> On Fri, May 18, 2007 at 03:04:35PM -0700, Greg Hanson wrote:
>   
>> [root@newbox1 ~]# du /log/
>> 16      /log/lost+found
>> 23696   /log/httpd
>> 23716   /log/
>>
>> Any ideas as to what could be going on?
>>     
>
> An unlinked file isn't actually deleted until all file handles to it
> are closed.  Since this is your log partition, you probably have
> broken log rotation script.  I bet its moving the files to a new name,
> but the logging process isn't closing and reopening the logfile.
>
> These files that are unlinked but still have open handles to them
> continue to consume their usual amount of disk space.  FWIW, I have
> seen this issue particularly noticably with MySQL when the query log
> is enabled, but that's a wild guess...
>
>   
Thanks for the input Ross.  You are exactly on target.  I found another
post on another forum with regards to this,

http://lists.debian.org/debian-isp/2002/05/msg00046.html

and started examining the log rotate scripts. There was an error in the
path in the HUP line to restart apache, and there were many deleted log
files laying around.

this command

lsof | grep deleted

confirmed that there were several occurrences of error and access logs hanging in there.  
Did an apachectl stop and start and things went back to normal.

Thank you so much for the response!


Greg

-- 
Greg Hanson
Interchange Consulting
Perusion
1506 E Gilbert Ave
Coeur d'Alene, ID 83815

Email		greg@perusion.com
Phone		208-667-2442
Toll Free	800-949-1889
Fax		775-256-2231
Web		http://www.perusion.com



[-- Attachment #2: Type: text/html, Size: 2281 bytes --]

      reply	other threads:[~2007-05-19  2:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-18 22:04 [linux-lvm] difference in space used Greg Hanson
2007-05-19  1:00 ` Ross Vandegrift
2007-05-19  2:12   ` Greg Hanson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=464E5D29.2020508@perusion.com \
    --to=greg@perusion.com \
    --cc=greg@valuemedia.com \
    --cc=linux-lvm@redhat.com \
    --cc=ross@kallisti.us \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).