<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: du/ncdu 的结果和 df 不一致！</title>
	<atom:link href="http://linuxtoy.org/archives/different-of-du-df.html/feed" rel="self" type="application/rss+xml" />
	<link>http://linuxtoy.org/archives/different-of-du-df.html</link>
	<description>LinuxTOY 是一个致力于提供 Linux 相关资讯的专题站点。如果您发现了好用好玩的 Linux 东东并愿意发扬自由、分享的精神，可以点击顶部导航 Contact 按钮进行投稿。</description>
	<lastBuildDate>Wed, 23 May 2012 09:12:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: ihipop</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-146275</link>
		<dc:creator>ihipop</dc:creator>
		<pubDate>Mon, 15 Mar 2010 03:12:32 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-146275</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-146249&quot; rel=&quot;nofollow&quot;&gt;untitled.v6@gmail.com&lt;/a&gt;: 所以说是我无知了&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-146249" rel="nofollow">untitled.v6@gmail.com</a>: 所以说是我无知了</p>]]></content:encoded>
	</item>
	<item>
		<title>By: untitled.v6@gmail.com</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-146249</link>
		<dc:creator>untitled.v6@gmail.com</dc:creator>
		<pubDate>Mon, 15 Mar 2010 01:29:43 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-146249</guid>
		<description>&lt;p&gt;这个问题已经很多人讨论过了。一直存在的问题，应该是文件虽然删除了，但是还有其他进程在使用这个文件导致。
参考这里http://kbase.redhat.com/faq/docs/DOC-9493&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>这个问题已经很多人讨论过了。一直存在的问题，应该是文件虽然删除了，但是还有其他进程在使用这个文件导致。
参考这里http://kbase.redhat.com/faq/docs/DOC-9493</p>]]></content:encoded>
	</item>
	<item>
		<title>By: zer4tul</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145835</link>
		<dc:creator>zer4tul</dc:creator>
		<pubDate>Sat, 13 Mar 2010 19:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145835</guid>
		<description>&lt;p&gt;@Lane East：正解！apache本身是直接通过inode开日志文件的，所以切日志很麻烦。cronolog其实就是让apache将日志发给它，然后由它来处理日志而达到切日志的目的的。&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Lane East：正解！apache本身是直接通过inode开日志文件的，所以切日志很麻烦。cronolog其实就是让apache将日志发给它，然后由它来处理日志而达到切日志的目的的。</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ihipop</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145728</link>
		<dc:creator>ihipop</dc:creator>
		<pubDate>Sat, 13 Mar 2010 12:22:58 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145728</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145727&quot; rel=&quot;nofollow&quot;&gt;Lane East&lt;/a&gt;: THX，有机会我验证一下。&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145727" rel="nofollow">Lane East</a>: THX，有机会我验证一下。</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lane East</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145727</link>
		<dc:creator>Lane East</dc:creator>
		<pubDate>Sat, 13 Mar 2010 12:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145727</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145718&quot; rel=&quot;nofollow&quot;&gt;ihipop&lt;/a&gt;: 对 apache 和 cronolog 不太了解, 不过看你写的 TransferLog &quot;&#124;/usr/sbin/cronolog /web/logs/%Y/%m/%d/access.log&quot;, 我 &lt;em&gt;猜测&lt;/em&gt; 这是通过管道发给 cronolog 来处理的, 那也就意味着, 日志文件是由 cronolog 打开的, 所以就不需要 restart apache 了. 另一个是, 不一定非要程序退出才可以关闭文件, 如果 cronolog 会主动关闭前一天的日志文件的话, 那直接删除就可以了, 用 lsof 之类的东西应该就能查出来了.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145718" rel="nofollow">ihipop</a>: 对 apache 和 cronolog 不太了解, 不过看你写的 TransferLog "|/usr/sbin/cronolog /web/logs/%Y/%m/%d/access.log", 我 <em>猜测</em> 这是通过管道发给 cronolog 来处理的, 那也就意味着, 日志文件是由 cronolog 打开的, 所以就不需要 restart apache 了. 另一个是, 不一定非要程序退出才可以关闭文件, 如果 cronolog 会主动关闭前一天的日志文件的话, 那直接删除就可以了, 用 lsof 之类的东西应该就能查出来了.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: ihipop</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145718</link>
		<dc:creator>ihipop</dc:creator>
		<pubDate>Sat, 13 Mar 2010 11:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145718</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145693&quot; rel=&quot;nofollow&quot;&gt;Lane East&lt;/a&gt;: 若果这样的话，我用cronolog对apache做日志轮询，比如，
TransferLog &quot;&#124;/usr/sbin/cronolog /web/logs/%Y/%m/%d/access.log&quot;&lt;/p&gt;

&lt;p&gt;那么，产生好多子目录，
/web/logs/2009/12/31/errors.log
/web/logs/2010/1/1/errors.log
...................
/web/logs/2010/3/13/errors.log
假设今天是2010年3/14，那么。我直接把3/13日以前的日志给咔嚓了，这些以前被轮询的日志所占用的空间，还需要restart apache才能释放么？还是需要重启cronolog？ cronolog可是直接从apache接受信息啊，怎么restart？&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145693" rel="nofollow">Lane East</a>: 若果这样的话，我用cronolog对apache做日志轮询，比如，
TransferLog "|/usr/sbin/cronolog /web/logs/%Y/%m/%d/access.log"</p>

<p>那么，产生好多子目录，
/web/logs/2009/12/31/errors.log
/web/logs/2010/1/1/errors.log
...................
/web/logs/2010/3/13/errors.log
假设今天是2010年3/14，那么。我直接把3/13日以前的日志给咔嚓了，这些以前被轮询的日志所占用的空间，还需要restart apache才能释放么？还是需要重启cronolog？ cronolog可是直接从apache接受信息啊，怎么restart？</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lane East</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145693</link>
		<dc:creator>Lane East</dc:creator>
		<pubDate>Sat, 13 Mar 2010 10:14:23 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145693</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145678&quot; rel=&quot;nofollow&quot;&gt;simsilver&lt;/a&gt;:  根据 POSIX 的规定, 所有的链接(个人理解应该是硬链接)都被删除, 并且没在使用的时候, 文件才会真正被删除, 所以, 你说的情况下应该是写入失败, 空间不足&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145678" rel="nofollow">simsilver</a>:  根据 POSIX 的规定, 所有的链接(个人理解应该是硬链接)都被删除, 并且没在使用的时候, 文件才会真正被删除, 所以, 你说的情况下应该是写入失败, 空间不足</p>]]></content:encoded>
	</item>
	<item>
		<title>By: simsilver</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145678</link>
		<dc:creator>simsilver</dc:creator>
		<pubDate>Sat, 13 Mar 2010 09:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145678</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145554&quot; rel=&quot;nofollow&quot;&gt;Lane East&lt;/a&gt;: 额,如果在磁盘空间不够多的情况下后台又在写文件会不会导致播放错误?抑或写入失败?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145554" rel="nofollow">Lane East</a>: 额,如果在磁盘空间不够多的情况下后台又在写文件会不会导致播放错误?抑或写入失败?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: kenshin</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145607</link>
		<dc:creator>kenshin</dc:creator>
		<pubDate>Sat, 13 Mar 2010 04:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145607</guid>
		<description>&lt;p&gt;@Lane East: unlink被你用到精髓了 :)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Lane East: unlink被你用到精髓了 :)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: shellexy</title>
		<link>http://linuxtoy.org/archives/different-of-du-df.html#comment-145584</link>
		<dc:creator>shellexy</dc:creator>
		<pubDate>Sat, 13 Mar 2010 03:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://linuxtoy.org/?p=3778#comment-145584</guid>
		<description>&lt;p&gt;@&lt;a href=&quot;#comment-145448&quot; rel=&quot;nofollow&quot;&gt;xiaosuo&lt;/a&gt;: 正解，打开中的文件不会被真正删除。&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-145448" rel="nofollow">xiaosuo</a>: 正解，打开中的文件不会被真正删除。</p>]]></content:encoded>
	</item>
</channel>
</rss>

