[Sheepdog] Small sheepdog howto

MORITA Kazutaka morita.kazutaka at lab.ntt.co.jp
Tue Jan 26 15:51:20 CET 2010


On Tue, Jan 26, 2010 at 7:55 PM, PCextreme B.V. - Wido den Hollander
<wido at pcextreme.nl> wrote:
> After turning off encryption in corosync and changing the /etc/hosts
> file to something like:
>
> 127.0.0.1       localhost
> 192.168.6.16    sheepdog01
>
>
> My sheepdog is working:
>
>  Idx   Node id (FNV-1a)    - Host:Port
> --------------------------------------------------
>  0     3207b6b8f585c0b6 - 192.168.6.32:7000
> * 1     4d90ac8be7d92a5c - 192.168.6.10:7000
>  2     8cf20c574f9095db - 192.168.6.17:7000
>  3     a9158087adfa4d46 - 192.168.6.16:7000
>
> So the hostname of the machine should map to the "external" IP of the
> machine.
>
Yes. To get the local machine IP address, sheepdog uses the result of
gethostname system call.
If DNS or /etc/hosts cannot resolve the hostname, sheepdog fails to get
IP address.

I'll add this /etc/hosts matter to FAQ list.

Thanks,

Kazutaka Morita



More information about the sheepdog mailing list