> When we do this on node 1 everything works as expected:
> 
> On host unfiwcl1 --
> 
> unfiwcl1:/# echo $GEXEC_SVRS
> unfiwcl1 unfiwcl2 unfiwcl3 unfiwcl4
> unfiwcl1:/# gexec -n 0 hostname
> 1 unfiwcl2
> 0 unfiwcl1
> 2 unfiwcl3
> 3 unfiwcl4
> 
> However, when I run the same command on node 3 it doesn't work the same way:
> 
> On host unfiwcl3 --
> 
> unfiwcl3:/# echo $GEXEC_SVRS
> unfiwcl1 unfiwcl2 unfiwcl3 unfiwcl4
> unfiwcl3:/# gexec -n 0 hostname
> 1 unfiwcl2
> 0 unfiwcl1       <-- Gexec node 0 is cluster node "1"
> 3 unfiwcl4
> 2 unfiwcl1       <-- Gexec node 2 _should_ be "3" (the localhost)

Have you tried checking /etc/hosts on unfiwcl3? 

Since GEXEC_SVRS is set, the n nodes that get picked are simply the
first n hostnames/IPs defined in GEXEC_SVRS.  There's no need for
localhost to be first in the list.

bnc

Reply via email to