NOTE:All of the examples in this section reflect the x86_64 (64-bit) platform.
The information and instructions in the following sections help you perform an unattended, online upgrade from Open Enterprise Server (OES) 2 SP2 to OES 2 SP3 by using ZENworks Linux Management (ZLM) and the OES 2 SP3 patch channel.
After completing the instructions in the following sections, OES 2 SP2 servers are upgraded according to the schedule you set.
Before you can use ZENworks Linux Management to upgrade OES 2 SP2 servers to OES 2 SP3, you must have the following:
The ZENworks Linux Management 7.3 IR3 server installed and running on your network.
The ZENworks Linux Management 7.3 IR3 Agent installed on each OES 2 SP2 server that you plan to upgrade.
IMPORTANT:The agent included with OES provides package-management capabilities through the ZENworks Management Daemon. Unless the full agent is installed, updates cannot be scheduled from the ZENworks Linux Management server.
Each OES 2 SP2 server registered with the ZENworks Linux Management server.
Each OES 2 SP2 server updated with the latest OES 2 SP2 and SUSE Linux Enterprise Server (SLES) 10 SP3 patches.
Use the instructions in this section to create a mirror of the following OES 2 SP3 patch channels on your ZENworks Linux Management server.
OES2-SP3-Online
OES2-SP3-Pool
Save the zlm-mirror-conf.xml file to a working area on your workstation or server. For a sample file, see Section C.1.7, Sample XML file for Mirroring.
Open zlm-mirror-conf.xml in a UNIX text editor and customize it as shown in the following table:
Replace/Remove |
With |
---|---|
USERID |
The DeviceID of your ZENworks Linux Management server, which is used to authenticate to the nu.novell.com server.
|
PASSWORD |
The Secret of your ZENworks Linux Management server.
|
ZLM-ADMINID |
The account name that the mirror operation uses to attach to the local ZENworks Linux Management server. Replace this only if you are using a different server administrative account to mirror the channels. |
ZLM-ADMINPASSWORD |
The password for the administrative account (the default is administrator) that the mirror operation uses to attach to the local server. |
<Target> </Target> |
The two <Target>...</Target> entries in each section indicate that both the i586 (32-bit) and x86_64 (64-bit) patches are needed. If you have only one architecture type deployed, you can remove the entry for the architecture you don’t use. |
IMPORTANT:These customizations are required for the mirror operation to succeed. Experienced administrators might want to make further modifications to the zlm-mirror-conf.xml file, but such modifications should be confined to those fields that have no values specified. For information on customizing the file, see the information in Mirroring Software and zlmmirror(1) in the Novell ZENworks 7.3 Linux Management Administration Guide.
If the zlm-mirror-conf.xml file is on your workstation, copy it to a directory of your choosing on the ZENworks Linux Management server, for example /root/zlm_conf_files.
As the root user at a terminal prompt, change to the directory containing the zlm-mirror-conf.xml file and enter the following command:
zlmmirror m -c zlm-mirror-conf.xml -v --force-nevra
The files start downloading to the server. Depending on your download speed, the mirror operation could take a few hours to complete.
For the upgrade process, you need to create the following bundles on the ZLM server:
You must create the answer file and the prereboot.sh file before executing the following steps.
Log in to ZENworks Control Center.
Click
.In the
panel, click > .Select
, then click .In the OES2-SP3-file-bundle.
field, typeClick
.The file bundle is ready to have files added to it.
Add the prereboot.sh file to OES2-SP3-file-bundle:
In the
panel, click > .In the /tmp.
field, typeIn the
list, select .Click prereboot.sh script file on your workstation or server, then click .
, browse to and select theThe prereboot.sh file is set to be uploaded to the /tmp directory on each server being upgraded.
Add the answer file to OES2-SP3-file-bundle:
In the
panel, click > .In the /opt/novell/oes-install.
field, typeIn the
list, select .Click answer file on your workstation or server, then click .
, browse to and select theThe prereboot.sh and answer files are listed.
Below the
panel, click .An empty
list is displayed.Click
.In the
drop-down list, select .In the
drop-down list, select .Copy and paste the following contents to the
box:#!/bin/sh /etc/init.d/atd start at now + 2 minutes -f /tmp/prereboot.sh
Click
> .Click
> .The file bundle is created.
Log in to ZENworks Control Center.
Click
.In the
panel, click > .Select
, then click .In the OES2-SP3-firstboot-bundle.
field, typeClick
.The file bundle is ready to have files added to it.
In the
panel, click .In the yast2-firstboot and click .
panel > field, typeSelect
, then click .The yast2-firstboot RPM is available as part of the SLES 10 SP4 bundle on the ZENworks Linux Management server.
In the
panel, click .In the evms and click .
panel > field, typeSelect the rpm evms2.5.5-24.73.17, then click .
In the
panel, click .In the ruby, then click .
panel > field, typeSelect the ruby-1.8.6.p369-0.5 and ruby-devel-1.8.6.p369-0.5 RPMs, then click .
Click
.Under
, click .In the
drop-down list, select .In the
drop-down list, select .Copy and paste the contents from Section C.2.6, Post-Installation Script File to the box.
Click
> .Click
> .The post-installation script is added to the Scriptable Actions panel.
After creating the OES2-SP3-firstboot-bundle, click the bundle and go to the yast2-firstboot RPM, ensure that the state of freshen is set to false.
tab. For theAssign the bundles to the OES 2 SP2 servers, then schedule the bundles to install appropriately:
In the ZENworks Control Center, click
.In the left column, select
.Click
> .Click
, click the down-arrow by , then select the servers that you want to assign the bundles to.Click
> .Schedule the catalog to install according to your organization’s policy.
In the left column, select
, , and .Click
> .Click
, click the down-arrow by , then select the servers you want to upgrade.Click
> .Schedule the bundles to install according to your organization’s policy.
Click
> > .IMPORTANT:The servers you selected in the preceding steps are now ready to be upgraded to OES 2 SP3. The actual upgrade operations occur automatically as scheduled.
For the upgrade process to run without user intervention, each SP3 server must have an eDirectory password answer file for the YaST install.
As root, open a terminal prompt.
At the prompt, enter the following command:
sudo yast2 create-answer-file ldap_password optional_domain_admin_password
Replace ldap_password with the LDAP (eDirectory) Admin password and optional_domain_admin_password with the Domain Services for Windows (DSfW) Domain Administrator password, if it is needed for any of the servers being upgraded. (The existence of a second password in the answer file does not affect the upgrade process on servers that don’t have DSfW installed.)
IMPORTANT:Because passwords on the command line might include special characters, it is a good idea to surround the password with single quotes. For example, if the password is pa$$word, enter it as ‘pa$$word’.
All the uses of an exclamation mark (!) require that you escape the character by using a backslash (\). For example, the password novell! must be specified as novell\! or preferably ‘novell/!’.
A dash (-) used at the beginning of a password also requires escaping. For example, -novell- must be specified as \-novell- or preferably ‘\-novell-’.
Press
to close the confirmation message.From your working directory, copy the resulting answer file to the workstation or server that you will use to create the bundles.
The prereboot.sh script checks whether the bundles are installed. On successful installation of all bundles, it triggers a reboot.
Open any text editor.
Copy and paste the following text into the text editor, then save it as prereboot.sh. Copy the prereboot.sh file to the workstation or server that you will use to create the bundles.
#!/bin/bash status="j" while [ $status != "ii" ] ; do sleep 10 status=i`rug bl |grep OES2-SP3-Online-bundle |cut -f1 -d '|'` done status="j" while [ $status != "ii" ] ; do sleep 10 status=i`rug bl |grep OES2-SP3-firstboot-bundle |cut -f1 -d '|'` done sleep 60 /sbin/reboot
IMPORTANT:In the above script, the bundle names are OES2-SP3-Online-bundle and OES2-SP3-firstboot-bundle. If your bundle name is different, change the script accordingly. If the bundle names are inaccurate, the reboot is not triggered after installation of the bundles.
The following post-installation script is added to the OES2-SP3-firstboot-bundle. See Step 20.
#!/bin/sh touch /etc/reconfig_system chkconfig firstboot on cat > /etc/YaST2/firstboot.xml << EndOfText <?xml version="1.0"?> <!DOCTYPE productDefines SYSTEM "/usr/share/YaST2/control/control.dtd"> <productDefines xmlns="http://www.suse.com/1.0/yast2ns" xmlns:config="http://www.suse.com/1.0/configns"> <!-- : firstboot.xml 35106 2007-01-05 13:42:15Z jsrain $ Work around for the text domain textdomain="firstboot" --> <textdomain>firstboot</textdomain> <workflows config:type="list"> <workflow> <defaults> <enable_back>yes</enable_back> <enable_next>yes</enable_next> <archs>all</archs> </defaults> <stage>firstboot</stage> <label>Channel Upgrade</label> <mode>installation</mode> <modules config:type="list"> <module> <label>upgrade</label> <enabled config:type="boolean">true</enabled> <name>channel-upgrade-oes</name> </module> </modules> </workflow> </workflows> </productDefines> EndOfText
<ZLMMirrorConf> <Session> <RemoteServer> <Base>https://nu.novell.com/repo</Base> <Proxy></Proxy> <Type>nu</Type> <SystemID></SystemID> <User>USERID</User> <Password>PASSWORD</Password> </RemoteServer> <LocalServer> <Base></Base> <Type>zlm</Type> <User>ZLM-ADMINID</User> <Password>ZLM-ADMINPASSWORD</Password> </LocalServer> <Catalog> <Name>OES2-SP3-Pool</Name> <LocalName>oes2-sp3-pool-catalog</LocalName> <Folder>OES2-SP3</Folder> <Target>sles-10-x86_64</Target> <ExcludeTarget></ExcludeTarget> <Bundle></Bundle> <ExcludeBundle></ExcludeBundle> <Package></Package> <ExcludePackage></ExcludePackage> </Catalog> <Catalog> <Name>OES2-SP3-Online</Name> <LocalName>oes2-sp3-online-catalog</LocalName> <Folder>OES2-SP3</Folder> <Target>sles-10-x86_64</Target> <ExcludeTarget></ExcludeTarget> <Bundle></Bundle> <ExcludeBundle></ExcludeBundle> <Package></Package> <ExcludePackage></ExcludePackage> </Catalog> </Session> </ZLMMirrorConf>