> -----Original Message-----
> From: Brent N. Chun [mailto:[EMAIL PROTECTED]
> > 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

Hi Brent,

Thanks for your reply.

We use NIS. Here is the config followed by a ping example.
(Same config as on the node that works as far as I can tell). This is Red
Hat 7.3.

unfiwcl3:/# cat /etc/hosts
 # Do not remove the following line, or various programs
 # that require network functionality will fail.
 127.0.0.1               unfiwcl3 localhost.localdomain localhost

Here's how nsswitch.conf is configured:

 unfiwcl3:/# cat /etc/nsswitch.conf | grep hosts
 hosts:      files nis dns

Here is what is in the NIS hosts database:

unfiwcl3:/# ypcat hosts | grep unfiwcl
 172.24.150.91   unfiwcl1
 172.24.150.92   unfiwcl2
 172.24.150.93   unfiwcl3
 172.24.150.94   unfiwcl4

... and nothing in DNS ...

unfiwcl3:/# host unfiwcl1
 Host unfiwcl1 not found: 3(NXDOMAIN)
unfiwcl3:/# host unfiwcl2
 Host unfiwcl2 not found: 3(NXDOMAIN)
unfiwcl3:/# host unfiwcl3
 Host unfiwcl3 not found: 3(NXDOMAIN)
unfiwcl3:/# host unfiwcl4
 Host unfiwcl4 not found: 3(NXDOMAIN)

Ping works:

unfiwcl3:/# ping -c 1 unfiwcl1
 PING unfiwcl1 (172.24.150.91) from 172.24.150.93 : 56(84) bytes of data.
 64 bytes from unfiwcl1 (172.24.150.91): icmp_seq=1 ttl=64 time=0.152 ms

 --- unfiwcl1 ping statistics ---
 1 packets transmitted, 1 received, 0% loss, time 0ms
 rtt min/avg/max/mdev = 0.152/0.152/0.152/0.000 ms

unfiwcl3:/# ping -c 1 unfiwcl2
 PING unfiwcl2 (172.24.150.92) from 172.24.150.93 : 56(84) bytes of data.
 64 bytes from unfiwcl2 (172.24.150.92): icmp_seq=1 ttl=255 time=0.221 ms

 --- unfiwcl2 ping statistics ---
 1 packets transmitted, 1 received, 0% loss, time 0ms
 rtt min/avg/max/mdev = 0.221/0.221/0.221/0.000 ms

unfiwcl3:/# ping -c 1 unfiwcl3
 PING unfiwcl3 (127.0.0.1) from 127.0.0.1 : 56(84) bytes of data.
 64 bytes from unfiwcl3 (127.0.0.1): icmp_seq=1 ttl=255 time=0.094 ms

 --- unfiwcl3 ping statistics ---
 1 packets transmitted, 1 received, 0% loss, time 0ms
 rtt min/avg/max/mdev = 0.094/0.094/0.094/0.000 ms

unfiwcl3:/# ping -c 1 unfiwcl4
 PING unfiwcl4 (172.24.150.94) from 172.24.150.93 : 56(84) bytes of data.
 64 bytes from unfiwcl4 (172.24.150.94): icmp_seq=1 ttl=255 time=0.327 ms

 --- unfiwcl4 ping statistics ---
 1 packets transmitted, 1 received, 0% loss, time 0ms
 rtt min/avg/max/mdev = 0.327/0.327/0.327/0.000 ms

unfiwcl3:/# gexec -n 0 hostname
 1 unfiwcl2
 0 unfiwcl1
 3 unfiwcl4
 2 unfiwcl1
unfiwcl3:/# echo $GEXEC_SVRS
 unfiwcl1 unfiwcl2 unfiwcl3 unfiwcl4
unfiwcl3:/#

Very strange...

--Karl



Reply via email to