<div>Makes sense.</div><div><br><div class="gmail_quote"><div>On Thu, 16 Mar 2017 at 06:51, Raghavendra Talur <<a href="mailto:rtalur@redhat.com">rtalur@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="gmail_msg">
<br class="gmail_msg">
In the last few releases, we have changed replace-brick command such<br class="gmail_msg">
that it can be called only with "commit force" option. When invoked,<br class="gmail_msg">
this is what happens to the volume:<br class="gmail_msg">
<br class="gmail_msg">
a. distribute only volume: the given brick is replaced with a empty<br class="gmail_msg">
brick with 100% probability of data loss.<br class="gmail_msg">
b. distribute-replicate: the given brick is replaced with a empty<br class="gmail_msg">
brick and self heal is triggered. If admin is wise enough to monitor<br class="gmail_msg">
self heal status before another replace-brick command, data is safe.<br class="gmail_msg">
c. distribute-disperse: same as above in distribute-replicate<br class="gmail_msg">
<br class="gmail_msg">
My proposal is to fully deprecate replace-brick command for<br class="gmail_msg">
"distribute only" volumes. It should print out a error "The right way<br class="gmail_msg">
to replace brick for distribute only volume is to add brick, wait for<br class="gmail_msg">
rebalance to complete and remove brick" and return a "-1".<br class="gmail_msg">
<br class="gmail_msg">
Thoughts?<br class="gmail_msg">
<br class="gmail_msg">
Thanks,<br class="gmail_msg">
Raghavendra Talur<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Gluster-users mailing list<br class="gmail_msg">
<a href="mailto:Gluster-users@gluster.org" class="gmail_msg" target="_blank">Gluster-users@gluster.org</a><br class="gmail_msg">
<a href="http://lists.gluster.org/mailman/listinfo/gluster-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.gluster.org/mailman/listinfo/gluster-users</a><br class="gmail_msg">
</blockquote></div></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature">--Atin</div>