{"id":58,"date":"2009-04-27T18:49:00","date_gmt":"2009-04-27T16:49:00","guid":{"rendered":"http:\/\/www.hauweele.net\/~gawen\/blog\/?p=58"},"modified":"2014-05-12T19:44:48","modified_gmt":"2014-05-12T17:44:48","slug":"watch-your-inodes","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=58","title":{"rendered":"Watch your inodes !"},"content":{"rendered":"<p>Today I got a strange bug doing <span style=\"font-style: italic;\">apt-get update<\/span> which gave me <span style=\"font-style: italic;\">404 error<\/span><span style=\"font-weight: bold;\"> <\/span>for each repository. At first I though it was the <span style=\"font-style: italic;\">apt<\/span> package which ran out-of-date but when I tried to install it manually <span style=\"font-style: italic;\">dpkg <\/span>said something like : <span style=\"font-style: italic;\">&#8220;No space left on device&#8221;<\/span>. Trying to touch something achieved the same result. So I did :<br \/><span style=\"color: #660000; font-family: courier new; font-size: 85%;\"><\/span><\/p>\n<blockquote><p><span style=\"color: #660000; font-family: courier new; font-size: 85%;\"># df -h \/var<\/span><\/p><\/blockquote>\n<p>But it said that about 1GB were available on that filesystem. Then <span style=\"font-family: courier new;\">:<\/span><br \/><span style=\"color: #660000; font-family: courier new; font-size: 85%;\"><\/span><\/p>\n<blockquote style=\"font-family: courier new;\"><p><span style=\"color: #660000; font-size: 85%;\"># tune2fs -l \/dev\/sda11 | grep &#8220;Free&#8221;<br \/>Free blocks:              276171<br \/>Free inodes:              0<\/span><\/p><\/blockquote>\n<p>There were no <span style=\"font-style: italic;\">inodes<\/span> availables on the filesystem. I always though that filesystem have enough <span style=\"font-style: italic;\">inodes<\/span> in it so we don&#8217;t have to care about that but actually <span style=\"font-style: italic;\">squid<\/span> created many small files, worrying about <span style=\"font-style: italic;\">blocks<\/span> usage but not about <span style=\"font-style: italic;\">inodes<\/span> usage. I got it fixed by deleting the squid&#8217;s cache directory and setting <span style=\"font-style: italic;\">squid.conf<\/span> to use less top-level and sub-level directories.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I got a strange bug doing apt-get update which gave me 404 error for each repository. At first I though it was the apt package which ran out-of-date but when I tried to install it manually dpkg said something &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=58\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[248,6,249],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-inode","tag-linux","tag-squid"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=58"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}