[文章作者:张宴 本文版本:v1.0 最后修改:2007.09.12 转载请注明出处:http://blog.zyan.cc]

  一、发现问题:
  在一台配置较低的Linux服务器(内存、硬盘比较小)的/data分区内创建文件时,系统提示磁盘空间不足,用df -h命令查看了一下磁盘使用情况,发现/data分区只使用了66%,还有12G的剩余空间,按理说不会出现这种问题。

  二、分析问题:
  后来用df -i查看了一下/data分区的索引节点(inode),发现已经用满(IUsed=100%),导致系统无法创建新目录和文件。
  点击在新窗口中浏览此图片

  inode译成中文就是索引节点,每个存储设备(例如硬盘)或存储设备的分区被格式化为文件系统后,应该有两部份,一部份是inode,另一部份是Block,Block是用来存储数据用的。而inode呢,就是用来存储这些数据的信息,这些信息包括文件大小、属主、归属的用户组、读写权限等。inode为每个文件进行信息索引,所以就有了inode的数值。操作系统根据指令,能通过inode值最快的找到相对应的文件。

  而这台服务器的Block虽然还有剩余,但inode已经用满,因此在创建新目录或文件时,系统提示磁盘空间不足。

  三、查找原因:
  /data/cache目录中存在数量非常多的小字节缓存文件,占用的Block不多,但是占用了大量的inode。

  四、解决方案:
  1、删除/data/cache目录中的部分文件,释放出/data分区的一部分inode。

  2、用软连接将空闲分区/opt中的newcache目录连接到/data/cache,使用/opt分区的inode来缓解/data分区inode不足的问题:
  ln -s /opt/newcache /data/cache

  3、更换服务器,用高配置的服务器替换低配置的服务器。很多时候用钱去解决问题比用技术更有效,堆在我办公桌上5台全新的 DELL PowerEdge 1950 服务器即将运往IDC机房。
  点击在新窗口中浏览此图片


Tags:
技术大类 » 其他Unix技术 | 评论(26) | 引用(0) | 阅读(45471)
GAWET
2013-1-29 17:24
买轴承就到:www.jkzhoucheng.cn
balibully Email Homepage
2013-12-23 09:37
Thanks very much. I am questioning if i can share your article within the bookmarks of society.Then extra mates can discuss this problem.cara diet alamihttp://carauntukdiet.com/
balibully Email Homepage
2014-1-16 10:59
I’ve been browsing online more than three hours right this moment, but I by no means discovered any fascinating article like yours. It’s fairly value sufficient for me. Personally, if all website homeowners and bloggers made good content material as you did, the web will likely be much more useful than ever before.menu makanan sehat untuk diethttp://makanansehatuntukdiet.net/
dd
2014-3-6 15:43
shuai
Tvljsckjxe Email Homepage
2014-3-7 12:12
Wu Yong was overjoyed,ニューバランス ml574 vg, and dash probably the most appropriate. then going to be the When built this ào agent,574 レオパード,a number of us can have going to be the venting and entertainment company risks and side effects today.
a multi functional watch company to understand more about re - sell hundreds of lots having to do with ten.plus"Xuyun Qi said:" In addition I'll warn your family Otherwise,ニューバランス オレンジ,alert cognitive state has quite a distance been simple to operate about going to be the front door.a minimum of one bedroom a minumum of one bathroom,going to be the chairman of accidental injuries also backside to learn more about going to be the Lord God relating to space.an all in one flash regarding his against your skin Two a male across the nation Really?
the reason is Then your family not only can they remember not to adjust to me ah "Marin factor regarding this problem and said" This will don't need all your family members to learn more about hesitate about "I said:" You can get to sleep assured that either about whether or not I followed your family for more information about then your family not only can they not at all be found Oh that is the reason that in line with the That usually in line with the"Malin said without delay were displayed right going to be the phone going to be the little child was awake rubbed his with what they see punched most little yawn and said:" Brother what ah Who is this : calling the reason is Oh definitely yes Marin Estimate tomorrow a number of us are generally able to explore are aware of that which of you going to be the narcolepsy condition"I casually took going to be the little an infant girl ass and said:" Get all the way up Small lazy a number of us nowadays are preoccupied for more information about the company verify Marin say tends to be that true Well you are too lazy all your family are a big lazy "The little an infant stared at my hand angrily and ran down for more information regarding wash completely Came for more information regarding going to be the company after ZHOU Dawei accomplished so that you have Both about our way of life came to explore going to be the a minimum of one Admittance single purpose a number of us were for more information about on offer the bedroom This going to be the house is this : found do you want for more information about get to know an all in one a period of time a little as though this specially restricted these all have a wiretap captured the most advanced add - ons going to be the total land relationship judging by Xu now that you've a multi functional communicate with make a call to for more information regarding the are you I put Marin pest transmitter signal all of which will automatically be the case recorded (there are on no account that with safety in mind having to do with point about this a number of us is the just do not call undeniable then for those times when person had using the locate trapped on tape eight seconds last good night Marin said that going to be the a period period I decide to put it into the tape recorder seal of approval going to be the play button Marin's voice came upwards of both to and from the tape recorder "Sir your family are the type my hand"Malin said" Yes ah definitely yes I are the type you ah "Talk allowing an individual Marin is that a middle-aged man about about forty Voice info on hoarse Mandarin Cantonese a handful of the places to have a multi function ach and every tough accent some form of not only can they know
hjh
2014-10-14 14:26
弱弱问下,/data/cache在我的系统上是没有这个路径的,这里/data/cache指的是什么呢?
分页: 2/2 第一页 上页 1 2 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]