1832577 Members
3218 Online
110043 Solutions
New Discussion

NIS Push error

 
IRI Unix Support Group
Occasional Contributor

NIS Push error

Trying to push maps to slave servers but keep getting this errors:
Building map hosts.byaddr
Pushing hosts.byname
Status received from ypxfr on tshp2:
Failed - dbm operation on map failed.
Status received from ypxfr on penguin:
Failed - dbm operation on map failed.
Status received from ypxfr on macaw:
Failed - dbm operation on map failed.
Status received from ypxfr on stork:
Failed - dbm operation on map failed.

Any idea why I am getting this errors? Servers listed in error messages are not consistent. Each time a push is initiated server are different.

Thanks
5 REPLIES 5
Uday_S_Ankolekar
Honored Contributor

Re: NIS Push error

Are these slaves on different network or subnet??
Good Luck..
IRI Unix Support Group
Occasional Contributor

Re: NIS Push error

These servers are on different subnet. Nothing has changed. It used to work fine..since about a week or so I am getting this errors..
Uday_S_Ankolekar
Honored Contributor

Re: NIS Push error


I remember working on this problem, but this was long time back. I think I added route entry for the slave with -p optin for transmittin unit.
by route -p add 1

man route for more info on -p option

before that do
#set tcp_pmtu 1


-USA..
Good Luck..
S.K. Chan
Honored Contributor

Re: NIS Push error

If you got all your slaves in a different subnet and the binding method you used is at IP level (not broadcast) then whenever the master server is rebooted, all the other slaves need to have their nis.client restarted.
# /sbin/init.d/nis.client stop
# /sbin/init.d/nis.client start
Is this your case ? The error also sounds like it could be a possible NIS DB corruption. To confirm this you can rebuild one of the slaves and see if it helps. On one of the slave .. (assuming your domain name is "engr") ..
# cd /var/yp
# mv engr engr.org
# domainname engr
# /usr/sbin/ypinit -s
==> This will copy all of NIS DB from the master to slave.
# /sbin/init.d/nis.server stop
# /sbin/init.d/nis.client stop
# /sbin/init.d/nis.server start
# /sbin/init.d/nis.client start
Now on the master server, make a change to any of the NIS-managed file and push it out. Do you still see the same error on the slave you have just rebuilt ?
Caesar_3
Esteemed Contributor

Re: NIS Push error

Hello!

What you need to do is to init your
nis slave servers that they will take
the maps from the master server.
ypinit -s

Caesar