LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 11-04-2008, 03:30 PM   #1
heberrdacruz
LQ Newbie
 
Registered: Jun 2006
Location: Brazil
Distribution: Fedora 11
Posts: 23

Rep: Reputation: 15
NIS and autofs clients not working on Fedora 9


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.

Last edited by heberrdacruz; 11-04-2008 at 04:24 PM. Reason: Additional information
 
Old 11-05-2008, 02:40 PM   #2
heberrdacruz
LQ Newbie
 
Registered: Jun 2006
Location: Brazil
Distribution: Fedora 11
Posts: 23

Original Poster
Rep: Reputation: 15
Additional information

When this command is issued
Code:
[root@grape etc]# service ypbind restart
Shutting down NIS service:                                 [  OK  ]
Starting NIS service:                                      [  OK  ]
Binding NIS service: ......................................[FAILED]...........
this error message appears on /var/log/messages
Code:
Nov  5 16:32:26 grape ypbind: NIS server for domain +aaaa.bbbb.cccc.dddd is not responding.
And command
Code:
[root@grape etc]# ls /home/fruit
ls: cannot access /home/fruit: No such file or directory
produces
Code:
Nov  5 16:38:12 grape kernel: rpcbind: server orchard not responding, timed out
 
Old 11-28-2008, 08:13 AM   #3
heberrdacruz
LQ Newbie
 
Registered: Jun 2006
Location: Brazil
Distribution: Fedora 11
Posts: 23

Original Poster
Rep: Reputation: 15
Problem Solved

I found that out some time ago that the problem was with iptables, but only now I had the time to post the result until. I didn't know that iptables default settings had changed between Fedora since FC7.
 
  


Reply

Tags
automount, logs, nis


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 8, NIS, NFS, autofs b1f30 Fedora 1 12-15-2007 04:38 AM
SUSE 9 and 10 NIS clients with RedHat 8.0 NIS server not working fishsponge Linux - Networking 0 11-29-2005 08:43 AM
autofs not working in Fedora Core 2 mle Fedora 1 03-04-2005 10:40 AM
autofs with NIS lnchrs Linux - Networking 0 03-01-2005 04:36 PM
NIS problems: clients not able to use NIS served information SparceMatrix Linux - Networking 2 03-11-2003 11:40 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration