33.2 Replacing an Existing Primary Server with a New Primary Server

If you have only one Primary Server in the Management Zone and if you want to replace the device hosting the Primary Server with a new device that has the same hostname and IP address as the old device, you must move the Primary Server to the new device.

The existing Primary Server and the new Primary Server must have the same version of the ZENworks 11 installed.

NOTE:This scenario has been tested on the following platform combinations:

  • Windows Server 2003 (32-bit) to Windows Server 2008 (32-bit)

  • SUSE Linux Enterprise Server (SLES) 10 (32-bit) to SLES 10 (32-bit)

This scenario is not supported on Windows to Linux and vice-versa platform combinations.

  1. Take a reliable backup of the existing ZENworks Server.

    For detail information on how to take a backup of the ZENworks Server, see Section 32.1, Backing Up a ZENworks Server.

  2. Take a reliable backup of the certificate authority of the Primary Server.

    For detail information on how to take a backup of the certificate authority, see Section 32.3, Backing Up the Certificate Authority.

  3. (Conditional) Take a reliable backup of database in any of the following scenarios:

    • You are using an internal ZENworks database (embedded Sybase SQL Anywhere).

    • You are using an external database installed on the device hosting the Primary Server and you do not plan to use the device after uninstalling the Primary Server.

    For detailed information on how to take a backup of an internal database, see Section 29.3, Backing Up the Embedded Sybase SQL Anywhere Database.

    To take a backup of an external database, see the documentation for the database.

  4. (Conditional) If the first Primary Server has ZENworks Reporting Server installed, take a reliable back-up of the reports by using the zman Report commands.

    For detailed information about the zman Report Commands, view the zman man page (man zman) on the server or see zman(1) in ZENworks 11 Command Line Utilities Reference.

  5. Stop all the ZENworks services on the Primary Server.

    For detailed information on how to stop the ZENworks services on Windows, see Section 9.1.3, Stopping the ZENworks Services. For detailed information on how to stop the ZENworks services on Linux, see Section 9.2.3, Stopping the ZENworks Services

  6. Take a reliable backup of the content-repo directory of the Primary Server.

    The content-repo directory is located in the ZENworks_installation_directory\work\ directory on Windows and in the /var/opt/novell/zenworks/ directory on Linux.

  7. Disconnect the device from the network.

  8. Install ZENworks 11 on the new server with the following settings that are same as that of the old Primary Server:

    • Installation drive and path

    • ZENworks Ports

    • Management Zone name

    For detailed information on how to install ZENworks 11, see Installing the ZENworks Server in the ZENworks 11 Server Installation Guide.

  9. (Conditional) If the old Primary Server has ZENworks Reporting Server installed, decommission ZENworks Reporting Server.

    For detailed information on how to decommission an existing instance of ZENworks Reporting Server, see Performing a Backup of Reports before Decommissioning an Existing Instance of ZENworks Reporting Server in the ZENworks 11 Reporting Server Installation Guide.

  10. (Conditional) On the new Primary Server, install ZENworks Reporting Server.

    For detailed information on how to install ZENworks Reporting Server, see ZENworks 11 Reporting Server Installation Guide.

  11. Do the following on the new Primary Server:

    1. Restore the backed-up ZENworks Server.

      For detailed information on how to restore the ZENworks Server, see Section 32.2, Restoring a ZENworks Server.

    2. (Conditional) Restore the backed-up database.

      For detailed information on how to restore the internal ZENworks database, see Section 29.4, Restoring the Embedded Sybase SQL Anywhere Database.

    3. Restore the backed-up Certificate Authority.

      For detailed information on how to restore the certificate authority, see Section 32.4, Restoring the Certificate Authority.

    4. Re-create all the default and custom deployment packages.

      Default Deployment Packages: At the server’s command prompt, enter the following command:

      novell-zenworks-configure -c CreateExtractorPacks -Z

      Custom Deployment Packages: At the server’s command prompt, enter the following command:

      novell-zenworks-configure -c RebuildCustomPacks -Z

    5. Copy the backed-up content-repo directory to the ZENworks_installation_directory\work\ directory on Windows or to the /var/opt/novell/zenworks/ directory on Linux.

    6. (Conditional) If you install ZENworks Reporting Server on the new Primary Server, restore the reports that you backed-up in Step 4 by using the zman Report commands.

      For detailed information about the zman Report Commands, view the zman man page (man zman) on the server or see zman(1) in ZENworks 11 Command Line Utilities Reference.

  12. Ensure that the new server is running correctly. Subsequently, uninstall ZENworks 11 from the old device.

    For detailed information on how to uninstall ZENworks 11, see Uninstalling ZENworks Software in the ZENworks 11 Server Installation Guide.