[rhn-users] NIS Slave configuration

Charith Perera cperera at intertechmedia.com
Fri Jan 28 17:26:19 UTC 2005


I have the following configuration for a four machine network

host1 is the NIS server. host2, host3, host4 are all configured to be NIS 
clients and everything works fine. I want to make host2 a slave server, so 
I've made the following changes.

On host1 (Master Server), I've added a new line in /var/yp/ypservers and 
listed host2. Also I've set NOPUSH=false in the makefile, and then ran make 
within /var/yp/

On host2 (Slave Server) I ran /usr/lib/yp/ypinit -s host1. I received errors 
saying that ypxfrd is not running, but I think that's fine because ypxfrd is 
indeed not running on host1. The maps were successfully build

On each client (including the Slave Server), in /etc/yp.conf I have it setup 
as follows:
domain mydomain server host1


When I stopped ypbind on the server, the clients spewed out some errors, so I 
had to manually replace host1 with host2 in yp.conf and restart ypbind. If I 
want the clients to automatically find the slave server, do I have to change 
yp.conf so that it broadcasts for a server? Is there any way to lists 
multiple servers per domain?


Thanks

Charith Perera.




More information about the rhn-users mailing list