Upgrading a device with ZLM from SLES 9 to SLES 11

  • 7003597
  • 22-Jun-2009
  • 30-Apr-2012

Environment

Novell ZENworks 7.3 Linux Management - ZLM7.3
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
  1. 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).
  2. Shutdown the zmd if it is running by using the command
    rug shutdown
  3. Run the following command to uninstall all the agent packages from the device:
    rpm -e novell-zenworks-zmd `rpm -q --whatrequires novell-zenworks-zmd`
  4. If the ZENworks Linux Management server is configured with an Oracle database or an external PostgreSQL database, skip to Step 6
  5. 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
  6. Shutdown the SLES 9 device.
  7. 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.
  8. Follow the on-screen prompts and proceed with the installation.
  9. 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.
  10. 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.
  11. Accept the license agreement, and proceed with the installation.
  12. On the Installation Settings page, click Update Options .
  13. 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.
  14. 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.
  15. For every selected pattern, click Packages > All in this List > Update unconditionally .
  16. (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.
  17. Select the postgresql package, then click Packages > All in this List > Update unconditionally .
  18. Click Accept to accept all the settings configured so far, and proceed to upgrade to SLES 11.
  19. When prompted for the Customer Center Configuration, select Configure Later . The customer center can only be configured after upgrading to SLES 11.
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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.

 
Upgrading a device from SLES 9 to SLES 11 with ZENworks Linux Management Agent Installed
  1. 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).
  2. Shutdown the zmd if it is running by using the following command:
    rug shutdown
  3. Run the following command to uninstall all the agent packages on the device:
    rpm -e novell-zenworks-zmd `rpm -q --whatrequires novell-zenworks-zmd`
  4. Shutdown the SLES 9 device.
  5. 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.
  6. Follow the on-screen prompts and proceed with the installation.
  7. 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.
  8. 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. 9.Accept the license agreement, and proceed with the installation.
  10. On the Installation Settings page, click Update Options .
  11. 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.
  12. 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.
  13. For every selected pattern, click Packages > All in this List > Update unconditionally .
  14. (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 .
  15. Click Accept to accept all the settings configured so far, and proceed to upgrade to SLES 11.
  16. When prompted for the Customer Center Configuration, select Configure Later . The customer center can only be configured after upgrading to SLES 11.
  17. 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