11.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 10 Configuration Management 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)

It has not been tested with ZENworks Reporting Server.

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 10.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 10.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 33.3, Backing Up the Embedded Sybase SQL Anywhere Database.

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

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

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

  5. 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.

  6. Disconnect the device from the network.

  7. Ensure that the hostname and the IP address of the new server are same as those of the old Primary Server.

  8. Install ZENworks 10 Configuration Management 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 10 Configuration Management, see Installing the ZENworks Server in the ZENworks 10 Configuration Management Installation Guide.

  9. 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 10.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 33.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 10.4, Restoring the Certificate Authority.

    4. (Conditional) If the Primary Server has only ZENworks 10 Configuration Management SP3 (10.3.0) installed, perform the steps mentioned in TID 7005781 that is available in the Novell Support Knowledgebase.

    5. 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

    6. 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.

  10. Ensure that the new server is running correctly. Subsequently, uninstall ZENworks Configuration Management from the old device.

    For detailed information on how to uninstall ZENworks 10 Configuration Management see Uninstalling ZENworks Software in the ZENworks 10 Configuration Management Installation Guide.