UFM Enterprise Appliance OS Upgrade
This section provides a step-by-step guide for UFM Enterprise Appliance Operating System upgrade procedure.
Each UFM Enterprise Appliance software has an additional tar file with a -omu.tar suffix (OMU stands for OS Manufacture and Upgrade). This tar file can be used to re-manufacture the server and to upgrade the operating system/software on the server.
Copy the OMU tar file to a temporary directory on the server.
UFM-APPLIANCE - ufm-appliance<version>-<revision>-omu.tarExtract the contents of the tar file to /tmp.
tar
xf ./ufm-appliance-<version>-<revision>-omu.tar
-C /tmp/Change to the extracted directory.
cd
/tmp/ufm-appliance-<version>-<revision>-omuAn upgrade script and an ISO file are included in the extracted directory.
ls
-1 ./# ls -1 ./
ufm-os-upgrade.sh ufm-appliance-<version>-<revision>.isoThe following flags are available in the upgrade script help.
# ufm-os-upgrade.sh --help
ufm-os-upgrade.sh will upgrade andinstall
OS packages. IMPORTANT!!! a reboot is mandatory after the finalization of this script, kernel and kernel models will not work properlyuntil
the server is rebooted. Additional SW installations will be automatically invoked after reboot, a message will pop on allopen
terminals with the installation status:"UFM-OS-FIRSTBOOT-FAILURE"
-if
installation is failed."UFM-OS-FIRSTBOOT-SUCCESS"
-if
installation succeeded. additional info will be vailablein
"/var/log/ufm_os_upgrade_<UFM-OS-VERSION>.log"
logfile
. syntax: ufm-os-upgrade.sh [options] options --appliance-sw-upgrade upgrade ufm_appliance SW as well, default is to upgrade OS only. -d,--debug debug info will be visible on thescreen
. -r,--reboot Automatically reboot the server when upgrade is finished. P.S.if
secureboot is enabled and a new certifcate is enroled the server will not automatically reboot evenif
this flag isset
. -y,--yes
wont promptfor
user acknowledgements. -h,--help print this help message.ImportantIMPORTANT!!! System reboot is mandatory once the upgrade procedure is completed. The -r flag can be used to automatically reboot the server at the end of the upgrade. Note that some kernel modules may not work properly until server reboot is performed.
Stop UFM service by running the following command:
systemctl stop ufm-enterprise.service
Run the upgrade script.
WarningSystem reboot is mandatory once the upgrade procedure is completed. The -r flag can be used to automatically reboot the server.
The -y flag can be supplied to skip user questions (the flag does not automatically reboot the server on its own. For auto reboot, combine with the -r flag)
Once a secure boot certificate is updated/installed, the script will not auto reboot even if -y and -r flags are provided. That is because the addition of certificates require manual user intervention at boot (after the upgrade).
There is a 10 seconds window to press any button when prompted during the boot procedure and insert the server root password in order to import the certificate. Further details are available in Appendix - Secure Boot Activation and Deactivation.
The --appliance-sw-upgrade flag can be supplied to upgrade the UFM Enterprise Appliance SW as well. It is not upgraded by default.In the following example the server will auto reboot when upgrade is finished.
./ufm-os-upgrade.sh -y -r
An example with the --appliance-sw-upgrade flag. Note that the UFM Enterprise appliance SW will also be upgraded.
./ufm-os-upgrade.sh -y -r --appliance-sw-upgrade
In case a secure-boot certificate is installed/upgraded, the following warning is presented:
In that case the server does not reboot automatically, a manual configuration is required at boot (a 10 second prompt appears during the boot. For more information, refer to Appendix - Secure Boot Activation and Deactivation) To continue with the upgrade procedure, manually reboot the server from Appendix - Secure Boot Activation and Deactivation.
After the reboot procedure is complete, a systemd service (ufm-os-firstboot.service) runs the remainder of the upgrade procedure. Once completed, a message is prompted to all open terminals including the status:
"UFM-OS-FIRSTBOOT-FAILURE" - if installation is failed.
"UFM-OS-FIRSTBOOT-SUCCESS" - if installation succeeded.
Example:To manually check the status, run systemctl status ufm-os-firstboot.service. If it is already finished, an error message is prompted stating that there is no such service. In that case, the log /var/log/ufm-os-firstboot.log can be checked instead.
systemctl status ufm-os-firstboot.service
Example:
Upgrade on HA is similar to the upgrade procedure on SA and needs to be done on both the Master and Standby nodes.
In case the Standby node is unavailable, the upgrade can be run on the Master node only, however, some additional steps will be required after the appliance is upgraded.
[On the Master Node]: Copy and extract the OMU tar file to a temporary directory (Refer to UFM Enterprise Appliance Software Upgrade).
[On the Standby Node]: Copy and extract the OMU tar file to a temporary directory (Refer to UFM Enterprise Appliance Software Upgrade).
[On the Master Node]: Stop UFM cluster. Run:
ufm_ha_cluster stop
[On the Master Node]: Run the upgrade script. (Run the same command on the Standby Node, no need to wait for the script to be completed, see the following step).
In HA scenario, the upgrade script should run on both the Master and Standby nodes.WarningSystem reboot is mandatory once the upgrade procedure is completed. The -r flag can be used to automatically reboot the server.
The -y flag can be supplied to skip user questions (the flag does not automatically reboot the server on its own. For auto reboot, combine with the -r flag)
Once a secure boot certificate is updated/installed, the script will not auto reboot even if -y and -r flags are provided. That is because the addition of certificates require manual user intervention at boot (after the upgrade).
There is a 10 seconds window to press any button when prompted during the boot procedure and insert the server root password in order to import the certificate. Further details are available in Appendix - Secure Boot Activation and Deactivation.
The --appliance-sw-upgrade flag can be supplied to upgrade the UFM Enterprise Appliance SW as well. It is not upgraded by default.
In the following example the server auro reboots once the upgrade procedure is completed:
./ufm-os-upgrade.sh -y -r
Example with the --appliance-sw-upgrade flag. The UFM Enterprise Appliance SW is also upgraded.
./ufm-os-upgrade.sh -y -r --appliance-sw-upgrade
[On the Standby Node]: Run the upgrade script.
It is highly recommended to upgrade both servers as closely as possible to one another. There is no need to wait for the script to complete running on the Master Node .
In case a Secure Boot certificate is installed/upgraded, the following warning is prompted:
The server does not auto reboot; a manual configuration is required at boot (a 10 second prompt appears at boot. Refer to Appendix - Secure Boot Activation and Deactivation.
To continue with the upgrade procedure, manually reboot the server, as described in Appendix - Secure Boot Activation and Deactivation.
After the reboot procedure is complete, a systemd service (ufm-os-firstboot.service) runs the remainder of the upgrade procedure. Once completed, a message is prompted to all open terminals including the status:
"UFM-OS-FIRSTBOOT-FAILURE" - if installation is failed.
"UFM-OS-FIRSTBOOT-SUCCESS" - if installation succeeded.
Example:To manually check the status, run systemctl status ufm-os-firstboot.service. If it is already finished, an error message is prompted stating that there is no such service. In that case, the log /var/log/ufm-os-firstboot.log can be checked instead.
systemctl status ufm-os-firstboot.service
Example:
The upgrade script temporarily halts the DRBD service from migrating between the Master and Standby nodes, this is achieved by setting the cluster into maintenance-mode. The maintenance-mode is lifted when the upgrade is finished on both nodes.
In case the Master and Standby node do not communicate for more than 5 minutes, the script gives up and will not automatically lift maintenance-mode. To manually remove maintenance-mode, run the following command (either on the Master or Standby nodes, no need to run on both).
Check if maintenance-mode is set:
ufm_ha_cluster status
Unset maintenance-mode null