<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 8, 2016 at 11:11 AM, Ravishankar N <span dir="ltr">&lt;<a href="mailto:ravishankar@redhat.com" target="_blank">ravishankar@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 12/08/2016 10:43 AM, Atin Mukherjee wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
>From the log snippet:<br>
<br>
[2016-12-07 09:15:35.677645] I [MSGID: 106482] [glusterd-brick-ops.c:442:__gl<wbr>usterd_handle_add_brick] 0-management: Received add brick req<br>
[2016-12-07 09:15:35.677708] I [MSGID: 106062] [glusterd-brick-ops.c:494:__gl<wbr>usterd_handle_add_brick] 0-management: replica-count is 2<br>
[2016-12-07 09:15:35.677735] E [MSGID: 106291] [glusterd-brick-ops.c:614:__gl<wbr>usterd_handle_add_brick] 0-management:<br>
<br>
The last log entry indicates that we hit the code path in gd_addbr_validate_replica_coun<wbr>t ()<br>
<br>
                if (replica_count == volinfo-&gt;replica_count) {<br>
                        if (!(total_bricks % volinfo-&gt;dist_leaf_count)) {<br>
                                ret = 1;<br>
                                goto out;<br>
}<br>
                }<br>
<br>
</blockquote>
<br></span>
It seems unlikely that this snippet was hit because we print the E [MSGID: 106291] in the above message only if ret==-1.<br>
gd_addbr_validate_replica_coun<wbr>t() returns -1 and yet not populates err_str only when in volinfo-&gt;type doesn&#39;t match any of the known volume types, so volinfo-&gt;type is corrupted perhaps?<br></blockquote><div><br></div><div>You are right, I missed that ret is set to 1 here in the above snippet. <br><br></div><div>@Milos - Can you please provide us the volume info file from /var/lib/glusterd/vols/&lt;volname&gt;/ from all the three nodes to continue the analysis?<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-Ravi<div class="HOEnZb"><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@Pranith, Ravi - Milos was trying to convert a dist (1 X 1) volume to a replicate (1 X 2) using add brick and hit this issue where add-brick failed. The cluster is operating with 3.7.6. Could you help on what scenario this code path can be hit? One straight forward issue I see here is missing err_str in this path.<br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br></div><div>~ Atin (atinm)<br></div></div></div></div>
</div></div>