Install In-Service Software Updates Using the CLI¶
The procedure for applying an in-service update is similar to that of a reboot-required update, except that the host does not need to be locked and unlocked as part of applying the update.
Procedure
Upload the update (patch).
$ sudo sw-patch upload INSVC_HORIZON_SYSINV.patch INSVC_HORIZON_SYSINV is now available
Confirm that the update is available.
$ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= =========== INSVC_HORIZON_SYSINV N nn.nn Available
Check the status of the hosts.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 Yes No nn.nn idle controller-0 192.168.204.3 Yes No nn.nn idle controller-1 192.168.204.4 Yes No nn.nn idle
Ensure that the original update files have been deleted from the root drive.
After they are uploaded to the storage area, the original files are no longer required. You must use the command-line interface to delete them, in order to ensure enough disk space to complete the installation.
$ rm </path/patchfile>
Caution
If the original files are not deleted before the updates are applied, the installation may fail due to a full disk.
Apply the update (patch).
$ sudo sw-patch apply INSVC_HORIZON_SYSINV INSVC_HORIZON_SYSINV is now in the repo
The update state transitions to Partial-Apply:
$ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= ============= INSVC_HORIZON_SYSINV N nn.nn Partial-Apply
As it is an in-service update, the hosts report that they are not ‘patch current’, but they do not require a reboot.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 No No nn.nn idle controller-0 192.168.204.3 No No nn.nn idle controller-1 192.168.204.4 No No nn.nn idle
Install the update on controller-0.
$ sudo sw-patch host-install controller-0 ............. Installation was successful.
Query the hosts to check status.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 No No nn.nn idle controller-0 192.168.204.3 Yes No nn.nn idle controller-1 192.168.204.4 No No nn.nn idle
The controller-1 host reports it is now ‘patch current’ and does not require a reboot, without having been locked or rebooted
Install the update on worker-0 (and other worker nodes and storage nodes, if present)
$ sudo sw-patch host-install worker-0 .... Installation was successful.
You can query the hosts to confirm that all nodes are now ‘patch current’, and that the update has transitioned to the Applied state.
$ sudo sw-patch query-hosts Hostname IP Address Patch Current Reboot Required Release State ============ ============== ============= =============== ======= ===== worker-0 192.168.204.24 Yes No nn.nn idle controller-0 192.168.204.3 Yes No nn.nn idle controller-1 192.168.204.4 Yes No nn.nn idle $ sudo sw-patch query Patch ID RR Release Patch State ==================== == ======= =========== INSVC_HORIZON_SYSINV N nn.nn Applied