DMF Upgrade Procedures
This chapter describes how to upgrade the DANZ Monitoring Fabric (DMF) Controller and fabric switches after initial installation.
Upgrading the Controller
After copying the upgrade image to the image repository, use the upgrade
stage
command to copy the upgrade image to the alternate partition and prepare the Controller for the upgrade.
The boot image remains in the active partition after copying the ISO image file to the alternate partition. After entering the upgrade launch
command, the upgrade image is changed to the boot image and the Controller reboots.
The upgrade launch
command copies the active state of the Controller to the alternate partition and reboots the Controller using the upgrade image. After completing the upgrade process, the alternate and active partitions are reversed, the Controller is running with the upgrade image, and the older image remains available in the alternate partition until a new image is copied into it, which will overwrite it.
As long as the original image remains in the alternate partition, use the boot partition alternate command to restore the Controller to its previous software and configuration.
Log files are written in a separate partition, available from either of the two images by entering the show logging controller
command.
Upgrade Procedure Summary
Procedure
Upgrade Options
The following options are available for use with the upgrade command.
cluster: with the cluster option, the upgrade command is executed cluster-wide. The user must log in to the active Controller to run the cluster option.
launch: Complete the upgrade process by rebooting the Controller from the alternate partition and transferring state and configuration information from the Controller to the upgraded Controller and its running-config. This keyword manages the transition from the current version to the next version, which may include rebooting all Controllers in the cluster, rebooting.
- support-bundle: Generate a support bundle for use by Arista tech support.
- switch-timeout: Optionally, specify the number of seconds to wait before terminating the command to a switch during the upgrade.
- pre-launch-check: Identifies the status of the Controller regarding readiness for upgrade.
- stage: Prepares the platform for the upgrade ahead of the actual upgrade process by copying the upgrade image to the alternate partition on the Controller.
Copying the ISO Image File to the Controller
The ISO image file is a software image that includes the files required to complete the upgrade of the Controller. It also contains the files for installing or upgrading the Switch Light OS image on switches. The primary component of the upgrade image is a new root file system (rootfs) for the Controller.
Error: Invalid Use: No space left, use "delete image" command to free space
It is therefore required to remove all images from the image partition, including the image for the currently running version, to free up space.
CONTROLLER-1# show cluster image
# Checksum Cluster NodesProductVersion Build
-|--------|--------------------------|----------------------|-------|-----|
1 d301aCONTROLLER-1, CONTROLLER-2 DANZ Monitoring Fabric 8.5.0 33
CONTROLLER-1#
CONTROLLER-1# delete cluster image all
all: delete: confirm ("y" or "yes" to continue): yes
CONTROLLER-1#
Note that you can also delete images on the individual Controllers like so:
CONTROLLER-1# show image
CONTROLLER-1# delete image all
Even though you have deleted all the images from the /images repository, you can still roll back to the current version after the next upgrade operation, as the current image is still present in the boot partition.controller-1# copy <source> <destination>
- scp://<user>@<host>:path: Remote server filename, path, and user name with access permissions to the file. The remote system prompts for a password if required.
http://
: HTTP URL including path and filename.https://
: HTTPS URL including path and filename
DMF-<X.X.X>-Controller-Appliance-<date>.iso
from myscpserver.example.com to the Controller alternate partition for both active and standby Controller:
controller-1# # copy scp://이 이메일 주소가 스팸봇으로부터 보호됩니다. 확인하려면 자바스크립트 활성화가 필요합니다.:*DMF-<X.X.X>-Controller-Appliance-<date>.
iso* image://cluster
controller-1# show cluster image
Staging the Upgrade
The upgrade cluster stage command applies the specified upgrade image into the alternate partition for both active and standby Controllers. This command prepares the platform for an upgrade by populating the alternate partition with the contents of the new image. This is a separate step from the launch step, where the upgraded image becomes the active image to prepare the platform ahead of the upgrade process.
To view the upgrade images currently available, use the show upgrade image or show cluster image commands.
Use the upgrade cluster stage command to prepare the Controllers for the upgrade. This action copies the running-config to a safe location and marks the alternate partition as the boot partition.
controller-1# # upgrade cluster stage
Upgrade stage: alternate partition will be overwritten
proceed ("yes" or "y" to continue): y
Upgrade stage: copying image into alternate partition
Upgrade stage: checking integrity of new partition
Upgrade stage: New Partition Ready
Upgrade stage: Upgrade Staged
controller-1# #show boot partition
This command lists the available partitions and the information about the Controller versions installed on each. In this example, the original image remains in active state and is still the boot image, meaning if a reboot occurs now, the original image is used to reboot. The upgrade image will not be used to boot until it has been changed to the boot image, which is one of the effects of the upgrade cluster launch command.
controller-1# # show upgrade progress
Launching the Upgrade
The upgrade cluster launch command reboots the system using the upgrade image in the alternate partition and copies the current state from the previous Controller. The system collects information from the existing cluster, for example, the current running- config and saves this state in the staged partition, so it is available for the new cluster.
Once the running-config is applied, the existing operational state of the existing cluster is requested and then applied to the new cluster. The new cluster requests the switches from the old cluster, adjusts its local configuration to describe this new ownership, and reboots the switches.
controller-1# upgrade cluster launch
yes
. The standby Controller reboots and displays the following messages while the active Controller waits for the standby Controller to boot up:
Upgrade Launched, Rebooting
Broadcast message from root@controller (unknown) at 19:40 ...The system is going down for
reboot
NOW!User initiated reboot
While rebooting, the SSH terminal session is terminated. Reconnect after the reboot is complete.
DMF Switch Automatic Upgrade
When the fabric switch reboots, it compares its current software image, manifest, and startup-config to the information in the switch manifest that the Controller sends after the switch reboots. The switch optimizes the process by caching its last known good copies of the software image and the startup-config in its local flash memory.
The switch automatically starts the upgrade process when it reboots if the ZTF server has a software image or startup-config with a different checksum than it currently has. This check is performed every time the switch restarts.
Verifying the Upgrade
After completing the upgrade process, verify that both Controllers and the fabric switches have been upgraded to the correct DANZ Monitoring Fabric and Switch Light OS versions.
show version
command, as shown in the following example:
controller-1># show version
controller-1># show switch all desc
This command displays the current switch version.
Verify Persistent IPAM Assigned IP Addresses after Upgrade
IPAM-assigned IP addresses for switches are persistent across DMF upgrades.
Configuration
No additional configuration changes are required to keep IPAM-assigned IP address configuration persistent across cluster upgrades. However, this assumes that IPAM has been previously configured.
CLI Commands
Refer to the sections Using L2 ZTF (Auto-Discovery) Provisioning Mode through Static Address Assignment Troubleshooting and Limitations for IPAM and switch IP address configuration, which is also valid after the upgrade.
Rolling Back an Upgrade
To restore the system to the previous image, complete the following steps:
Procedure