If you want to replace more than one server, you need to install the same number of servers and replace each server on a one-to-one basis, either simultaneously orsequentially. For faster deployment, all servers can be deployed to a single temporary zone.
The migration steps should not be performed if you have configured multi-node ZooKeeper cluster.
Deploy the ZENworks 2020 Update 2 Appliance server with the following settings that are the same as that of the old Primary Server :
Management Zone Name
If your zone is configured with custom port, then ensure that you reconfigure the custom ports in the new appliance server. For more information, see Changing the ZENServer Port Number in the ZENworks Disaster Recovery Reference.
For more information on deploying an Appliance server, see ZENworks Appliance Deployment and Administration Reference.
Install the new server to a temporary zone and not to the existing production zone. The new server can be installed with any database engine (preferably the same database engine as that in the production zone, that is, if the production zone is using MSSQL, then install the new server with MSSQL in the temporary zone). After the existing Primary Server is replaced with the new server, the new server will start using the actual database in the production zone.
If you want to replace more than one Primary Server, you need to install the same number of servers and replace each server on a one to one basis, either simultaneously or sequentially. For faster deployment, all servers can be deployed to a single temporary zone.
Ensure that you run the commands as a root user.
Do the following on the new Primary Server:
(Conditional) If you have installed an Appliance server with the Embedded PostgreSQL database, then note down the database credentials for the super administrator and by running the following commands:
database-get-credentials-superuser (zman dgcs)
database-get-credentials (zman dgc)
database-get-credentials-audit (zman dgca)
Restore the backed-up data from the Windows or Linux server. For more information, see Restoring a ZENworks Server in the ZENworks Disaster Recovery Reference.
Restore the backed-up tftp files novell-tftp.conf and novell-proxydhcp.conf to /etc/opt/novell. Run the following commands on ZENworks Appliance, after restoring the backed-up data:
rm -f /etc/opt/novell/zenworks/preboot/novell-tftp.conf
ln -s /etc/opt/novell/novell-tftp.conf /etc/opt/novell/zenworks/preboot/novell-tftp.conf
rm -f /etc/opt/novell/zenworks/preboot/novell-proxydhcp.conf
ln -s /etc/opt/novell/novell-proxydhcp.conf /etc/opt/novell/zenworks/preboot/novell-proxydhcp.conf
(Conditional) Restore the backed-up database.
For detailed information on how to move the data to a new MS SQL database, see the MS SQL documentation. Later on, perform the steps described in
Configuring the ZENworks Server to Point to the New MS SQL Database Containing Data Moved from Another MS SQL Database in the ZENworks Database Management Reference.
For detailed information on how to move the data from one Oracle database to another Oracle database, see the Oracle documentation. Later on, perform the steps described in
Configuring the ZENworks Server to Point to the New Oracle Database Containing Data Moved from Another Oracle Database in the ZENworks Database Management Reference.
For detailed information on how to move the data from one PostgreSQL database to another PostgreSQL database, see the Oracle documentation. Later on, perform the steps described in
Backing up an Embedded PostgreSQL Database on One Primary Server and Restoring it on another Primary Server in the ZENworks Database Management Reference.
Run the following query to add the Appliance Server role:
microfocus-zenworks-configure -c AddRole -DdestGuid=<GUID> -Drole=ApplianceServer
where <GUID> is the GUID of the old Primary Server that is being replaced.
microfocus-zenworks-configure -c AddRole -DdestGuid=cd65a48408ee1e46e5984947fc51b5e3 -Drole=ApplianceServer
The GUID can be found in the following location:
On Windows: %ZENSERVER_HOME%\conf\guid.txt
On Linux: /etc/opt/microfocus/zenworks/guid.txt
Run the following command on the Appliance server:
microfocus-zenworks-configure -c MergeTruststore -Z
microfocus-zenworks-configure -c UpdateTrustStorePasswordConfigureAction
microfocus-zenworks-configure -c GenerateOSPProperties
microfocus-zenworks-configure -c UnifyTrustStoreForApplianceConfigureAction
microfocus-zenworks-configure -c EnableJMX
microfocus-zenworks-configure -c ZenProbe
Execute permissions.sh file which is available at /opt/microfocus/zenworks/bin/
If kafka is configured on the temp server, enable kafka services by running the following command:
systemctl enable <Kafka Service Name>;
Kafka Service Name
Re-create all the default and custom deployment packages.
Default Deployment Packages: At the server’s command prompt, enter the following command:
microfocus-zenworks-configure -c CreateExtractorPacks -Z
NOTE:The microfocus-zenworks-configure -c CreateExtractorPacks -Z command will not rebuild the Mac pre-agent installer package.
IMPORTANT:Ensure that you do not run the ZMAN SURP command instead of microfocus-zenworks-configure -Z -c CreateExtractorPacksConfigureAction to rebuild deployment packages. The command microfocus-zenworks-configure -Z -c CreateExtractorPacksConfigureAction uses a different method to rebuild deployment packages. For more information, see Rebuilding the Default Packages in ZENworks Discovery, Deployment, and Retirement Reference.
Custom Deployment Packages: At the server’s command prompt, enter the following command:
microfocus-zenworks-configure -c RebuildCustomPacks -Z
To avoid any errors while running this command, ensure that the custom packages are available in the new server at the following location before you run the command: /opt/microfcus/zenworks/install/downloads/custom.
Copy all the contents of the backed-up content-repo directory to the /var/opt/microfocus/zenworks/directory. If you have any issues in copying content-repo directory in Linux, then run permissions.sh file which is available at /opt/microfocus/zenworks/bin/.
(Optional) Also, copy the backed-up TFTP files to the second Primary Server. The tftp directory is located in the folder /srv/.
(Optional) If the zone is configured with custom port, then ensure that you update the global.txt location in the zman-config.properties file to point to the Linux file location.
Restart the services by running the microfocus-zenworks-configure -c Start command, and then select the restart option.
Ensure that the new server is functioning properly.
Check the ZCC and Appliance configuration pages are working properly.
Check whether the Appliance Summary details are updated under zac refresh command on the server to refresh the page with new data.> > . If the OS details or the last contact time is not updated, run the
NOTE:After migrating the Windows server to Appliance, administrator should reassign the bundles and polices that are applicable to Linux Primary Server. Also, administrators should re-look into the static group where the Windows Primary was part of, because now the platform has been changed for the Primary Server.