Environment
Novell ZENworks 7.3 Linux Management - ZLM7.3
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 9
SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 9
Situation
How to upgrade a device from SLES 9 to SLES 11 with ZENworks Linux Management Server installed, or upgrade a device from SLES 9 to SLES 11 with ZENworks Linux Management Agent installed.
Resolution
Upgrading a device from SLES 9 to SLES 11 with ZENworks Linux Management Server Installed
- If the SLES 9 device has an earlier version of ZENworks Linux Management server installed, it is necessary to first upgrade the server to ZENworks 7.3 Linux Management before upgrading from SLES 9 to SLES 11. For more information on how to upgrade to ZENworks 7.3 Linux Management, see the Upgrade chapter in the ZENworks 7.3 Linux Management Installation guide (https://www.novell.com/documentation/zlm73).
- Shutdown the zmd if it is running by using the command
rug shutdown - Run the following command to uninstall all the agent packages from the device:
rpm -e novell-zenworks-zmd `rpm -q --whatrequires novell-zenworks-zmd` - If the ZENworks Linux Management server is configured with an Oracle database or an external PostgreSQL database, skip to Step 6
- If the ZENworks Linux Management server is configured with a PostgreSQL database running on the same device, it is necessary to make a backup of the existing PostgreSQL database:
a. Stop all the ZENworks Services on both the Primary Server and Secondary Servers by using the following command:
zlm-config --stop
b. On the Primary Server, log in to the database as a PostgreSQL user by using the following command:
su postgres
c. Back up the PostgreSQL database by using the following command:
pg_dumpall > /tmp/postgre_dump
d. Log out as the PostgreSQL user and login again as a super user.
e. Stop the PostgreSQL services by using the following command:
/etc/init.d/postgresql stop
f. Back up the configuration file /var/lib/pgsql/data/pg_hba.conf by using the following command:
cp /var/lib/pgsql/data/pg_hba.conf /home/pg_hba.conf
g. Move the directory that contains the server data by using the following command:
mv /var/lib/pgsql/data /var/lib/pgsql/data.bck - Shutdown the SLES 9 device.
- Upgrade the device from SLES 9 to SLES 11 by using the SLES 11 bootable media. For more information, see the SUSE Linux Enterprise Server 11 documentation.
- Follow the on-screen prompts and proceed with the installation.
- On the Installation Mode page, select the Update and Include Add-on Products from Separate Media options, then click Next to continue with the installation.
- On the Media Type page, select the media in which the ZENworks Linux Management YAST add-on agent ISO is located (see "Installing the ZENworks Agent by Using the YaST Add-on" in the ZENworks 7.3 Linux Management Installation guide https://www.novell.com/documentation/zlm73).
For example, select NFS as the media type if the ISO is located on an NFS server. - Accept the license agreement, and proceed with the installation.
- On the Installation Settings page, click Update Options .
- Select the Update with installation of New Software and Filters based on the selection option, then click Select Patterns . The Software Selection and System Tasks page is displayed.
- In the Add-on group, select from the following patterns:
a. ZLM Agent NoX
b. ZLM Agent X
c. ZLM Agent Imaging
d. ZLM Agent OEM
Note: Do not select the ZLM Agent All option from the list. - For every selected pattern, click Packages > All in this List > Update unconditionally .
- (Conditional) If the ZENworks Linux Management is configured with a PostgreSQL database running on the same device, filter based on the Search criterion, then search for postgresql packages.
- Select the postgresql package, then click Packages > All in this List > Update unconditionally .
- Click Accept to accept all the settings configured so far, and proceed to upgrade to SLES 11.
- When prompted for the Customer Center Configuration, select Configure Later . The customer center can only be configured after upgrading to SLES 11.
- Once the device is upgraded to SLES 11, stop all the ZENworks Services on both the Primary and Secondary Servers by using the following command:
zlm-config --stop
Continue with Step 20 if the ZENworks Linux Management server is configured with a PostgreSQL database running on the same device. If the ZENworks Linux Management server is configured with an Oracle database or an external PostgreSQL database, skip to Step 22 - Do the following:
a. On the Primary Server, verify the status of the PostgreSQL database, and start the PostgreSQL database if it is not running by using the following command:
/etc/init.d/postgresql start
b. Log in to the database as a PostgreSQL user by using the following command:
su postgres
c. Restore the database by running the following command:
psql template1 -f /tmp/postgre_dump
d. Log out as postgres user and login as super user.
e. Restore the configuration file /home/pg_hba.conf by using the following command:
cp /home/pg_hba.conf /var/lib/pgsql/data/pg_hba.conf
f. Open the postgreSQL database configuration file /var/lib/pgsql/data/postgresql.conf used by ZLM Server
Comment the line defined with settings "tcpip_socket " if it exists, and add the setting shown below if it is not
already defined.
listen_addresses = '*'
g. Restart the PostgreSQL database by using the following command:
/etc/init.d/postgresql restart - Download the script sles9-to-sles11.sh from https://download.novell.com/Download?buildid=DT5YJ-RVlfY~ then execute the script as a root user, with the absolute path to the ZENworks Linux Management server mount as the argument.
For example,
/bin/sh sles9-to-sles11.sh /mnt/zlm-server - If the device's operating system is a 32-bit architecture, then skip to step 24. If it is a 64-bit architecture, run the following commands at the command prompt :
/opt/novell/eDirectory/bin/ndspath
ndsconfig upgrade -a admin.system -w <zlm administrator password> --config-file /etc/nds.conf
cp /etc/opt/novell/eDirectory/conf/nds.conf /etc/nds.conf
/etc/init.d/ndsd stop
rm /etc/opt/novell/eDirectory/conf/nds.conf - Restart the Primary and Secondary Servers by using the command
zlm-config --restart
Known issues:
1.The package locks are not retained after upgrading to SLES 11
2.Policies assigned with the Relative to refresh schedule are re-enforced after upgrading to SLES 11.
1.The package locks are not retained after upgrading to SLES 11
2.Policies assigned with the Relative to refresh schedule are re-enforced after upgrading to SLES 11.
Upgrading a device from SLES 9 to SLES 11 with ZENworks Linux Management Agent Installed
- If the SLES 9 device has an earlier version of ZENworks Linux Management agent installed, it is necessary to first upgrade the agent to ZENworks 7.3 Linux Management before upgrading from SLES 9 to SLES 11. For more information on how to upgrade to ZENworks 7.3 Linux Management, see the Upgrade chapter in the ZENworks 7.3 Linux Management Installation guide (https://www.novell.com/documentation/zlm73).
- Shutdown the zmd if it is running by using the following command:
rug shutdown - Run the following command to uninstall all the agent packages on the device:
rpm -e novell-zenworks-zmd `rpm -q --whatrequires novell-zenworks-zmd` - Shutdown the SLES 9 device.
- Upgrade the device from SLES 9 to SLES 11 by using the SLES 11 bootable media. For more information, see the SUSE Linux Enterprise Server 11 documentation.
- Follow the on-screen prompts and proceed with the installation.
- On the Installation Mode page, select the Update and Include Add-on Products from Separate Media options, then click Next to continue with the installation.
- On the Media Type page, select the media in which the ZENworks Linux Management YAST add-on agent ISO is located (see "Installing the ZENworks Agent by Using the YaST Add-on" in the ZENworks 7.3 Linux Management Installation guide https://www.novell.com/documentation/zlm73).
For example, select NFS as the media type if the ISO is located on an NFS server. - 9.Accept the license agreement, and proceed with the installation.
- On the Installation Settings page, click Update Options .
- Select the Update with installation of New Software and Filters based on the selection option, then click Select Patterns . The Software Selection and System Tasks page is displayed.
- In the Add-on group, select from the following patterns:
a. ZLM Agent NoX
b. ZLM Agent X
c. ZLM Agent Imaging
d. ZLM Agent OEM
Note: Do not select the ZLM Agent All option from the list. - For every selected pattern, click Packages > All in this List > Update unconditionally .
- (Conditional) If the ZENworks Linux Management is configured with a PostgreSQL database running on the same device, filter based on the Search criterion, then search for postgresql packages.
Select the postgresql package, then click Packages > All in this List > Update unconditionally . - Click Accept to accept all the settings configured so far, and proceed to upgrade to SLES 11.
- When prompted for the Customer Center Configuration, select Configure Later . The customer center can only be configured after upgrading to SLES 11.
- Do the following after the upgrade process is complete:
a. Shutdown the zmd by using the command
rug shutdown
b. Download the script sles9-to-sles11.sh from https://download.novell.com/Download?buildid=DT5YJ-RVlfY~ then execute the script as a root user by using the command
/bin/sh sles9-to-sles11.sh
c. Start the zmd by using the command
/etc/init.d/novell-zmd start
Known issues:
1.The package locks are not retained after upgrading to SLES 11.
2.Policies assigned with the Relative to refresh schedule are re-enforced after upgrading to SLES 11
Additional Information
If the requirement is to upgrade from SLES 10 to SLES 11, see TID 7002790 "Upgrading a device with ZLM from SLE 10 to SLE 11" at https://www.novell.com/support