Solaris Naming Administration Guide

Replacing Server Machines

You can use nisbackup and nisrestore to quickly replace a machine that you are using as a server with another machine. For example, you want to improve network performance by replacing an older server with a newer, faster machine.

Machine Replacement Requirements

To replace a machine being used as an NIS+ server with another machine, you must:

How to Replace Server Machines

To replace a server machine, follow these steps:

  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, kill rpc.nisd 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.