Operating System - HP-UX
1751854 Members
6086 Online
108782 Solutions
New Discussion юеВ

NIS slaves do not have all maps.

 
SOLVED
Go to solution
TechC
Regular Advisor

NIS slaves do not have all maps.

Hello all,
I have 1 master and 3 slave NIS servers.
The network was re ipaddressed..
I have 2 problems.
1) The master has all the maps and is fine. 2 of the slaves however are missing about 6 maps. I tried using a ypxfr (map name)to initailize a push of the maps from master to slave. I get the error no such map in the domain. I also tried yppush to no avail...Can I manually copy these maps from the master to the slave and have them recognized? I know never to run a make on the slaves...but....
2) Another Admin ran a make on 1 of the slaves and now that server is bound to another slave and they are both missing about 6 maps. I believe he did something to manually pull some maps but I need to remedy this in the correct way. I have 1 good slave server and the master is good as well.

Please help..
Thank You
James
5 REPLIES 5
Steven Schweda
Honored Contributor

Re: NIS slaves do not have all maps.

As usual, actual commands and actual results
might be more helpful than vague
descriptions.

My actual NIS experience is pretty stale, and
mostly on Solaris, but ...

> I tried using a ypxfr (map name)to
> initailize a push of the maps from master
> to slave. I get the error no such map in
> the domain.

What was this "map name"? Maps may have
nonintuitive names. "ypcat -x".

> I also tried yppush to no avail.

Did it complain in some way, or did it just
not fix the problem? What happened?

> Can I manually copy these maps [...]

I doubt it. Sounds like the wrong thing to
do, in any case.

Did you try "ypinit -m" on the master after
you changed all the IP addresses? "ypinit
-s" on the slaves? Any reason not to?

Have you any evidence that the master has the
same list of slaves as you do?
TechC
Regular Advisor

Re: NIS slaves do not have all maps.

Sorry for the vagueness..
I actually mistyped my thoughts here...
The NIS master and slaves did not change ip addresses..Everything else did. As I said the other admin ran a make on one of the slaves and screwed something up. Thus 2 salves are not updating correctly and the master and 1 out of 3 slaves have correct map info.
I have not run a ypinit for fear of making things work, but if that is a safe step I will. See errors below.....

I run ypxfr from the slave...
ypxfr -f -h (masterserver) group.byname
ypxfr -f -h (masterserver) group.bygid
No error and maps have today's date in /var/yp/`domainname` however a ypcat group says no such map in server's domain..

A ypcat -k ypservers shows the master and 3 slaves on each server.

A yppush -v -h slaveserver group.byname
and
yppush -v -h (slaveserver) group.bygid
both produce.
slaveserver has been called from ypxfr on (slaveserver) failed, -ypxfr couldn't get the map master's address.
terminating 0 dead.
A "ypcat -x produces a "group" use group.byname."
But yet still ypcat group says no such map in server's domain.

Thanks
James


MarkSyder
Honored Contributor
Solution

Re: NIS slaves do not have all maps.

Yes, you can ftp the missing maps. On future pushes, the slaves will know they want these maps and the update will happen correctly.

This is the advice I received direct from HP when I had a similar problem.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing
TechC
Regular Advisor

Re: NIS slaves do not have all maps.

Mark,
You are correct sir! I actually fixed the issue last night about midnight after searching the net for hours. I rcp'd the maps to the correct slave, ran a ypxfr and the maps were then visible. A make comes back error free... The document was from 1993..Geez Nis is old.
But you are still the man. Thanks for the response.
TechC
Regular Advisor

Re: NIS slaves do not have all maps.

Resolved issue.
rcp files to slaves, run a ypxfr and make sure no complaints, then run a make from master and make sure no errors come back.