NFS Services Administrator's Guide
Configuring and Administering NIS+
Administering NIS+
Chapter 5260
To Remove a Replica Server from an NIS+ Domain
1. Log into the replica you want to remove, and issue the following
commands to kill rpc.nisd and nis_cachemgr:
ps -ef | grep rpc.nisd
kill PID
ps -ef | grep nis_cachemgr
kill PID
2. Issue the following command to remove the /var/nis directory:
rm -R /var/nis
3. Reinitialize the host as an NIS+ client. See “To Set Up NIS+ Client
Hosts” on page 220.
4. From any NIS+ client host, issue the following commands:
nisrmdir -s -f replica_hostname org_dir.domainname
nisrmdir -s -f replica_hostname groups_dir.domainname
nisrmdir -s -f replica_hostname domainname
The following commands removes replica server thyme from domain
Eng.Wiz.Com.:
nisrmdir -s -f thyme org_dir.Eng.Wiz.Com.
nisrmdir -s -f thyme groups_dir.Eng.Wiz.Com.
nisrmdir -s -f thyme Eng.Wiz.Com.
The -f option forces the replica to be removed, even if the replica
cannot be reached.
To remove a replica server from a domain, you must have modify
permission for the domain the replica serves.
For more information, see the following man pages: nisrmdir(1) and
nis(1).