{"id":1408,"date":"2022-06-18T22:56:46","date_gmt":"2022-06-18T13:56:46","guid":{"rendered":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/?p=1408"},"modified":"2022-07-17T08:12:29","modified_gmt":"2022-07-16T23:12:29","slug":"tune2fs%e3%81%a7%e4%ba%88%e7%b4%84%e9%a0%98%e5%9f%9f%e3%82%921%e6%9c%aa%e6%ba%80%e3%81%ab%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/1408","title":{"rendered":"tune2fs\u3067\u4e88\u7d04\u9818\u57df\u30921%\u672a\u6e80\u306b\u3059\u308b"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>Ubuntu 20.04.4 LTS<\/li><\/ul>\n\n\n\n<p>ext4\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f5%\u306e\u9818\u57df\u304c\u4e88\u7d04\u3055\u308c\u308b\u3002<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>-m reserved-blocks-percentage<br>         Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem blocks for use by privileged processes is done to avoid filesystem fragmentation, and to allow system daemons, such as syslogd(8), to continue to function correctly after non-privileged processes are prevented from writing to the filesystem. Normally, <strong class=\"orange\">the default percentage of reserved blocks is 5%.<\/strong><\/p><cite>man tune2fs<\/cite><\/blockquote>\n\n\n\n<p>1TB\u306e\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3060\u3068\u4e88\u7d04\u9818\u57df\u306f50GB\u306b\u53ca\u3076\u3002\u3061\u3087\u3063\u3068\u8c4a\u5bcc\u306b\u904e\u304e\u308b\u304b\u3089\u3053\u308c\u3092<code>tune2fs<\/code>\u30670.5%\u306b\u3042\u305f\u308b5GB\u306b\u6291\u3048\u305f\u3044\u3051\u308c\u3069\u3082\u30011%\u672a\u6e80\u306f\u304d\u3063\u3068\u6307\u5b9a\u3067\u304d\u306a\u3044\u3068\u52dd\u624b\u306b\u601d\u3044\u8fbc\u3093\u3067\u3044\u305f\u3002\u3068\u3053\u308d\u304c\u5b9f\u65bd\u3057\u3066\u307f\u308b\u3068\u652f\u969c\u306a\u304f\u53d7\u3051\u5165\u308c\u3089\u308c\u305f\u3002\u5b9f\u65bd\u524d\u5f8c\u3067\u7a7a\u304d\u5bb9\u91cf\u3092\u78ba\u8a8d\u3059\u308b\u3068\u304a\u304a\u3080\u306d45GB\u7a0b\u5ea6\u5897\u52a0\u3057\u3066\u3044\u308b\u306e\u3067\u3088\u3055\u305d\u3046\u306a\u98a8\u60c5\u3067\u3042\u308b\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ df\nFilesystem                        1K-blocks     Used Available Use% Mounted on\n\/dev\/mapper\/ubuntu--vg-ubuntu--lv 959343696 35892184 <strong class=\"orange\">874649720<\/strong>   4% \/\n\n$ sudo tune2fs <strong class=\"green\">-m 0.5<\/strong> \/dev\/mapper\/ubuntu--vg-ubuntu--lv\ntune2fs 1.45.5 (07-Jan-2020)\nSetting reserved blocks percentage to 0.5% (1219635 blocks)\n\n$ df\nFilesystem                        1K-blocks     Used Available Use% Mounted on\n\/dev\/mapper\/ubuntu--vg-ubuntu--lv 959343696 35892188 <strong class=\"orange\">918556584<\/strong>   4% \/<\/pre>\n\n\n\n<h3 class=\"link\">\u53c2\u8003:<\/h3>\n<ul>\n <li><a href=\"https:\/\/wiki.archlinux.jp\/index.php\/Ext4#.E4.BA.88.E7.B4.84.E3.83.96.E3.83.AD.E3.83.83.E3.82.AF\">\u4e88\u7d04\u30d6\u30ed\u30c3\u30af<\/a><\/li>\n <li><a href=\"https:\/\/listman.redhat.com\/archives\/ext3-users\/2009-January\/msg00026.html\">Reserved block count for Large Filesystem<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 20.04.4 LTS ext4\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f5%\u306e\u9818\u57df\u304c\u4e88\u7d04\u3055\u308c\u308b\u3002 -m reserved-blocks-percentage Set the percentage of the filesystem which may only be allocated by privileged processes. Reserving some number of filesystem  &#8230; <a title=\"tune2fs\u3067\u4e88\u7d04\u9818\u57df\u30921%\u672a\u6e80\u306b\u3059\u308b\" class=\"read-more\" href=\"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/archives\/1408\" aria-label=\"tune2fs\u3067\u4e88\u7d04\u9818\u57df\u30921%\u672a\u6e80\u306b\u3059\u308b \u306b\u3064\u3044\u3066\u3055\u3089\u306b\u8aad\u3080\">\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":1350,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[157],"tags":[219,220],"class_list":["post-1408","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-tune2fs","tag-220"],"views":909,"_links":{"self":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/1408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=1408"}],"version-history":[{"count":0,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/posts\/1408\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media\/1350"}],"wp:attachment":[{"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=1408"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=1408"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www7390uo.sakura.ne.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=1408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}