{"id":455,"date":"2015-01-28T17:08:08","date_gmt":"2015-01-28T17:08:08","guid":{"rendered":"https:\/\/www.nicktailor.com\/?p=455"},"modified":"2022-10-21T11:40:17","modified_gmt":"2022-10-21T11:40:17","slug":"how-to-do-a-full-volume-heal-with-glusterfs","status":"publish","type":"post","link":"https:\/\/nicktailor.com\/tech-blog\/how-to-do-a-full-volume-heal-with-glusterfs\/","title":{"rendered":"How to do a full volume heal with glusterfs"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><strong>How to fix a split-brain fully<\/strong><\/span><\/p>\n<p>If you nodes get out of sync and you know which node is the correct one.<\/p>\n<p>So if you want node 2 to match Node 1<\/p>\n<p><strong>Follow the following setps:<\/strong><\/p>\n<ul>\n<li><em>gluster volume stop $volumename<\/em><\/li>\n<li><em>\/etc\/init.d\/glusterfsd stop<\/em><\/li>\n<li><em>rm -rf &nbsp;\/mnt\/lv_glusterfs\/brick\/*<\/em><\/li>\n<li><em>\/etc\/init.d\/glusterfsd start<\/em><\/li>\n<li><em>&#8220;gluster volume start $volumename force&#8221;<\/em><\/li>\n<li><em>&#8220;gluster volume heal $volumename full&#8221;<\/em><\/li>\n<\/ul>\n<p>You should see a successful output, and you will start to see the &#8220;\/mnt\/lv_glusterfs\/brick\/&#8221; directory now match node a<\/p>\n<p><strong>Finally you can run.<\/strong><\/p>\n<ul>\n<li><em style=\"color: #000000;\">gluster volume heal $volumename info split-brain <strong>(this will show if there are any splitbrains)<\/strong><\/em><\/li>\n<li><em style=\"color: #000000;\">gluster volume heal $volumename info heal-failed <strong>(this will show you files that failed the heal)<\/strong><\/em><\/li>\n<\/ul>\n<p>Cheers<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to fix a split-brain fully If you nodes get out of sync and you know which node is the correct one. So if you want node 2 to match Node 1 Follow the following setps: gluster volume stop $volumename \/etc\/init.d\/glusterfsd stop rm -rf &nbsp;\/mnt\/lv_glusterfs\/brick\/* \/etc\/init.d\/glusterfsd start &#8220;gluster volume start $volumename force&#8221; &#8220;gluster volume heal $volumename full&#8221; You should see<a href=\"https:\/\/nicktailor.com\/tech-blog\/how-to-do-a-full-volume-heal-with-glusterfs\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,30,138],"tags":[],"class_list":["post-455","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-glusterfs","category-linux"],"_links":{"self":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/455","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/comments?post=455"}],"version-history":[{"count":4,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/455\/revisions"}],"predecessor-version":[{"id":1604,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/posts\/455\/revisions\/1604"}],"wp:attachment":[{"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/media?parent=455"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/categories?post=455"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nicktailor.com\/tech-blog\/wp-json\/wp\/v2\/tags?post=455"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}