Upgrading a device with ZLM from SLE 10 to SLE 11

  • 7002790
  • 22-Mar-2009
  • 30-Apr-2012

Environment

Novell ZENworks 7.3 Linux Management - ZLM7.3
Novell SUSE Linux Enterprise Desktop 10
Novell SUSE Linux Enterprise Server 10
Novell SUSE Linux Enterprise Desktop 11
Novell SUSE Linux Enterprise Server 11

Situation

How to upgrade a device from SLES 10 to SLES 11 with ZENworks Linux Management Server installed, or upgrade a device from SLES 10 / SLED 10 to SLES 11 / SLED 11 with ZENworks Linux Management Agent installed.

Resolution

Upgrading a device from SLES 10 to SLES 11 with ZENworks Linux Management Server Installed
  1. If the SLES 10 device has an earlier version of ZENworks Linux Management server installed, it must first be upgraded to ZENworks 7.3 Linux Management before upgrading from SLES 10 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).
  2. If the ZENworks Linux Management server is configured with a PostgreSQL database running on the same device, a  backup must be taken of the existing PostgreSQL database. If the ZENworks Linux Management server is configured with an Oracle database or an external PostgreSQL database, skip to Step 3.
    To backup 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
  3. Shutdown the SLES 10 device.
  4. Upgrade the device from SLES 10 to SLES 11 by using the SLES 11 bootable media. For more information, see the SUSE Linux Enterprise Server 11 documentation.
  5. Follow the on-screen prompts and proceed with the installation.
  6. On the Installation Mode page, select the Update and Include Add-on Products from Separate Media options, and click Next to continue with the installation.
  7. 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, if the ISO is located on an NFS server, select NFS as the media type.
  8. Accept the license agreement, and proceed with the installation.
  9. On the Installation Settings page, click Update Options.
  10. Select the Update with installation of New Software and Filters based on the selection option, and click Select Patterns. The Software Selection and System Tasks page is displayed.
  11. In the Add-on group, select from the following patterns:
    a. ZLM Agent NoX
    b. ZLM Agent All
    c. ZLM Agent X
    d. ZLM Agent Imaging
    e. ZLM Agent OEM
  12. For every selected pattern, click Packages > All in this List > Update unconditionally.
  13. (Conditional) If the ZENworks Linux Management is configured with a PostgreSQL database running on the same device, filter based on the Search criterion, and search for postgresql packages.
  14. Select the postgresql package, and click Packages > All in this List > Update unconditionally.
  15. Click Accept to accept all the settings configured so far, and proceed to upgrade to SLES 11. Continue with Step 19 only 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 17.
  16. Once the device is upgraded to SLES 11, do the following:
    a. Stop all the ZENworks Services on both the Primary and Secondary Servers by using the following command:
    zlm-config --stop
    b. 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
    c. Log in to the database as a PostgreSQL user by using the following command:
    su postgres
    d. Restore the database by running the following command:
    psql template1 -f /tmp/postgre_dump
    e. Log out as postgres user and login as super user.
    f. 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
    g. Restart the PostgreSQL database by using the following command:
    /etc/init.d/postgresql restart
  17. Restart all the ZENworks Services on both the Primary Servers and Secondary Servers by using the following command:
    zlm-config --restart

Upgrading a device from SLES 10 / SLED 10 to SLES 11 / SLED 11 with ZENworks Linux Management Agent Installed

  1. Shutdown the SLES 10 device.
  2. Upgrade the device from SLES 10 / SLED 10 to SLES 11 / SLED 11 by using the SLES 11 / SLED 11 bootable media. For more information, see the SUSE Linux Enterprise Server 11 documentation.
  3. Follow the on-screen prompts and proceed with the installation.
  4. On the Installation Mode page, select the Update and Include Add-on Products from Separate Media options, and click Next to continue with the installation.
  5. 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, if the ISO is located on an NFS server, select NFS as the media type.
  6. Accept the license agreement, and proceed with the installation.
  7. On the Installation Settings page, click Update Options.
  8. Select the Update with installation of New Software and Filters based on the selection option, and click Select Patterns. The Software Selection and System Tasks page is displayed.
  9. In the Add-on group, select from the following patterns:
    a. ZLM Agent NoX
    b. ZLM Agent All
    c. ZLM Agent X
    d. ZLM Agent Imaging
    e. ZLM Agent OEM
  10. For every selected pattern, click Packages > All in this List > Update unconditionally.
  11. Complete the upgrade process.

Additional Information

Note: After migrating a device from SLES 10 to SLES 11 or SLED 10 to SLED 11, the target for the devices is changed to SLES 11 or SLED 11. Therefore, the bundles containing the packages with target platform SLES 10 or SLED 10 that are assigned to these devices will no longer be applicable.

If the requirement is to upgrade from SLES 9 to SLES 11, see TID 7003597 "Upgrading a device with ZLM from SLES 9 to SLES 11" at https://www.novell.com/support