<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><br>This is the format which we have followed in this command . There could be a case when you want to <br>keep the same bricks which you have added using IP address but now instead of IP address you want that all the bricks should have hostname.<br>In this case you have to mention both the source as well as destination, even if logically both represent the same node.<br><br>There could also be other cases which I don't remember now.<br><br><br><br><br><br><br><br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Gandalf Corvotempesta" <gandalf.corvotempesta@gmail.com><br><b>To: </b>"Ravishankar N" <ravishankar@redhat.com><br><b>Cc: </b>gluster-users@gluster.org<br><b>Sent: </b>Tuesday, January 10, 2017 2:00:44 PM<br><b>Subject: </b>Re: [Gluster-users] Replace replicate in single brick<br><br><div dir="auto"><div class="gmail_extra" dir="auto"><div class="gmail_quote">Il 10 gen 2017 05:59, "Ravishankar N" <<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>> ha scritto:<br><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div class="quoted-text">
<div class="m_3837751820612318307moz-cite-prefix">If you are using glusterfs 3.9 and want to give the replaced brick
the same name as the old one, there is the reset-brick command. The
commit message in <a class="m_3837751820612318307moz-txt-link-freetext" href="http://review.gluster.org/#/c/12250/" target="_blank">http://review.gluster.org/#/c/12250/</a> gives you
some information on the steps to run.<br></div></div>
If you are okay with using a different name for the brick, then
there is `gluster volume replace-brick <volname>
<hostname:old brick> <hostname:new brick> commit force`.
I think this command works from glusterfs 3.7.10 onward.<br>
-Ravi<br></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">If reset-brick is used to replace a brick with another with the same name, why this command ask for both source and destination brick name? </div><div dir="auto">It would always be the same, if different, replace-brick command should be used.</div><div class="gmail_extra" dir="auto"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div></div></blockquote></div></div></div>
<br>_______________________________________________<br>Gluster-users mailing list<br>Gluster-users@gluster.org<br>http://www.gluster.org/mailman/listinfo/gluster-users</div><br/></div></body></html>