<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[张宴的博客]]></title> 
<link>http://zyan.cc/index.php</link> 
<description><![CDATA[Web系统架构与底层研发]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[张宴的博客]]></copyright>
<item>
<link>http://zyan.cc/post/295/</link>
<title><![CDATA[Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>张宴 &lt;net@s135.com&gt;</author>
<category><![CDATA[其他Unix技术]]></category>
<pubDate>Wed, 12 Sep 2007 10:50:40 +0000</pubDate> 
<guid>http://zyan.cc/post/295/</guid> 
<description>
<![CDATA[ 
	　　[文章作者：张宴 本文版本：v1.0 最后修改：2007.09.12 转载请注明出处：<a href="http://blog.zyan.cc" target="_blank">http://blog.zyan.cc</a>]<br/><br/>　　一、发现问题：<br/>　　在一台配置较低的Linux服务器（内存、硬盘比较小）的/data分区内创建文件时，系统提示磁盘空间不足，用df -h命令查看了一下磁盘使用情况，发现/data分区只使用了66%，还有12G的剩余空间，按理说不会出现这种问题。<br/><br/>　　二、分析问题：<br/>　　后来用df -i查看了一下/data分区的索引节点(inode)，发现已经用满(IUsed=100%)，导致系统无法创建新目录和文件。<br/>　　<a href="http://zyan.cc/attachment/200709/inode.gif" target="_blank"><img src="http://zyan.cc/attachment/200709/inode.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>　　inode译成中文就是索引节点，每个存储设备（例如硬盘）或存储设备的分区被格式化为文件系统后，应该有两部份，一部份是inode，另一部份是Block，Block是用来存储数据用的。而inode呢，就是用来存储这些数据的信息，这些信息包括文件大小、属主、归属的用户组、读写权限等。inode为每个文件进行信息索引，所以就有了inode的数值。操作系统根据指令，能通过inode值最快的找到相对应的文件。<br/><br/>　　而这台服务器的Block虽然还有剩余，但inode已经用满，因此在创建新目录或文件时，系统提示磁盘空间不足。<br/><br/>　　三、查找原因：<br/>　　/data/cache目录中存在数量非常多的小字节缓存文件，占用的Block不多，但是占用了大量的inode。<br/><br/>　　四、解决方案：<br/>　　1、删除/data/cache目录中的部分文件，释放出/data分区的一部分inode。<br/><br/>　　2、用软连接将空闲分区/opt中的newcache目录连接到/data/cache，使用/opt分区的inode来缓解/data分区inode不足的问题：<br/>　　<span style="color: #008000;">ln -s /opt/newcache /data/cache</span><br/><br/>　　3、更换服务器，用高配置的服务器替换低配置的服务器。很多时候用钱去解决问题比用技术更有效，堆在我办公桌上5台全新的 DELL PowerEdge 1950 服务器即将运往IDC机房。<br/>　　<a href="http://zyan.cc/attachment/200709/dell1950.gif" target="_blank"><img src="http://zyan.cc/attachment/200709/dell1950.gif" class="insertimage" alt="点击在新窗口中浏览此图片" title="点击在新窗口中浏览此图片" border="0"/></a><br/><br/>Tags - <a href="http://zyan.cc/tags/linux/" rel="tag">linux</a>
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment336</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>jackbillow &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 14 Sep 2007 08:51:11 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment336</guid> 
<description>
<![CDATA[ 
	可以看看是什么fs，可能inode是block的2倍，用mkfs.ext2 -b 4096 -i 4096 /dev/sda7格式一下，这个分区。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment353</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>john &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Mon, 24 Sep 2007 07:07:05 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment353</guid> 
<description>
<![CDATA[ 
	做个cron，定时清除/data/cache里的文件。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment390</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>犇犇 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 11 Oct 2007 12:07:03 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment390</guid> 
<description>
<![CDATA[ 
	哦<br/>好专业呀1<br/>以后常来你这里看看<br/>提高自己呀！
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment469</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>单纯de色狼 &lt;uu.xp3@163.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 23 Nov 2007 04:55:54 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment469</guid> 
<description>
<![CDATA[ 
	好向往你的工作 哈哈
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment988</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>zuoyang &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 25 Apr 2008 08:45:36 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment988</guid> 
<description>
<![CDATA[ 
	use reiserfs instead.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment1504</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>suchasplus &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 05 Sep 2008 08:11:21 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment1504</guid> 
<description>
<![CDATA[ 
	这图片是2950服务器的吧2U
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment2694</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>CRQ &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Tue, 03 Mar 2009 12:40:16 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment2694</guid> 
<description>
<![CDATA[ 
	在学inode，想用dd命令导出inode数据快的内用不过就是不知道怎麽做！！！
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment5054</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>肥猫 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 24 Feb 2010 06:39:39 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment5054</guid> 
<description>
<![CDATA[ 
	解决方案的最后一条不是很理解，使用性能高点的服务器占用的inode会减少?
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment5709</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>linuxpig &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Wed, 21 Apr 2010 07:25:49 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment5709</guid> 
<description>
<![CDATA[ 
	好像可以使用 mkfs来调整inode数值。
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment18810</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>coach factory outlet &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:09:48 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment18810</guid> 
<description>
<![CDATA[ 
	Today, following half a century, mentor leather-bases <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory outlet</a> continues to be the delicate craft of leather-based master is accountable for,Would you like to meet more friends, or go with the times? If yes, <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory online</a> is opening welcome doors to you.in the market you definitely can find various colorways that are designed in as well as the high quality that applied in. For most of you would like to come. So just come to our <a href="http://www.coachfactoryoutletao.net" target="_blank">coach factory outlet online</a> store to choose one.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment18811</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>louis vuitton sale &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:09:55 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment18811</guid> 
<description>
<![CDATA[ 
	Louis Vuitton belt at <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton sale</a> is one kind of fashion accessory with high cost performance among the Louis Vuitton accessories.Offering quality LV products with favorable prices, <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton outlet</a> store is at your service. Hurry up, or you can not seize the chance.in fact, <a href="http://www.louisvuittonoutletsalea.com" target="_blank">louis vuitton</a> is one of the most famous fashion design master.he opened the fist suitcase shop called after his name.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment18812</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>coach outlet online &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:10:02 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment18812</guid> 
<description>
<![CDATA[ 
	I heard of <a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet online</a> through the advertisement when I was shopping. And now I often brow the webpage and buy Coach bags online.It is a symbol regarding position not to mention nature.Here I would like to launch a excellent bags pertaining to business men.Which may be <a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet store</a>.<a href="http://www.coachoutletonlineao.net" target="_blank">coach outlet</a> has always been simple,durable style features to win consumers.The products are more flexible,with easy bleaching,wear characteristics,and simply use a damp cloth.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment18813</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>coach outlet, &lt;fgf@hotmail.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 17 May 2012 03:10:08 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment18813</guid> 
<description>
<![CDATA[ 
	Remember the <a href="http://www.coachoutletin.org" target="_blank">coach outlet</a> provide coach bags which won&#039;t be deteriorated into its overall styles by any means. It will maintain its looks, colors, and uniqueness for long time.<a href="http://www.coachoutletin.org" target="_blank">coach outlet store online</a> has been voted by Hour Detroit magazine readers as the Best of Detroit in their 12th annual readers&#039;poll.Lots of women like which usually amount normally include a <a href="http://www.coachoutletin.org" target="_blank">coach outlet online</a> ,it provides coziness to many girls that don&#039;t even think it is a great bushel of great interest directly to them.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment19962</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>xujie777 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 18 May 2012 08:15:07 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment19962</guid> 
<description>
<![CDATA[ 
	We aim to make all our customers satisfy with our products. You will find a variety of Men&#039;s fashion <a href="http://www.louisvuittonukd.org.uk" target="_blank">louis vuitton uk</a>, fashion Women&#039;s cheap Louis Vuitton bags in our store at affordable price.Thinking of interesting ways to cost a milestone birthday? <a href="http://www.louisvuittonukd.org.uk" target="_blank">louis vuitton online shop</a> had one of the most distinctive distinctive celebrations.bakery along with living room operated by means of about three moment <a href="http://www.louisvuittonukd.org.uk" target="_blank">louis vuitton online</a> Most effective Pastry Chef’s of the year Rammy Nominee Chef’s.
]]>
</description>
</item><item>
<link>http://zyan.cc/post/295/#blogcomment19963</link>
<title><![CDATA[[评论] Linux索引节点(inode)用满导致的一次故障[原创]]]></title> 
<author>xujie777 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 18 May 2012 08:15:13 +0000</pubDate> 
<guid>http://zyan.cc/post/295/#blogcomment19963</guid> 
<description>
<![CDATA[ 
	The choices are likely to be basically countless seeing that <a href="http://www.louisvuittonoutletbagsa.net" target="_blank">louis vuitton outlet</a> occurs with the help of completely new and also incredible concepts once in a while.Louis vuitton Wholesale Monogram Canvas HandbagsLouis Vuitton Collection Beach Handbags <a href="http://www.louisvuittonoutletbagsa.net" target="_blank">louis vuitton bags outlet</a> Damier Canvas HandbagsLouis vuitton Mahina HandbagsLouis Vuitton Monogram Mini Lin HandbagsLouis Vuitton Monogram Multicolore HandbagsLouis vuitton Monogram Vernis HandbagsLouis Vuitton Wholesale Epi Leather HandbagsLouis Vuitton For Men HandbagsLouis Vuitton Damier Canvas WalletsLouis Vuitton Epi Leather WalletsLouis Vuitton Monogram Canvas WalletsLouis Vuitton Monogram Vernis WalleLouis Vuitton ShoesLouis Vuitton Men wallets.As the Authentic Louis Vuitton are so high-priced, so came the <a href="http://www.louisvuittonoutletbagsa.net" target="_blank">louis vuitton handbags outlet</a>.
]]>
</description>
</item>
</channel>
</rss>