<div dir="ltr"><div>Thanks for sharing.</div><div><br></div><div>Btw, I do believe that GlusterFS 3.2.x is much more stable than 3.4.x in production.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Dec 8, 2013 at 9:14 PM, Alex Pearson <span dir="ltr">&lt;<a href="mailto:alex@apics.co.uk" target="_blank">alex@apics.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
Just to assist anyone else having this issue, and so people can correct me if I&#39;m wrong...<br>
<br>
It would appear that replace-brick is &#39;horribly broken&#39; and should not be used in Gluster 3.4.  Instead a combination of &quot;remove-brick ... count X ... start&quot; should be used to remove the resilience from a volume and the brick, then &quot;add-brick ... count X&quot; to add the new brick.<br>

<br>
This does beg the question of why the hell a completely broken command was left in the &#39;stable&#39; release of the software.  This sort of thing really hurts Glusters credibility.<br>
<br>
Ref: <a href="http://www.gluster.org/pipermail/gluster-users/2013-August/036936.html" target="_blank">http://www.gluster.org/pipermail/gluster-users/2013-August/036936.html</a><br>
<br>
Cheers<br>
<span class="HOEnZb"><font color="#888888"><br>
Alex<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
----- Original Message -----<br>
From: &quot;Alex Pearson&quot; &lt;<a href="mailto:alex@apics.co.uk">alex@apics.co.uk</a>&gt;<br>
To: <a href="mailto:gluster-users@gluster.org">gluster-users@gluster.org</a><br>
Sent: Friday, 6 December, 2013 5:25:43 PM<br>
Subject: [Gluster-users] replace-brick failing - transport.address-family       not specified<br>
<br>
Hello,<br>
I have what I think is a fairly basic Gluster setup, however when I try to carry out a replace-brick operation it consistently fails...<br>
<br>
Here are the command line options:<br>
<br>
root@osh1:~# gluster volume info media<br>
<br>
Volume Name: media<br>
Type: Replicate<br>
Volume ID: 4c290928-ba1c-4a45-ac05-85365b4ea63a<br>
Status: Started<br>
Number of Bricks: 1 x 2 = 2<br>
Transport-type: tcp<br>
Bricks:<br>
Brick1: osh1.apics.co.uk:/export/sdc/media<br>
Brick2: osh2.apics.co.uk:/export/sdb/media<br>
<br>
root@osh1:~# gluster volume replace-brick media osh1.apics.co.uk:/export/sdc/media osh1.apics.co.uk:/export/WCASJ2055681/media start<br>
volume replace-brick: success: replace-brick started successfully<br>
ID: 60bef96f-a5c7-4065-864e-3e0b2773d7bb<br>
root@osh1:~# gluster volume replace-brick media osh1.apics.co.uk:/export/sdc/media osh1.apics.co.uk:/export/WCASJ2055681/media status<br>
volume replace-brick: failed: Commit failed on localhost. Please check the log file for more details.<br>
<br>
root@osh1:~# tail /var/log/glusterfs/bricks/export-sdc-media.log<br>
[2013-12-06 17:24:54.795754] E [name.c:147:client_fill_address_family] 0-media-replace-brick: transport.address-family not specified. Could not guess default value from (remote-host:(null) or transport.unix.connect-path:(null)) options<br>

[2013-12-06 17:24:57.796422] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x200) [0x7fb826e39f50]))) 0-dict: data is NULL<br>

[2013-12-06 17:24:57.796494] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x20b) [0x7fb826e39f5b]))) 0-dict: data is NULL<br>

[2013-12-06 17:24:57.796519] E [name.c:147:client_fill_address_family] 0-media-replace-brick: transport.address-family not specified. Could not guess default value from (remote-host:(null) or transport.unix.connect-path:(null)) options<br>

[2013-12-06 17:25:00.797153] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x200) [0x7fb826e39f50]))) 0-dict: data is NULL<br>

[2013-12-06 17:25:00.797226] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x20b) [0x7fb826e39f5b]))) 0-dict: data is NULL<br>

[2013-12-06 17:25:00.797251] E [name.c:147:client_fill_address_family] 0-media-replace-brick: transport.address-family not specified. Could not guess default value from (remote-host:(null) or transport.unix.connect-path:(null)) options<br>

[2013-12-06 17:25:03.797811] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x200) [0x7fb826e39f50]))) 0-dict: data is NULL<br>

[2013-12-06 17:25:03.797883] W [dict.c:1055:data_to_str] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(+0x528b) [0x7fb826e3428b] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(socket_client_get_remote_sockaddr+0x4e) [0x7fb826e3a25e] (--&gt;/usr/lib/x86_64-linux-gnu/glusterfs/3.4.1/rpc-transport/socket.so(client_fill_address_family+0x20b) [0x7fb826e39f5b]))) 0-dict: data is NULL<br>

[2013-12-06 17:25:03.797909] E [name.c:147:client_fill_address_family] 0-media-replace-brick: transport.address-family not specified. Could not guess default value from (remote-host:(null) or transport.unix.connect-path:(null)) options<br>

<br>
<br>
I&#39;ve tried placing the transport.address-family option in various places, however it hasn&#39;t helped.<br>
<br>
Any help would be very much appreciated.<br>
<br>
Thanks in advance<br>
<br>
Alex<br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
<br>
--<br>
This message has been scanned for viruses and<br>
dangerous content by MailScanner, and is<br>
believed to be clean.<br>
<br>
_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://supercolony.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://supercolony.gluster.org/mailman/listinfo/gluster-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Nguyen Viet Cuong<br>
</div>