[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-lvm
Subject: Re: [linux-lvm] difference in space used
From: Greg Hanson <greg () perusion ! com>
Date: 2007-05-19 2:12:57
Message-ID: 464E5D29.2020508 () perusion ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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 #5 (text/html)]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Ross Vandegrift wrote:
<blockquote cite="mid:20070519010033.GA12791@kallisti.us" type="cite">
<pre wrap="">On Fri, May 18, 2007 at 03:04:35PM -0700, Greg Hanson wrote:
</pre>
<blockquote type="cite">
<pre wrap="">[root@newbox1 ~]# du /log/
16 /log/lost+found
23696 /log/httpd
23716 /log/
Any ideas as to what could be going on?
</pre>
</blockquote>
<pre wrap=""><!---->
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...
</pre>
</blockquote>
Thanks for the input Ross. You are exactly on target. I found another
post on another forum with regards to this, <br>
<br>
<a class="moz-txt-link-freetext" \
href="http://lists.debian.org/debian-isp/2002/05/msg00046.html">http://lists.debian.org/debian-isp/2002/05/msg00046.html</a><br>
<br>
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.<br>
<br>
this command<br>
<pre>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!
</pre>
<br>
Greg<br>
<br>
<pre class="moz-signature" cols="72">--
Greg Hanson
Interchange Consulting
Perusion
1506 E Gilbert Ave
Coeur d'Alene, ID 83815
Email <a class="moz-txt-link-abbreviated" \
href="mailto:greg@perusion.com">greg@perusion.com</a> Phone 208-667-2442
Toll Free 800-949-1889
Fax 775-256-2231
Web <a class="moz-txt-link-freetext" \
href="http://www.perusion.com">http://www.perusion.com</a>
</pre>
</body>
</html>
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic