<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Directory index full &#8211; lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</title>
	<atom:link href="http://lifelinux.com/tag/directory-index-full/feed/" rel="self" type="application/rss+xml" />
	<link>http://lifelinux.com</link>
	<description>All About Linux !</description>
	<lastBuildDate>Sun, 04 Oct 2015 08:22:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.5.3</generator>
	<item>
		<title>How To Fix &#8220;EXT4-fs warning (device sdX): ext4_dx_add_entry: Directory index full!&#8221;</title>
		<link>http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/</link>
					<comments>http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/#respond</comments>
		
		<dc:creator><![CDATA[Unix]]></dc:creator>
		<pubDate>Sun, 04 Oct 2015 08:18:53 +0000</pubDate>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Directory index full]]></category>
		<guid isPermaLink="false">http://www.lifelinux.com/?p=2077</guid>

					<description><![CDATA[<p>Recently, one of my servers has started to show this message in syslog: Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full! Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full! Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full! The message Directory [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/">How To Fix &#8220;EXT4-fs warning (device sdX): ext4_dx_add_entry: Directory index full!&#8221;</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p></p><p>Recently, one of my servers has started to show this message in syslog:</p>
<pre>
Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full!
Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full!
Aug 24 17:11:46 host-53-114 kernel: EXT4-fs warning (device md126p5): ext4_dx_add_entry: Directory index full!
</pre>
<p><span id="more-2077"></span></p>
<p>The message Directory index full! sound like inode’s problem. Type the following command to check</p>
<pre>
# df -i
</pre>
<p>Output</p>
<pre>
Filesystem       Inodes    IUsed  IFree IUse% Mounted on
/dev/md126p5   29974528 29956913  17615  100% /
tmpfs           1003836    14913 988923    2% /dev/shm
/dev/md126p1     128016       44 127972    1% /boot
/dev/md126p3     262144       18 262126    1% /tmp
</pre>
<p>Maybe too much to fill up the inodes in the partition, so I need to find the directory</p>
<pre>
# cd /
# for dir in `ls -1`; do echo $dir; find ./$dir -type f|wc -l; done
</pre>
<p>Output</p>
<pre>
cache
33
db
0
empty
0
games
0
lib
4486
local
0
lock
11
log
104
mail
0
...
</pre>
<p>I found &#8220;/var/spool/postfix/maildrop/&#8221; has millions of files, so we need to delete. Have many case to delete millions of files but I highlight recommend following, the way is the fastest method to delete billions of files</p>
<pre>
# cd /var/spool/postfix/maildrop/
# nohup perl -e 'for(<*>){((stat)[9]<(unlink))}' &#038;
</pre>
<g:plusone href="http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/" size="standard"  annotation="none"   ></g:plusone><p>The post <a rel="nofollow" href="http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/">How To Fix &#8220;EXT4-fs warning (device sdX): ext4_dx_add_entry: Directory index full!&#8221;</a> appeared first on <a rel="nofollow" href="http://lifelinux.com">lifeLinux: Linux Tips, Hacks, Tutorials, Ebooks</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>http://lifelinux.com/how-to-fix-ext4-fs-warning-device-sdx-ext4_dx_add_entry-directory-index-full/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
