Use replace brick commit force. <div><br></div><div>@Pranith/@Anuradha - post this will self heal be triggered automatically or a manual trigger is needed?<br><br>On Thursday 4 August 2016, Andres E. Moya &lt;<a href="mailto:amoya@moyasolutions.com">amoya@moyasolutions.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>Does anyone else have input?</div><div><br></div><div>we are currently only running off 1 node and one node is offline in replicate brick.</div><div><br></div><div>we are not experiencing any downtime because the 1 node is up.</div><div><br></div><div>I do not understand which is the best way to bring up a second node.</div><div><br></div><div>Do we just re create a file system on the node that is down and the mount points and allow gluster to heal( my concern with this is whether the node that is down will some how take precedence and wipe out the data on the healthy node instead of vice versa)</div><div><br></div><div>Or do we fully wipe out the config on the node that is down, re create the file system and re add the node that is down into gluster using the add brick command replica 3, and then wait for it to heal then run the remove brick command for the failed brick</div><div><br></div><div>which would be the safest and easiest to accomplish</div><div><br></div><div>thanks for any input</div><div><br></div><div><br></div><br><hr><div><b>From: </b>&quot;Leno Vo&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;lenovolastname@yahoo.com&#39;);" target="_blank">lenovolastname@yahoo.com</a>&gt;<br><b>To: </b>&quot;Andres E. Moya&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;amoya@moyasolutions.com&#39;);" target="_blank">amoya@moyasolutions.com</a>&gt;<br><b>Cc: </b>&quot;gluster-users&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gluster-users@gluster.org&#39;);" target="_blank">gluster-users@gluster.org</a>&gt;<br><b>Sent: </b>Tuesday, August 2, 2016 6:45:27 PM<br><b>Subject: </b>Re: [Gluster-users] Failed file system<br></div><br><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10px"><div dir="ltr"><span>if you don&#39;t want any downtime (in the case that your node 2 really die), you have to create a new gluster san (if you have the resources of course, 3 nodes as much as possible this time), and then just migrate your vms (or files), therefore no downtime but you have to cross your finger that the only node will not die too...  also without sharding the vm migration especially an rdp one, will be slow access from users till it migrated.</span></div><div dir="ltr"><span><br></span></div><div dir="ltr">you have to start testing sharding, it&#39;s fast and cool...</div><div dir="ltr"><span><br></span></div><div dir="ltr"><span><br></span></div> <div><br><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><span size="2" face="Arial" style="font-family:Arial;font-size:small"> On Tuesday, August 2, 2016 2:51 PM, Andres E. Moya &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;amoya@moyasolutions.com&#39;);" target="_blank">amoya@moyasolutions.com</a>&gt; wrote:<br></span></div>  <br><br> <div><div><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div>couldnt we just add a new server by</div><div><br clear="none"></div><div>gluster peer probe</div><div>gluster volume add-brick replica 3 (will this command succeed with 1 current failed brick?)</div><div><br clear="none"></div><div>let it heal, then </div><div><span style="color:#ffffff;font-family:&#39;Source Code Pro&#39;,&#39;Courier New&#39;,monospace;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:20px;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;display:inline;float:none;background-color:#3b3f45"></span><div style="clear:both"><br clear="none"></div></div><div>gluster volume remove remove-brick</div><hr><div><div><b>From: </b>&quot;Leno Vo&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;lenovolastname@yahoo.com&#39;);" target="_blank">lenovolastname@yahoo.com</a>&gt;<br clear="none"><b>To: </b>&quot;Andres E. Moya&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;amoya@moyasolutions.com&#39;);" target="_blank">amoya@moyasolutions.com</a>&gt;, &quot;gluster-users&quot; &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gluster-users@gluster.org&#39;);" target="_blank">gluster-users@gluster.org</a>&gt;<br clear="none"><b>Sent: </b>Tuesday, August 2, 2016 1:26:42 PM<br clear="none"><b>Subject: </b>Re: [Gluster-users] Failed file system<br clear="none"></div><div><br clear="none"></div><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10px"><div dir="ltr"><span>you need to have a downtime to recreate the second node, two nodes is actually not good for production and you should have put raid 1 or raid 5 as your gluster storage, when you recreate the second node you might try running some VMs that need to be up and rest of vm need to be down but stop all backup and if you have replication, stop it too.  if you have 1G nic, 2cpu and less 8Gram, then i suggest all turn off the VMs during recreation of second node. someone said if you have sharding with 3.7.x, maybe some vip vm can be up...</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>if it just a filesystem, then just turn off the backup service until you recreate the second node. depending on your resources and how big is your storage, it might be hours to recreate it and even days...</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr"><span>here&#39;s my process on recreating the second or third node (copied and modifed from the net),</span></div><div dir="ltr"><span><br clear="none"></span></div><div dir="ltr">#make sure partition is already added!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</div><div dir="ltr">This procedure is for replacing a failed server, IF your newly installed server has the same hostname as the failed one:</div><div dir="ltr"><br clear="none"></div><div dir="ltr">(If your new server will have a different hostname, see this article instead.)</div><div dir="ltr"><br clear="none"></div><div dir="ltr">For purposes of this example, the server that crashed will be server3 and the other servers will be server1 and server2</div><div dir="ltr"><br clear="none"></div><div dir="ltr">On both server1 and server2, make sure hostname server3 resolves to the correct IP address of the new replacement server.</div><div dir="ltr">#On either server1 or server2, do</div><div dir="ltr">grep server3 /var/lib/glusterd/peers/*</div><div dir="ltr"><br clear="none"></div><div dir="ltr">This will return a uuid followed by &quot;:hostname1=server3&quot;</div><div dir="ltr"><br clear="none"></div><div dir="ltr">#On server3, make sure glusterd is stopped, then do</div><div dir="ltr">echo UUID={uuid from previous step}&gt;/var/lib/glusterd/<a href="http://glusterd.info" target="_blank">glusterd.info</a></div><div dir="ltr"><br clear="none"></div><div dir="ltr">#actual testing below,</div><div dir="ltr">[root@node1 ~]# cat /var/lib/glusterd/<a href="http://glusterd.info" target="_blank">glusterd.info</a></div><div dir="ltr">UUID=4b9d153c-5958-4dbe-8f91-7b5002882aac</div><div dir="ltr">operating-version=30710</div><div dir="ltr">#the second line is new.........  maybe not needed...</div><div dir="ltr"><br clear="none"></div><div dir="ltr">On server3:</div><div dir="ltr">make sure that all brick directories are created/mounted</div><div dir="ltr">start glusterd</div><div dir="ltr">peer probe one of the existing servers</div><div dir="ltr"><br clear="none"></div><div dir="ltr">#restart glusterd, check that full peer list has been populated using</div><div dir="ltr"> gluster peer status</div><div dir="ltr"><br clear="none"></div><div dir="ltr">(if peers are missing, probe them explicitly, then restart glusterd again)</div><div dir="ltr">#check that full volume configuration has been populated using</div><div dir="ltr"> gluster volume info</div><div dir="ltr"><br clear="none"></div><div dir="ltr">if volume configuration is missing, do </div><div dir="ltr">#on the other node</div><div dir="ltr">gluster volume sync &quot;replace-node&quot; all</div><div dir="ltr"><br clear="none"></div><div dir="ltr">#on the node to be replaced</div><div dir="ltr">setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/v1/info | cut -d= -f2 | sed &#39;s/-//g&#39;) /gfs/b1/v1</div><div dir="ltr">setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/v2/info | cut -d= -f2 | sed &#39;s/-//g&#39;) /gfs/b2/v2</div><div dir="ltr">setfattr -n trusted.glusterfs.volume-id -v 0x$(grep volume-id /var/lib/glusterd/vols/config/info | cut -d= -f2 | sed &#39;s/-//g&#39;) /gfs/b1/config/c1</div><div dir="ltr"><br clear="none"></div><div dir="ltr">mount -t glusterfs localhost:config /data/data1</div><div dir="ltr"><br clear="none"></div><div dir="ltr">#install ctdb if not yet installed and put it back online, use the step on creating the ctdb config but </div><div dir="ltr">#use your common sense not to deleted or modify current one.</div><div dir="ltr"><br clear="none"></div><div dir="ltr">gluster vol heal v1 full</div><div dir="ltr">gluster vol heal v2 full</div><div dir="ltr"></div><div dir="ltr">gluster vol heal config full</div><div dir="ltr"><br clear="none"></div> <div><br clear="none"><br clear="none"></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:10px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px"> <div dir="ltr"><span style="font-family:Arial;font-size:small"> On Tuesday, August 2, 2016 11:57 AM, Andres E. Moya &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;amoya@moyasolutions.com&#39;);" target="_blank">amoya@moyasolutions.com</a>&gt; wrote:<br clear="none"></span></div>  <br clear="none"><br clear="none"> <div>Hi, we have a 2 node replica setup<br clear="none">on 1 of the nodes the file system that had the brick on it failed, not the OS<br clear="none">can we re create a file system and mount the bricks on the same mount point<br clear="none"><br clear="none">what will happen, will the data from the other node sync over, or will the failed node wipe out the data on the other mode?<br clear="none"><br clear="none">what would be the correct process?<br clear="none"><br clear="none">Thanks in advance for any help<br clear="none">_______________________________________________<br clear="none">Gluster-users mailing list<br clear="none"><a rel="nofollow" shape="rect" href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;Gluster-users@gluster.org&#39;);" target="_blank">Gluster-users@gluster.org</a><br clear="none"><a rel="nofollow" shape="rect" href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br clear="none"><br clear="none"><br clear="none"></div>  </div> </div>  </div></div><br clear="none"></div></div></div></div></div><br><br></div>  </div> </div>  </div></div><br></div></div></div></blockquote></div><br><br>-- <br>--Atin<br>