I manage a small network (6 computers) that was working under Fedora 7. It is a private network (behind a firewall) and its access to the internet is through a proxy, and this is working. One machine was the NIS and autofs server.
Unfortunately, it crashed and I lost the /etc directory. I decided to use the opportunity to upgrade it to Fedora 9, but I have been unable to make the network work again. NIS seems to be working on the server, but I can neither mount the home directory using autofs nor bind the NIS clients to the server. Sometime ago, I had upgraded one client to Fedora 9 and it showed similar symptoms. At the time, I supposed it was due some incompatibility between the 2 versions. Now, that both the client and server have the same Fedora version, I see this is not the case.
I have included below some results I get. Although I can ping and even ssh the machines, they seem not so see each other
Code:
On client:
[root@grape ~]# rpcinfo
program version netid address service owner
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser
100000 2 local /var/run/rpcbind.sock portmapper superuser
100024 1 udp 0.0.0.0.231.115 status unknown
100024 1 tcp 0.0.0.0.159.134 status unknown
100007 2 udp 0.0.0.0.2.88 ypbind unknown
100007 1 udp 0.0.0.0.2.88 ypbind unknown
100007 2 tcp 0.0.0.0.2.91 ypbind unknown
100007 1 tcp 0.0.0.0.2.91 ypbind unknown
[root@grape ~]# rpcinfo orchard NIS server
rpcinfo: can't contact rpcbind: : RPC: Unable to receive; errno = No route to host
[root@grape ~]# rpcinfo garden NIS server for another network
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
program version netid address service owner
100000 2 tcp 0.0.0.0.0.111 portmapper unknown
100000 2 udp 0.0.0.0.0.111 portmapper unknown
100024 1 udp 0.0.0.0.128.2 status unknown
100024 1 tcp 0.0.0.0.139.246 status unknown
100004 2 udp 0.0.0.0.3.25 ypserv unknown
100004 1 udp 0.0.0.0.3.25 ypserv unknown
100004 2 tcp 0.0.0.0.3.28 ypserv unknown
100004 1 tcp 0.0.0.0.3.28 ypserv unknown
600100069 1 udp 0.0.0.0.3.34 fypxfrd unknown
600100069 1 tcp 0.0.0.0.3.36 fypxfrd unknown
100007 2 udp 0.0.0.0.3.46 ypbind unknown
100007 1 udp 0.0.0.0.3.46 ypbind unknown
100007 2 tcp 0.0.0.0.3.49 ypbind unknown
100007 1 tcp 0.0.0.0.3.49 ypbind unknown
100011 1 udp 0.0.0.0.3.26 rquotad unknown
100011 2 udp 0.0.0.0.3.26 rquotad unknown
100011 1 tcp 0.0.0.0.3.41 rquotad unknown
100011 2 tcp 0.0.0.0.3.41 rquotad unknown
100021 1 udp 0.0.0.0.128.3 nlockmgr unknown
100021 3 udp 0.0.0.0.128.3 nlockmgr unknown
100021 4 udp 0.0.0.0.128.3 nlockmgr unknown
100003 2 udp 0.0.0.0.8.1 nfs unknown
100003 3 udp 0.0.0.0.8.1 nfs unknown
100003 4 udp 0.0.0.0.8.1 nfs unknown
100021 1 tcp 0.0.0.0.224.54 nlockmgr unknown
100021 3 tcp 0.0.0.0.224.54 nlockmgr unknown
100021 4 tcp 0.0.0.0.224.54 nlockmgr unknown
100003 2 tcp 0.0.0.0.8.1 nfs unknown
100003 3 tcp 0.0.0.0.8.1 nfs unknown
100003 4 tcp 0.0.0.0.8.1 nfs unknown
100005 1 udp 0.0.0.0.3.64 mountd unknown
100005 1 tcp 0.0.0.0.3.76 mountd unknown
100005 2 udp 0.0.0.0.3.64 mountd unknown
100005 2 tcp 0.0.0.0.3.76 mountd unknown
100005 3 udp 0.0.0.0.3.64 mountd unknown
100005 3 tcp 0.0.0.0.3.76 mountd unknown
100009 1 udp 0.0.0.0.3.214 yppasswdd unknown
[root@grape ~]# service ypbind restart
Shutting down NIS service: [ OK ]
Starting NIS service: [ OK ]
Binding NIS service: ......................................[FAILED]...........
[root@grape ~]# service ypbind status
ypbind (pid 9491) is running...
[root@grape ~]# rpcinfo pear another client
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
YPBINDPROC_DOMAIN: Domain not bound
rpcinfo: can't contact rpcbind: : RPC: Unable to receive; errno = No route to host
[root@grape ~]# cd /etc
[root@grape etc]# grep ^[^#] yp.conf
domain +aaaa.bbbb.cccc.dddd server orchard
[root@grape etc]# grep ^[^#] nsswitch.conf
passwd: files nis
shadow: files nis
group: files nis
hosts: files nis dns
bootparams: nisplus [NOTFOUND=return] files
ethers: files
netmasks: files
networks: files
protocols: files
rpc: files
services: files
netgroup: files nis
publickey: nisplus
automount: files nis
aliases: files nisplus
[root@grape etc]# domainname
+aaaa.bbbb.cccc.dddd
On server:
[root@orchard ~]# rpcinfo
program version netid address service owner
100000 4 tcp 0.0.0.0.0.111 portmapper superuser
100000 3 tcp 0.0.0.0.0.111 portmapper superuser
100000 2 tcp 0.0.0.0.0.111 portmapper superuser
100000 4 udp 0.0.0.0.0.111 portmapper superuser
100000 3 udp 0.0.0.0.0.111 portmapper superuser
100000 2 udp 0.0.0.0.0.111 portmapper superuser
100000 4 local /var/run/rpcbind.sock portmapper superuser
100000 3 local /var/run/rpcbind.sock portmapper superuser
100000 2 local /var/run/rpcbind.sock portmapper superuser
100024 1 udp 0.0.0.0.153.33 status unknown
100024 1 tcp 0.0.0.0.222.2 status unknown
600100069 1 udp 0.0.0.0.2.123 fypxfrd unknown
600100069 1 tcp 0.0.0.0.2.125 fypxfrd unknown
100011 1 udp 0.0.0.0.3.107 rquotad unknown
100011 2 udp 0.0.0.0.3.107 rquotad unknown
100011 1 tcp 0.0.0.0.3.107 rquotad unknown
100011 2 tcp 0.0.0.0.3.107 rquotad unknown
100021 1 udp 0.0.0.0.141.170 nlockmgr unknown
100021 3 udp 0.0.0.0.141.170 nlockmgr unknown
100021 4 udp 0.0.0.0.141.170 nlockmgr unknown
100003 2 udp 0.0.0.0.8.1 nfs unknown
100003 3 udp 0.0.0.0.8.1 nfs unknown
100003 4 udp 0.0.0.0.8.1 nfs unknown
100021 1 tcp 0.0.0.0.176.208 nlockmgr unknown
100021 3 tcp 0.0.0.0.176.208 nlockmgr unknown
100021 4 tcp 0.0.0.0.176.208 nlockmgr unknown
100003 2 tcp 0.0.0.0.8.1 nfs unknown
100003 3 tcp 0.0.0.0.8.1 nfs unknown
100003 4 tcp 0.0.0.0.8.1 nfs unknown
100005 1 udp 0.0.0.0.220.209 mountd unknown
100005 1 tcp 0.0.0.0.209.184 mountd unknown
100005 2 udp 0.0.0.0.220.209 mountd unknown
100005 2 tcp 0.0.0.0.209.184 mountd unknown
100005 3 udp 0.0.0.0.220.209 mountd unknown
100005 3 tcp 0.0.0.0.209.184 mountd unknown
100009 1 udp 0.0.0.0.3.20 yppasswdd unknown
100007 2 udp 0.0.0.0.2.148 ypbind unknown
100007 1 udp 0.0.0.0.2.148 ypbind unknown
100007 2 tcp 0.0.0.0.2.151 ypbind unknown
100007 1 tcp 0.0.0.0.2.151 ypbind unknown
100004 2 udp 0.0.0.0.3.113 ypserv unknown
100004 1 udp 0.0.0.0.3.113 ypserv unknown
100004 2 tcp 0.0.0.0.3.116 ypserv unknown
100004 1 tcp 0.0.0.0.3.116 ypserv unknown
Regarding autofs, unfortunately I could gather even less information:
Code:
On client:
[root@grape etc]# grep ^[^#] auto.master
/home /etc/auto.home --timeout=60
[root@grape etc]# grep ^[^#] auto.home
fruit -exec,dev,suid,rw,soft orchard:/home/fruit
[root@grape etc]# ls /home/fruit The error message only appears after several minutes
ls: cannot access /home/fruit: No such file or directory
Server:
[root@orchard etc]# grep ^[^#] exports
/home/fruit 192.168.30.0/255.255.255.0(rw,sync,no_root_squash)
A direct mount doesn't work either.
Code:
[root@grape etc]# service autofs stop
Stopping automount: [ OK ]
[root@grape etc]# mkdir /home/fruit
[root@grape etc]# mount orchard:/home/fruit /home/fruit
mount.nfs: internal error
Any help will be greatly appreciated.