NFS Services Administrator's Guide
Configuring and Administering NIS+
Setting Up the NIS+ Namespace
Chapter 5222
To Set Up NIS+ Replica Servers
Before you can set up a replica server, the master server must be set up
and running, and the hosts table on the master server must contain an
entry for the host that will be a replica.
When you run the nisserver script to initialize a replica server, the
NIS+ tables on the master server are copied to the replica. Copying the
tables can take anywhere from a few minutes to a couple of hours,
depending on the size of your tables, the network load, and the system
load on the master and replica servers.
1. Log in as root to the host that will be a replica server.
2. Set the PATH variable to include /usr/lib/nis. If you are running
the C shell, type the following command:
setenv PATH $PATH:/usr/lib/nis
If you are running the Bourne or Korn shell, type the following
commands:
PATH=$PATH:/usr/lib/nis
export PATH
3. If the host will be a root replica server, set it up as a client in the root
domain. If the host will be a non-root replica server, set it up as a
client in the parent domain of the domain it will serve. See “To Set
Up NIS+ Client Hosts” on page 220.
4. Type the following command if the master server is not running in
NIS compatibility mode:
rpc.nisd
Type the following command if the master server is running in NIS
compatibility mode:
rpc.nisd -Y
If the master server is running in NIS compatibility mode, its replica
servers must also run in NIS compatibility mode. See “NIS
Compatibility Mode” on page 210 for more information.
5. Set the NISPLUS_SERVER variable to 1 in the
/etc/rc.config.d/namesvrs file:
NISPLUS_SERVER=1