Operating System - HP-UX
1836458 Members
2428 Online
110101 Solutions
New Discussion

NIS Slave - Can't find maps that are in Master.

 
SOLVED
Go to solution
Jason Cannon
Advisor

NIS Slave - Can't find maps that are in Master.

When I do a ypinit -s most of the maps get transfered just fine with a couple of exceptions:

Transferring auto.master for domain some-domain-name from nis-master-server...
ypxfr: can't get order number for map auto.master from ypserv at nis-master-server
reason: no such map in server's NIS domain
Transferring rpc.byname for domain some-domain-name from nis-master-server...
ypxfr: can't get order number for map rpc.byname from ypserv at nis-master-server
reason: no such map in server's NIS domain
Transferring servi.bynp for domain some-domain-name from nis-master-server...
ypxfr: can't get order number for map servi.bynp from ypserv at nis-master-server
reason: no such map in server's NIS domain

The files exist on the NIS Master server and I can ypcat the files from it or servers served by it.

The server I'm trying to make into a slave is running HP-UX 11.11 and the master server is a Sun server.

Any ideas???

Thanks!

Jason
4 REPLIES 4
Michael Steele_2
Honored Contributor

Re: NIS Slave - Can't find maps that are in Master.

Rebuild all of your maps on master server:

ypinit -m (* answer questions *)

Test from client with:

/usr/bin/ypwhich
domainname
/usr/bin/ypmatch username passwd
/usr/contrib/bin/nsquery hosts hostname
/usr/bin/ypwhich -m hosts
/usr/bin/ypmatch hostname hosts
Support Fatherhood - Stop Family Law
Jason Cannon
Advisor

Re: NIS Slave - Can't find maps that are in Master.

Ok, I rebuilt the NIS master server with no problems. When I rebuilt the slave server I get the exact same errors. I can do all the tests listed above without a problem.

Thanks!

Jason
Brian Hackley
Honored Contributor
Solution

Re: NIS Slave - Can't find maps that are in Master.

Jason,

In the ypwhich -m on the NIS master, is the
NIS Master server listed as these maps:
auto.master rpc.byname servi.byhp ?

Also verify that on the NIS master, that you can yppoll -h localhost where are each of the failing maps.

Usually a failure like this is on the NIS master not having a map of the exact same name as on the client, most often caused by customization typo's in /var/yp/Makefile and/or the /usr/sbin/ypinit script on the master and slave pointing to different map names.

Hope that helps a little,
-> Brian Hackley
Ask me about telecommuting!
Jason Cannon
Advisor

Re: NIS Slave - Can't find maps that are in Master.

Thanks for pointing me in the right direction. I edited ypinit and changed auto.master to auto_master and removed the rpc and service references. Works like a champ.

Thanks for all your help!

Jason