System Administration Guide: Naming and Directory Services (NIS+)

ProcedureHow to Replace NIS+ Server Machines

  1. Run nisbackup on the master server for the domain that the old server serves.

    See Backing Up an Entire NIS+ Namespace. (Note that the old server you are replacing could be the master server for the domain, in which case you would run nisbackup on this old master server.)

  2. Copy the old server's /var/nis/NIS_COLD_START file to the backup directory.

  3. Copy the old server's /etc/.rootkey file to the backup directory.

  4. Disconnect the old server from the network.

  5. Connect the new server to the network.

  6. Assign the new server the same IP address (number) as the old server.

  7. Assign the new server the same machine name as the old server.

  8. If necessary, stop the NIS+ service on the new server.

  9. Run nisrestore on the new server to down load the NIS+ data.

    See Restoring Your NIS+ Namespace With nisrestore.

  10. Copy the .rootkey file from the backup directory to /etc on the new server.

  11. Copy the NIS_COLD_START file from the backup directory to /var/nis on the new server.

  12. Reboot the new server.