Issue in Transferring NIS Database to Slave Servers
-
I have configured NIS in Servers.
There are about 2 Master Servers and 10 Slave Servers are there.
The servers are installed with Ubuntu Server 14.04 Server Edition.
All the Slave servers are controlled by the Master Server 2.
There is an issue in updating the NIS database in the Slave Server.Since the password for the Master 1,2 is changed and the slave server password is not changed.
I have used the following command in Master Server 2:
/usr/lib/yp/ypinit -m
The update is done properly in Master Servers.
The command used in the slave servers are
/usr/lib/yp/ypinit -s hostnameThe error comes is
Transferring netgroup...
ypxfr: Exiting: Map transferring failed
Transferring netgroup.byuser...
ypxfr: Exiting: Map transferring failed
Transferring netgroup.byhost...
ypxfr: Exiting: Map transferring failed
Transferring master.passwd.byuid...
ypxfr: Exiting: Map transferring failed
Transferring passwd.byuid...
ypxfr: Exiting: Map transferring failed
Transferring passwd.byname...
ypxfr: Exiting: Map transferring failed
Transferring group.bygid...
ypxfr: Exiting: Map transferring failed
Transferring group.byname...
ypxfr: Exiting: Map transferring failed
Transferring services.byname...
ypxfr: Exiting: Map transferring failed
Transferring rpc.bynumber...
ypxfr: Exiting: Map transferring failed
Transferring rpc.byname...
ypxfr: Exiting: Map transferring failed
Transferring protocols.byname...
ypxfr: Exiting: Map transferring failed
Transferring master.passwd.byname...
ypxfr: Exiting: Map transferring failed
Transferring networks.byname...
ypxfr: Exiting: Map transferring failed -
By the time I searched on this term, it was already the top match on Yahoo search!
-
I think maybe the network ports for NIS are closed on your server. Check their connectivity before doing anything else.
-
Any feedback?
-
I have checked the Ports in all Masters and Slave servers.
There is no issue with it.
Something has issue in it -
How did you check? Instead of saying that you did check, it would be more valuable to show us how and what you checked or else, every time, we are going to ask for clarification.
Did you use telnet to check? What did it return?
-
I have used the SSH to check the NIS.
I have used the command in the server as
/usr/lib/yp/ypinit -m
The above command able to update the master serverBut when i tried in the slave server /usr/lib/yp/ypinit -s hostname
the transferring error occurs.
I didno checcked the telnet -
How can SSH check NIS? This is why we need details and never these high level "I did that" answers. I have no idea how it is possible for you to have checked your ports using SSH. Telnet is the definitive test. If you do not know how telnet works, how did you test the ports. Can you provide a screenshot at least?
-
Sorry i dont have screenshots
.since the date expired in my office for me.
I have used the command in the ubuntu as mentioned below
rpcinfo -p.
In that ports used are shown.
I have not tested with the telnet -
Okay, rpcinfo should give good data.