Update or Upgrade BIG-IP HA Systems Using The TMOS Shell - BIG-IP Update and Upgrade Guide
Update or Upgrade BIG-IP HA Systems Using The TMOS Shell - BIG-IP Update and Upgrade Guide
Update or Upgrade BIG-IP HA Systems Using The TMOS Shell - BIG-IP Update and Upgrade Guide
Contents
Chapter sections
Introduction
Upgrade vs. update
Prerequisites
Upload a software image to a BIG-IP system
Windows systems
Mac OS or Linux systems
Perform a software update or upgrade on a BIG-IP system
Reboot to a newly updated or upgraded software volume
Test the update or upgrade
Verify the configuration
Force the active BIG-IP to standby
Troubleshoot
Back out of your software update or upgrade
Common issues, possible causes, and resolutions
Tables
Introduction
This chapter describes how to upgrade BIG-IP high availability (HA) systems using the TMOS Shell (tmsh).
If you prefer to use the Configuration utility, refer to Chapter 7: Update or upgrade BIG-IP HA systems using
the Configuration utility.
This procedure does not apply to BIG-IP Virtual Edition (VE) systems deployed using LTM_1SLOT
installation images, which are limited by disk space by design. While it is possible to expand disk space on
LTM_1SLOT BIG-IP systems and perform an upgrade, that procedure is out of scope for this article. For
more information, refer to K14946: Overview of BIG-IP VE image sizes.
Successfully upgrading the BIG-IP system requires some planning and preparation, such as checking the
current health of the BIG-IP system and backing up the configuration. Failure to perform these procedures
can lead to unexpected down time and extended maintenance windows.
Also, to decrease the duration of the maintenance window, you can upgrade the standby BIG-IP systems in
HA configurations during production. However, in critical environments, you may choose to perform the
entire upgrade during a maintenance window. For more information, refer to Chapter 4: Prepare to update or
upgrade the BIG-IP system.
This chapter may use the word upgrade to refer to either a software upgrade or update. For a definition that
explains the difference between the two terms, refer to Upgrading vs. updating in the Introduction.
Prerequisites
You have access to the device serial terminal or virtual serial terminal console for VE systems.
You have administrative (root) permissions to the BIG-IP system.
You followed the steps in Chapter 4: Prepare to update or upgrade the BIG-IP system.
You installed a Secure Copy (SCP) protocol client utility on your local computer to upload files to the
BIG-IP system. Linux and Mac OS systems typically already have SCP utilities installed, but Windows
users must install third party utilities such as WinSCP.
SCP is the preferred method to transfer files to or from an F5 device. SCP securely transfers files between
hosts using the SSH protocol for authentication, encryption, and data transfer. For more information about
transferring files to or from an F5 system, refer to K175: Transferring files to or from an F5 system.
Windows systems
The WinSCP utility is third-party software that provides a graphical user interface to transfer files between
systems using SCP. For instructions on installing the software, refer to your software vendor documentation.
Impact of procedure: Performing the following procedure should not have a negative impact on your
system.
Continue connecting to an unknown server and add its host key to a cache?
Mac OS or Linux system typically come with the SCP utility. If you need to install the SCP utility, refer to
your software vendor documentation.
Impact of procedure: Performing the following procedure should not have a negative impact on your
system.
For example, to upload the BIGIP-16.0.0-0.0.12.iso image, you enter the following command:
The upgrade process does not affect the existing boot location; therefore, you can boot back in to the original
volume if any issues occur during the upgrade process. Consequently, if you want to limit the duration of the
maintenance window, you can perform the actual installation during normal operation, and then schedule a
separate maintenance window to reboot the BIG-IP system into the newly upgraded software volume. The
configuration from the active boot location automatically copies to the new boot location during the upgrade
process. You cannot install to the current active boot location.
Also, ensure that you already booted your system into the software volume that contains the configuration
you are planning to upgrade. If you did not already boot the system into that volume, restart your system to
that software volume before you begin the following procedure. By default, during the upgrade process, the
BIG-IP system imports the current running configuration from the active volume into the target volume. To
prevent the system from importing the configuration during the upgrade process, refer to K13438:
Controlling configuration import when performing software installations.
In BIG-IP HA configurations, first you perform the upgrade on the standby system, then you fail over and
test applications, before you perform the upgrade on peer BIG-IP systems.
Impact of procedure: During the upgrade process on the standby BIG-IP system, the active BIG-IP has no
backup. In critical environments, F5 recommends performing the entire upgrade during a maintenance
window.
1. Log in to the command line of the standby BIG-IP system using the Advanced Shell (bash).
2. Enter the following command to view information about the software images that are available for
installation on the BIG-IP system:
3. Enter the following command to view information about the current BIG-IP installed images.
Make a note of the Volume name, such as HD1.1, so that you can use it when you install the upgrade
image.
---------------------------------------------------
Sys::Software Status
Volume Product Version Build Active Status
---------------------------------------------------
HD1.1 BIG-IP 14.1.0 0.0.116 yes complete
4. Use the following command syntax to create a new volume and install an available image to the new
volume:
tmsh install sys software image <BIG-IP image ISO name> volume <volume name> create-volume
Note: If you are installing over an existing volume that is not currently active, omit the create-volume
option. You cannot install over the current active volume. Additionally, when selecting the new
volume name, you can use any combination of lowercase alphanumeric characters (a-z, 0-9) and the
hyphen (-). The volume set name can be from 1 to 32 characters in length but cannot be only one 0
(zero) character (for example HD1.0 or MD1.0). For example, volume names can be project related,
such as HD1.Development, or they can be simply numeric, such as HD1.2.
For example, to create a volume named HD1.2 and install the BIGIP-16.0.0-0.0.12.iso image to that
volume, you enter the following command:
----------------------------------------------------------------
Sys::Software Status
Volume Product Version Build Active Status
----------------------------------------------------------------
HD1.1 BIG-IP 14.1.0 0.0.116 yes complete
HD1.2 BIG-IP 16.0.0 0.0.12 no installing 10.000 pct
You can also use the watch utility to monitor the installation status, for example you enter the
following command syntax:
This causes the screen to refresh every 30 seconds and provide the current installation status. Select
Ctrl+c to exit the watch utility.
Impact of procedure: This procedure requires that you restart the system. During this time, the system is not
available to process traffic, nor can it serve as a backup to your active BIG-IP system. In critical
environments, F5 recommends that you perform this procedure during a maintenance window. Additionally,
the first time that you restart and boot to the new volume, the process can take up to 30 or more minutes,
depending on the size of the configuration.
1. Log in to the command line of the standby BIG-IP system using bash.
2. Enter the following command to view the current active BIG-IP boot location:
---------------------------------------------------
Sys::Software Status
Volume Product Version Build Active Status
---------------------------------------------------
HD1.1 BIG-IP 14.1.0 0.0.116 yes complete
HD1.2 BIG-IP 16.0.0 0.0.12 no complete
3. Optionally, use the following syntax to copy the configuration from the current active configuration to
the new boot location, prior to restarting and booting into the new volume.
Note: When you install a new image, the system automatically installs the configuration from the
current active volume to the new boot location. If you did not make any changes to the configuration
after you installed the new upgrade image, skip this step.
cpcfg --source=<volume name to copy the configuration from> <newly installed software volume>
For example, to copy the configuration from the active volume HD1.1 to the newly installed volume
HD1.2, you enter the following command:
cpcfg --source=HD1.1 HD1.2
4. Use the following command syntax to restart the system and boot to the upgraded software volume.
Important: After you enter this command, the system immediately begins restarting. The system drops
all existing connections and does not pass traffic until the restart completes and the BIG-IP
configuration loads.
For example, to boot to the volume named HD1.2, you enter the following command:
Impact of procedure: Performing this procedure should not have a negative impact on your system.
1. Log in to the command line of the standby BIG-IP system using tmsh.
2. Spot-check configuration objects to visually confirm that the expected configuration exists and is in the
expected state. Use commands similar to those in the following table to review the common
configuration elements.
Note: tmsh interactive mode provides tab completion for command options. When at the tmsh prompt,
select the Tab key to see possible command options. For most objects, you can use the list command to
see configured object parameters and the show command to see statistical information for the object.
Also, if there are multiple objects of a certain type, such as virtual servers, you can usually specify one
of those objects by entering the object name in the command. Leaving off the object name shows all
objects of that type.
Command Description
Show configuration information for one or all configured virtual
list /ltm virtual <virtual_name>
servers
show /ltm virtual
Show statistical traffic information for one or all virtual servers
<virtual_name>
list /ltm pool <pool_name> Show configuration information for one or all configured pools
show /ltm pool <pool_name> Show statistical traffic information for one or all pools
list /net vlan <vlan_name> Show configuration information for one or all configured VLANs
show /net vlan <vlan_name> Show statistical traffic information for one or all VLANs
3. Create a QKView diagnostic file by typing the following command:
Note: By default, the qkview utility creates the file /var/tmp/<hostname of the BIG-IP>.qkview.
4. Use your SCP client utility to download the QKView file from your BIG-IP system to your desktop
computer, then upload the file to iHealth and review.
For more information, refer to the Upload your QKView diagnostic file to iHealth and review
section of Chapter 4: Prepare to update or upgrade the BIG-IP system.
If the BIG-IP device has more than one traffic group, all traffic groups fail over to the next available device.
On systems with more than one traffic group and more than two BIG-IP systems, you can select the next
active BIG-IP system for each traffic group. For more information, refer to K15455872: Forcing an active
BIG-IP system into standby mode using tmsh.
Impact of procedure: This procedure interrupts traffic during failover. F5 recommends that you perform this
procedure during a maintenance window. If you encounter any problems with the newly upgraded system
after failover, you must repeat this procedure on the newly upgraded system to fail back to the previously
active system.
1. Log in to the command line of the active BIG-IP system using bash.
2. Enter the following command to view the current active BIG-IP system:
Note: You cannot directly promote the standby system to active; you can only force the active system
to standby, while logged into the active system.
-------------------------------------------
CM::Failover Status
-------------------------------------------
Color green
Status ACTIVE
Summary 1/1 active
Details
active for /Common/traffic-group-1
---------------------------------------------------------------------------------------------------
CM::Failover Connections
Local Failover Address Remote Device Packets Transitions Received Last Packet Status
---------------------------------------------------------------------------------------------------
192.0.2.2:1026 BIGIP2.example.com 11335814 15 2020-Dec-29 13:08:54 Ok
10.0.0.2:1026 BIGIP2.example.com 11331074 15 2020-Dec-29 13:08:54 Ok
Confirm that the standby system that you upgraded is listed in the Remote Device section, and that the
Status is listed as Ok. If this is not the case, go back to the standby BIG-IP system and troubleshoot.
3. Enter the following command to force the active BIG-IP system into standby mode, moving the
upgraded system to the active role:
For more information, refer to the Create a backup of the BIG-IP configuration section of Chapter
4: Prepare to update or upgrade the BIG-IP system.
Troubleshoot
If a BIG-IP system fails to upgrade and you cannot perform further troubleshooting due to time constraints,
complete the following steps before reverting to the previous BIG-IP version.
Note: If you do not perform troubleshooting before reverting changes, it may be difficult to determine a root
cause for failure. If possible, contact F5 Support while the issue is occurring so you can perform relevant data
gathering, such as creating a new QKView file.
1. To determine what may be causing the configuration load error, run the tmsh load /sys config
command from the BIG-IP command line to observe any error messages.
2. Use the qkview utility to create a QKView file.
For more information about the qkview utility, refer to K12878: Generating diagnostic data using the
qkview utility.
---------------------------------------------------
Sys::Software Status
Volume Product Version Build Active Status
---------------------------------------------------
HD1.1 BIG-IP 14.1.0 0.0.116 no complete
HD1.2 BIG-IP 16.0.0 0.0.12 yes complete
3.
3. Use the following command syntax to restart the system and boot to the previous software volume:
For example, to boot to the pre-upgrade volume named HD1.1, you enter the following command: