[sheepdog-users] dog node recovery and node with single nic
Liu Yuan
namei.unix at gmail.com
Mon Nov 11 16:00:43 CET 2013
On Mon, Nov 11, 2013 at 03:47:57PM +0100, Valerio Pachera wrote:
> 2013/11/11 Liu Yuan <namei.unix at gmail.com>
>
> >
> > How did you join the node with single nic?
> >
>
> sheep -n /var/sheep,/mnt/sheep/dsk01
>
> Its ip is 192.168.2.46 (eth0).
> Corosync it listening on that ip.
>
> The other nodes have an ip in class 192.168.2.0/24 (eth0).
> Corosync is listening on these ip(s).
> Then a second ip (eth1) in class 192.168.10.0/24.
> sheep -n /var/sheep /mnt/sheep/dsk01,/mnt/sheep/dsk02 \
> -i host=192.168.10.X port=3333
>
> Is this the case of using option -y, --myaddr ?
> sheep -n /var/sheep,/mnt/sheep/dsk01 -myaddr 192.168.2.46
$ sheep -n /var/sheep,/mnt/sheep/dsk01 # is okay
Since other nodes use 192.168.10.x/24 to transfer data so the new node will
try firstly try use 192.168.10.x/24 to other nodes, which will fail and fall
back to non-io nic that use 192.168.2.0/24. When other nodes tries to connect
to this node, they will use 192.168.2.0/24.
So I think everything will be okay, but the performance for newly joined node
will be impaired.
I am thinking of adding a patch to remove fallback-every-time when single NIC
node tries to talk to others.
Thanks
Yuan
More information about the sheepdog-users
mailing list