Operating System - HP-UX
1840015 Members
2058 Online
110159 Solutions
New Discussion

NIS Slave server and Client

 
Sachin Patel_2
Advisor

NIS Slave server and Client

Hi
I have system which is client in domain1. I want to set this same system as
slave server for different domain. Both domains are on same network.

When I did ypinit -s "sarver" DOM="domain2" I did not get any error it create
directory with all maps.

Then When I try to run ypserv and ypxfr it says "directory /var/yp/domain1 is
not exist or maps for domain1 is missing. And I want to set this system as
slave for domian2.

Thanks
Sachin
4 REPLIES 4
Alan Riggs_1
Regular Advisor

Re: NIS Slave server and Client

My understanding is that a machine can be active in only one NIS domain at a
time. The bindings are generally set at boot time. You can recycle yp
services and repoint the machine to domain2, but I do not believe it is
possible to have the machine active in both domains at once.
Sharon Bi_4
Occasional Advisor

Re: NIS Slave server and Client

Yes, I agree with Alan.

Just checked the documentation of HP-UX training material. It says:

" Each node can belong to a maximum of ONE domain ".
Jason Luginbuhl_1
Frequent Advisor

Re: NIS Slave server and Client

Sharon and Alan are correct. Only one domain at a time. This client when booted
was probably assigned the original domain. You can check this by executing the
domainname command. I imagine that this will return the original domain. You
should be able to change the DOMAIN variable in /etc/rc.config.d/namesvrs to be
the new domain and then restart the NIS services to rebind under the new
domain:

# /sbin/init.d/nis.client stop
# /sbin/init.d/nis.client start
Sachin Patel_2
Advisor

Re: NIS Slave server and Client

Then why book says you can have a server may be a master for one domain and a
slave of another. what about Multi-master relationships

Sachin