Network Information Service (NIS) B.11.31.04 Administrator's Guide

Configuring an NIS Slave Server
To configure an NIS slave server, complete the following steps:
1. Log in to the NIS slave server.
2. Set the following variables in the NIS slave server to modify the /etc/
rc.config.d/namesvrs file:
NIS_MASTER_SERVER=0
NIS_SLAVE_SERVER=1
NIS_CLIENT=1
NIS_DOMAIN=marketing
It is not mandatory to set the NIS_CLIENT=1 variable to configure the NIS slave
server.
3. Create NIS databases on a slave server by copying the databases from the NIS
master server for the marketing domain. Start the ypinit process:
#/usr/sbin/ypinit -s mammoth DOM=marketing
NOTE: You can also create an NIS database on a slave server by copying the
databases from another NIS slave server.
The ypinit procedure displays few questions.
Do you want this procedure to quit on non-fatal errors? [y/n: n] n
Remember to correct anything which fails. If you do not, some part of the system (perhaps the
NIS slave server) may not work.
The ypinit -m command creates a directory, /var/yp/<domainname>, to store
the map information for the new domain. For example, the /var/yp/marketing
directory contains the map information for the marketing domain. If a directory
with the same domain name exists, you must either delete the existing directory
or select a different name for the domain. If you choose to delete the directory,
you may take a backup of this directory before proceeding further. However,
taking a backup of the /var/yp/marketing directory is optional.
Can the existing directory "/var/yp/marketing" and its contents be destroyed? [y/n: n] y
NOTE: This message is not displayed when the NIS slave server is configured
for the first time.
The procedure for copying the databases from the NIS master server, mammoth,
will take 10 to 15 minutes.
NOTE: If your NIS master server mammoth, is an HP machine, the NIS databases
such as ethers.byaddr, and ethers.byname are not available for copying. As
a result, you can ignore any no such map error messages that are displayed
when the system tries to transfer those maps.
4. Configure the NIS slave server as an NIS Client:
Configuring an NIS Slave Server 67