{"id":1397,"date":"2014-10-14T10:00:19","date_gmt":"2014-10-14T01:00:19","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=1397"},"modified":"2014-10-08T20:47:56","modified_gmt":"2014-10-08T11:47:56","slug":"glusterfs%e3%81%ae%e3%81%be%e3%81%a8%e3%82%81-%e3%82%b5%e3%83%bc%e3%83%90%e7%b7%a8","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/glusterfs%e3%81%ae%e3%81%be%e3%81%a8%e3%82%81-%e3%82%b5%e3%83%bc%e3%83%90%e7%b7%a8\/","title":{"rendered":"Glusterfs\u306e\u307e\u3068\u3081 \u30b5\u30fc\u30d0\u7de8"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306fkobata\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fGlusterfs\u306e\u307e\u3068\u3081 \u30b5\u30fc\u30d0\u7de8\u3067\u3059\u3002<\/p>\n<h1>Glusterfs\u3068\u306f\u4f55\u304b\uff1f<\/h1>\n<h3>\u69d8\u3005\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u69cb\u6210\u65b9\u5f0f\u3092\u7d44\u3081\u308b\u5206\u6563\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059<\/h3>\n<ul>\n<li>\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u2192\u5197\u9577\u5316<\/li>\n<li>\u30b9\u30c8\u30e9\u30a4\u30d4\u30f3\u30b0\u2192\u8ca0\u8377\u5206\u6563<\/li>\n<li>\u5206\u6563\u2192\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0<\/h2>\n<\/li>\n<\/ul>\n<p>GlusterFS\u306f\u8a2d\u5b9a\u304c\u5bb9\u6613\u3067\u3001\u7528\u9014\u306b\u3042\u308f\u305b\u3066\u6a5f\u80fd\u3092\u9078\u629e\u3067\u304d\u308b\u306e\u304c\u826f\u3044\u3068\u3053\u308d\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u30b5\u30fc\u30d0\u3092\u591a\u6570\u7d44\u307f\u5408\u308f\u305b\u308b\u3053\u3068\u3067\u3001\u5927\u898f\u6a21\u306a\u5206\u6563\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u69cb\u7bc9\u3067\u304d\u307e\u3059\u3002<br \/>\n\u30b9\u30b1\u30fc\u30e9\u30d6\u30eb\u306b\u30af\u30e9\u30a6\u30c9\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u306b\u306f1\u3064\u306e\u89e3\u6c7a\u7b56\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>\u30b5\u30fc\u30d0\u8a2d\u5b9a\u65b9\u6cd5<\/h1>\n<p>\u4ed6\u306b\u3082\u3084\u308a\u65b9\u304c\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u304c\u3054\u53c2\u8003\u307e\u3067\u306b\u3002<\/p>\n<h3>1.\u30b9\u30c8\u30ec\u30fc\u30b8\u9818\u57df\u3092mkfs<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nmkfs.ext4 -I 512 \/dev\/sdb\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>2.\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ncurl -o \/etc\/yum.repos.d\/glusterfs-epel.repo http:\/\/download.gluster.org\/pub\/gluster\/glusterfs\/3.5\/LATEST\/EPEL.repo\/glusterfs-epel.repo\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>3.glusterserver\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nyum install glusterfs-server glusterfs-geo-replication\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u8d77\u52d5\uff01<\/h4>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nchkconfig glusterd on\nservice glusterd start\n\nyum install nfs-utils rpcbind\nchkconfig rpcbind on\nservice rpcbind start\n<\/pre>\n<p>\u203b\u30dc\u30ea\u30e5\u30fc\u30e0\u78ba\u8a8d\uff1agluster vol status<br \/>\n\u203b\u30dc\u30ea\u30e5\u30fc\u30e0\u69cb\u6210\uff1agluster vol info<\/p>\n<p>&nbsp;<\/p>\n<h3>4.\u30b7\u30b9\u30c6\u30e0\u30d1\u30e9\u30e1\u30fc\u30bf\u306e\u8a2d\u5b9a<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsysctl -w vm.swappiness=10;\nsysctl -w vm.dirty_background_ratio=1;\nsysctl -w kernel.sched_wakeup_granularity_ns=15\nfor i in $(ls -d \/sys\/block\/*\/queue\/iosched 2&amp;gt;\/dev\/null); do\n    iosched_dir=$(echo $i | awk &amp;#039;\/iosched\/ {print $1}&amp;#039;)\n    &#x5B; -z $iosched_dir ] &amp;amp;&amp;amp; {\n     continue\n    }\n    path=$(dirname $iosched_dir)\n    &#x5B; -f $path\/scheduler ] &amp;amp;&amp;amp; {\n     echo &amp;quot;deadline&amp;quot; &amp;gt; $path\/scheduler\n    }\n    &#x5B; -f $path\/nr_requests ] &amp;amp;&amp;amp; {\n     echo &amp;quot;256&amp;quot; &amp;gt; $path\/nr_requests\n    }\ndone\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>5.hosts\u5909\u66f4<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n\/etc\/hosts\n192.168.122.31    kobata02\n\n\u2193\u30de\u30a6\u30f3\u30c8\nmkdir -p \/bricks\nmount \/dev\/sdb \/bricks\n\nmkdir -p \/bricks\/kobata\ngluster vol create kobata kobata02:\/bricks\/kobata\n<\/pre>\n<p>\u672c\u65e5\u306f\u3053\u3053\u307e\u3067\u3002\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u8a2d\u5b9a\u3068\u30dc\u30ea\u30e5\u30fc\u30e0\u69cb\u6210\u65b9\u5f0f\u306f\u307e\u305f\u6295\u7a3f\u3057\u307e\u3059\u3002<br \/>\nglusterfs\u306f\u30b9\u30d7\u30ea\u30c3\u30c8\u30d6\u30ec\u30a4\u30f3\u304c\u767a\u751f\u3057\u305f\u308a\u3001\u901f\u5ea6\u304c\u3067\u306a\u3044\u306a\u3069\u3082\u3042\u308b\u3088\u3046\u306a\u306e\u3067\u7d44\u3080\u6642\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u304b\u3068\u3002<\/p>\n<p>\u4ee5\u4e0a\u3001\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306fkobata\u3067\u3059\u3002 \u4eca\u56de\u306fGlusterfs\u306e\u307e\u3068\u3081 \u30b5\u30fc\u30d0\u7de8\u3067\u3059\u3002 Glusterfs\u3068\u306f\u4f55\u304b\uff1f \u69d8\u3005\u306a\u30dc\u30ea\u30e5\u30fc\u30e0\u69cb\u6210\u65b9\u5f0f\u3092\u7d44\u3081\u308b\u5206\u6563\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u3067\u3059 \u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u2192\u5197\u9577\u5316 \u30b9\u30c8\u30e9\u30a4\u30d4\u30f3\u30b0\u2192\u8ca0\u8377\u5206\u6563 &#8230;<\/p>\n","protected":false},"author":6,"featured_media":427,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"","_original_post":"","footnotes":""},"categories":[29],"tags":[],"class_list":{"0":"post-1397","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-linux","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/1397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=1397"}],"version-history":[{"count":12,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/1397\/revisions"}],"predecessor-version":[{"id":1445,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/1397\/revisions\/1445"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/427"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=1397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=1397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=1397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}