You can replace the first Primary Server in your Management Zone with an existing second Primary Server or with a new server. If you choose to replace the first Primary Server with a new server that has a different hostname and IP address, you must install ZENworks 11 SP4 on the new server in the same Management Zone. Consequently, the new server becomes the first Primary Server.
The first Primary Server and the second Primary Server must have the same version of the ZENworks 11 SP4 installed.
NOTE:This scenario is not supported on Windows to Linux and vice-versa platform combinations.
To replace the first Primary Server with the second Primary Server:
Before replacing the First Primary Server with the Second Primary Server, take a reliable backup of the following on all Primary Servers in the Management Zone:
Content-Repo Directory: The content-repo directory is located by default in the ZENworks_installation_directory\work directory on Windows and in the /var/opt/novell/zenworks/ on Linux.
Ensure that the images directory located within the content-repo directory has been successfully backed up.
Certificate Authority: For detailed information on how to back up the certificate authority, see Backing Up the Certificate Authority.
Embedded Database:
For detailed information on how to back up the embedded database, see in Backing Up the Embedded Sybase SQL Anywhere Database
in the ZENworks 11 SP4 Database Management Reference.
ZENworks Server: For detailed information on how to back up the ZENworks Server, see Backing Up a ZENworks Server.
Ensure that all the contents of the content-repo directory of the first Primary Server are replicated to the second 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.
(Conditional) If the first Primary Server has add-on images:
In ZENworks Control Center for the second Primary Server, click the Bundles tab, then click the Imaging bundle.
The Summary tab is displayed.
Click Edit next to Add-on Image File.
The Bundle Add-on Image wizard is displayed.
On the Add Image Server Address page, select the first Primary Server that is associated with the bundle, then click Remove.
Click Add.
Click next to the Servers folder to navigate through the folders until you find the second Primary Server.
Select the second Primary Server to display its name in the Selected list, then click OK.
Click Finish.
The add-on image is associated with the second Primary Server, and the add-on image content is created on the second Primary Server.
In the Summary tab of the bundle, click the Increment Version underlined link for Version, then click Yes in the Confirm Version Increment dialog box.
(Conditional) If the first Primary Server has a ZENworks Imaging bundle, copy the bundle to the second Primary Server:
Manually copy all the files with the .zmg extension from the /content-repo/images directory of the first Primary Server to the /content-repo/images directory on the second Primary Server.
In ZENworks Control Center of the second Primary Server, click the Bundles tab, then click the Imaging bundle.
Click the Actions tab.
Click the ZENworks Image action.
The Edit Action dialog box is displayed.
In the ZENworks Image field, click .
The Server and Path Information dialog box is displayed.
In the Server Object, IP or DNS field, click to browse for and select the second Primary Server.
In the File Path on Server field, click to browse for and select the image.zmg file.
(Conditional) If the first Primary Server is a ZENworks Patch Management (ZPM) Server, then select another ZPM sever:
In ZENworks Control Center, click the Configuration tab in the left panel.
Click Patch Management.
Click the Subscription Service Settings Link. The Subscription Service Settings page appears.
In the Subscription Service Settings panel, click Reset Subscription Service. A dialog box appears requesting you to confirm your action. Click Yes to proceed further.
In the Start the Subscription Service field, you can select another server from multiple servers in your management zone.
Click Start Service.
(Conditional) If the first Primary Server is a ZENworks Subscription Server, select another subscription server.
In ZENworks Control Center, click the Subscribe and Share tab in the left panel.
In the Subscription page, click the subscription name in the Name column.
In the Summary page, navigate to the Schedules Panel, then click in the Subscription Server field to select any other server.
(Conditional) If the first Primary Server has ZENworks Reporting installed, take a reliable back-up of the reports.
For more information about backup of ZENworks reports, see Managing the ZENworks Reporting Settings
in the ZENworks Reporting System Reference.
Export the certificate authority role.
Take a reliable backup of the certificate authority of the first Primary Server.
For detailed information on how to take a backup of the certificate authority, see Backing Up the Certificate Authority.
Restore the backed-up certificate authority on the second Primary Server.
For detailed information on how to restore a backed-up certificate authority, see Restoring the Certificate Authority.
In the default closest server rule at the Management Zone level, move the first Primary Server as the last entry in the servers list.
In ZENworks Control Center, click the Configuration tab.
In the Management Zone Settings panel, click Infrastructure Management > Closest Server Default Rule.
In the Collection Servers list, select the check box next to the first Primary Server, then click Move Down until the server is the last entry in the list.
In the Content Servers list, select the check box next to the first Primary Server, then click Move Down until the server is the last entry in the list.
In the Configuration Servers list, select the check box next to the first Primary Server, then click Move Down until the server is the last entry in the list.
Click OK.
(Conditional) If you have any additional closest server rules configured, remove the first Primary Server from the rules.
In ZENworks Control Center, click the Configuration tab.
In the Management Zone Settings panel, click Infrastructure Management > Closest Server Rules.
Select a closest server rule, then click Edit.
The Rule Construction dialog box is displayed.
In the Collection Servers list, select the check box next to the first Primary Server, then click Remove.
In the Content Servers list, select the check box next to the first Primary Server, then click Remove.
In the Configuration Servers list, select the check box next to the first Primary Server, then click Remove.
Click OK twice.
Refresh all the devices (Primary Serves, Satellites, and managed devices) in the Management Zone so that they get the new closest server rules.
(Optional) Reregister all the managed devices and Satellites to the new Primary Server.
NOTE:You can choose not to perform this step because there is no loss in the functionality. However, the ZENworks icon and the zac zone-config command continue to display the IP address and the host name of the retired Primary Server.
To reregister the devices, perform the following tasks on all the devices:
Unregister the device from the Management Zone by running the following command:
zac unr -f
Register the device in the Management Zone by running the following command:
zac reg https://ZENworks_Server_DNS_name:port_number
For more information about zac, view the zac man page (man zac) on the device or see the ZENworks 11 SP4 Command Line Utilities Reference.
(Optional) Move the database to another device 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 first Primary Server and you do not plan to use the device after uninstalling the Primary Server.
To move the database to another device:
(Conditional) If you are using an external database, ensure that you have a reliable backup of the database.
Obtain the credentials of the database.
To procure the credentials of the internal database, use one of the following commands:
zman dgc -U administrator_name -P administrator_password
or
zman database-get-credentials -U administrator_name -P administrator_password
To obtain the credentials of the external database, contact the database administrator.
Remove the database role from the first Primary Server (applicable for Embedded Sybase):
Log into the database.
In the SQL editor, execute the following SQL queries to remove the corresponding role entries for the first Primary Server from the zZENServerRoles table:
delete from zZENServerRoles where Roles='Database'; delete from zZENServerRoles where Roles='MasterPrimary'; delete from zZENServerRoles where Roles='CertAuth'; commit;
To add the database role to the Second Primary Server (applicable for Embedded Sybase):
Log into the database.
In the SQL editor, execute the following SQL commands to assign the database role for the Second Primary Server:
Insert into zZENServerRoles (id, Roles, position) values (0x<second PS GUID>, 'Database', (select max(position) from zZENServerRoles where id=0x<second PS GUID>)+1);
Insert into zZENServerRoles (id, Roles, position) values (0x<second PS GUID>, 'MasterPrimary', (select max(position) from zZENServerRoles where id=0x<second PS GUID>)+1);
Insert into zZENServerRoles (id, Roles, position) values (0x<second PS GUID>, 'CertAuth', (select max(position) from zZENServerRoles where id=0x<second PS GUID>)+1);
commit;
NOTE:To obtain the second primary server GUID, in ZENworks Control Center navigate to Devices and select the server. The summary page displays the GUID number. Alternatively, log into the database and execute the following command: select * from zZENObject where name like '<<Primary Server Name>>'.
If the database is installed on the same device as that of the first Primary Server, move the database.
Internal Sybase:
For detailed information on how to move the data from an internal Sybase database to an internal Sybase database, see Moving the Internal Sybase Database from One Primary Server to Another Primary Server
in the ZENworks 11 SP4 Database Management Reference.
External Sybase:
For detailed information on how to move the data from one external Sybase database to another external Sybase database, see Moving the Data from One External Sybase Database to another External Sybase Database
in the ZENworks 11 SP4 Database Management Reference.
MS SQL:
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 11 SP4 Database Management Reference.
Oracle:
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 11 SP4 Database Management Reference.
Remove all Satellites under the first Primary Server from the Server Hierarchy.
For more information on how to remove the Satellites from the Server Hierarchy listing in ZENworks Control Center, see Removing Satellites from the Server Hierarchy
in the ZENworks 11 SP4 Primary Server and Satellite Reference.
After ensuring that all the operations in the Management Zone are working as expected, uninstall ZENworks 11 SP4 on the first Primary Server.
For detailed information on how to uninstall ZENworks 11 SP4, see ZENworks 11 SP4 Uninstall Guide
.
NOTE:If Multizone is configured for this server (which has got replaced with a new Primary Server) as Publisher, then all its subscribers must be updated with the new IP address and certificate of this server.
Log in to ZENworks Control Center (ZCC) of subscribers.
Navigate to Subscribe And Share > Subscriptions > <subscription_name> > Remote Server > Base URL > Edit.
Update the IP address with the new IP address of the Primary Server (Publisher).
To update the new certificate:
Navigate to Subscribe And Share > Subscriptions > <subscription_name> > Remote Server > Update Certificate.
Update the certificate.