Table 7–2 and Table 7–1 provide a summary of the tasks described in this chapter. They assume the simplest cases, so be sure you are familiar with the more thorough task descriptions before you use this summary as a reference. This summary does not show the server's responses to each command.
Table 7–1 Adding an NIS+ Replica Named replica2 to doc.com.: Command Summary
Tasks |
Commands |
---|---|
Log in as superuser to domain master. |
master1% su |
Designate the new replica. |
# nismkdir -s replica2 doc.com. # nismkdir -s replica2 org_dir.doc.com. # nismkdir -s replica2 groups_dir.doc.com. |
Ping the replica. |
# /usr/lib/nis/nisping doc.com. # /usr/lib/nis/nisping org_dir.doc.com. # /usr/lib/nis/nisping groups_dir.doc.com. |
Rather than using nisping to transfer data to the new replica, as shown in the example above, an easier method is to use the NIS+ backup and restore capability, as described in Using nisrestore to Load Data Onto an NIS+ Replica Server.
Tasks |
Commands |
---|---|
Log in to the server as root. |
server% su |
[NIS-compat only] Start the daemon with -Y; include -B if you want DNS forwarding. |
Edit the /lib/svc/method/nisplus file to add the desired options, then restart the service, as follows. # svcadm restart network/rpc/nisplus |
[NIS+ Only] Start the daemon. |
# svcadm enable network/rpc/nisplus |