title: glusterfs geo-replication - server with two interfaces - private IP advertised
body: <p>I have been trying to setup a geo replication with glusterfs servers. Everything worked as expected in my test environment, on my staging environment, but then i tried the production and got stuck. </p>
  
  <p>Let say I have</p>
  
  <p>gluster fs server is on public ip 1.1.1.1</p>
  
  <p>gluster fs slave is on public 2.2.2.2, but this IP is on interface eth1
  The eth0 on gluster fs slave server is 192.168.0.1. </p>
  
  <p>So when i start the command on 1.1.1.1 (firewall and ssh keys are set properly) </p>
  
  <pre><code>gluster volume geo-replication vol0 2.2.2.2::vol0 create push-pem
  </code></pre>
  
  <p>I get an error. </p>
  
  <p>Unable to fetch slave volume details. Please check the slave cluster and slave volume.
  geo-replication command failed</p>
  
  <p>The error is not that important in this case, the problem is the slave IP address</p>
  
  <pre><code>2015-03-16T11:41:08.101229+00:00 xxx kernel: TCP LOGDROP: IN= OUT=eth0 SRC=1.1.1.1 DST=192.168.0.1 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=24243 DF PROTO=TCP SPT=1015 DPT=24007 WINDOW=14600 RES=0x00 SYN URGP=0 
  </code></pre>
  
  <p>As you can see in the firewall drop log above, the port 24007 of the slave gluster daemon is advertised on private IP of the interface eth0 on slave server and should be the IP of the eth1 private IP. So master cannot connect and will time out</p>
  
  <p>Is there a way to force gluster server to advertise interface eth1 or bind to it only? </p>
  
  <p>I use cfengine and ansible to push configuration, so binding to Interface could be a better solution than IP, but whatever solution will do.</p>
  
  <p>Thank you in advance.</p>