- Table of Contents
-
- 01-Fundamentals Configuration Guide
- 00-Preface
- 01-CLI configuration
- 02-RBAC configuration
- 03-Login management configuration
- 04-FTP and TFTP configuration
- 05-File system management configuration
- 06-Configuration file management configuration
- 07-Software upgrade configuration
- 08-ISSU configuration
- 09-Automatic configuration
- 10-Device management configuration
- 11-Tcl configuration
- 12-Management with BootWare
- 13-Python configuration
- 14-License management
- Related Documents
-
Title | Size | Download |
---|---|---|
07-Software upgrade configuration | 84.70 KB |
Software file naming conventions
Comware image redundancy and loading procedure
Upgrade restrictions and guidelines
Preloading the BootWare image to BootWare
Specifying startup images and completing the upgrade
Upgrading PEXs from the parent fabric (IRF 3.1)
Upgrading software
Overview
Software upgrade enables you to add new features and fix bugs. This chapter describes types of software and methods to upgrade software from the CLI without using ISSU. For a comparison of all software upgrade methods, see "Upgrade methods."
Software types
The following software types are available:
· BootWare image—Also called a Boot ROM image. This image is a .bin file that contains a basic segment and an extended segment. The basic segment is the minimum code that bootstraps the system. The extended segment enables hardware initialization and provides system management menus. You can use these menus to load software and the startup configuration file or manage files when the device cannot start up correctly.
· Comware image—Includes the following image subcategories:
¡ Boot image—A .bin file that contains the Linux operating system kernel. It provides process management, memory management, and file system management.
¡ System image—A .bin file that contains the Comware kernel and standard features, including device management, interface management, configuration management, and routing.
¡ Feature image—A .bin file that contains advanced software features. Users purchase feature images as needed.
¡ Patch image—A .bin file released for fixing bugs without rebooting the device. A patch image does not add new features or functions.
Patch images have the following types:
- Incremental patch images—Multiple incremental patch images can coexist on the device at the same time. A new patch image can cover all, part, or none of the functions provided by an old patch image.
- Non-incremental patch images—Only one non-incremental patch image can exist on the device. The device uninstalls the old non-incremental patch image before installing a new non-incremental patch image. A new non-incremental patch image covers all functions provided by an old non-incremental patch image.
An incremental patch image and a non-incremental patch image can coexist on the device.
Comware images that have been loaded are called current software images. Comware images specified to load at the next startup are called startup software images.
BootWare image, boot image, and system image are required for an IRF member device to operate. These images might be released separately or as a whole in one .ipe package file. If an .ipe file is used, the system decompresses the file automatically, loads the .bin images and sets them as startup software images. Typically, the BootWare and startup software images for the device are released in an .ipe file named main.ipe.
Software file naming conventions
Software image file names use the chassis-comware version-image type-release format, for example, S7500EXS-CMW710-SYSTEM-E752201.bin and S7500EXS-CMW710-BOOT-E752201.bin. This document uses boot.bin and system.bin as boot and system image file names.
Comware image redundancy and loading procedure
You can specify two lists of Comware software images: one main and one backup.
The system always attempts to start up with the main images. If any main image does not exist or is invalid, the system tries the backup images. Figure 1 shows the entire Comware image loading procedure.
In this procedure, both the main and backup image lists have feature and patch images. If an image list does not have feature or patch images, the system starts up with the boot and system images after they pass verification.
If both the main and backup boot images are nonexistent or invalid, access the BootWare menu during the system startup to upgrade software.
Figure 1 Comware image loading procedure
System startup process
Upon power-on, the BootWare image runs to initialize hardware, and then the startup software images run to start up the entire system, as shown in Figure 2.
Figure 2 System startup process
Upgrade methods
Upgrading method |
Software types |
Remarks |
Upgrading from the CLI without using ISSU |
· BootWare image · Comware images |
This method is disruptive. You must reboot the entire device to complete the upgrade. |
Performing an ISSU |
Comware images |
The ISSU method enables a software upgrade without service interruption. Use this method for an IRF fabric or MPU-redundant device. For more information about ISSU, see "Performing an ISSU." |
Upgrading from the BootWare menu |
· BootWare image · Comware images |
Use this method when the device cannot start up correctly. To use this method, first connect to the console port and power cycle the device. Then press Ctrl+B at prompt to access the BootWare menu.
Upgrade an IRF system from the CLI instead of the BootWare menu, if possible. The BootWare menu method increases the service downtime, because it requires that you upgrade the member devices one by one. |
This chapter only covers upgrading software from the CLI without using ISSU.
Upgrade restrictions and guidelines
As a best practice, store the startup images in a fixed storage medium. If you store the startup images in a hot swappable storage medium, do not remove the hot swappable storage medium during the startup process.
Preparing for the upgrade
1. Use the display version command to verify the current BootWare image version and startup software version.
2. Use the release notes for the upgrade software version to evaluate the upgrade impact on your network and verify the following items:
¡ Software and hardware compatibility.
¡ Version and size of the upgrade software.
¡ Compatibility of the upgrade software with the current BootWare image and startup software image.
3. Use the release notes to verify whether the software images require a license. If licenses are required, register and activate licenses for each license-based software image. For more information about licensing, see "Managing licenses."
4. Use the dir command to verify that all IRF member devices have sufficient storage space for the upgrade images. If the storage space is not sufficient, delete unused files by using the delete command. For more information, see "Managing the file system." (Centralized IRF devices.)
5. Use FTP or TFTP to transfer the upgrade image file to the root directory of a file system on the master device. If the storage medium is partitioned, save the file to the root directory of the first file system on the storage medium. For more information about FTP and TFTP, see "Configuring FTP" or "Configuring TFTP." For more information about partitioning, see "Managing file systems."
Upgrade task list
Tasks at a glance |
Remarks |
(Optional.) Preloading the BootWare image to BootWare |
If a BootWare upgrade is required, you can perform this task to shorten the subsequent upgrade time. This task helps avoid upgrade problems caused by unexpected electricity failure. If you skip this task, the device upgrades the BootWare automatically when it upgrades the startup software images. The BootWare image preloaded into the BootWare takes effect only after you reboot the device. |
(Required.) Specifying startup images and completing the upgrade |
N/A |
Preloading the BootWare image to BootWare
Task |
Command |
Remarks |
Load the upgrade BootWare image to the Normal area of BootWare. |
bootrom update file file slot slot-number-list |
Specify the downloaded software image file for the file argument. The new BootWare image takes effect at a reboot. |
Specifying startup images and completing the upgrade
Perform this task in user view.
To specify the startup image file and complete the upgrade:
Step |
Command |
Remarks |
1. Specify main or backup startup images for the master device. |
· Use an .ipe file for upgrade: · Use .bin files for upgrade: |
Upgrade files must be saved in the root directory of a file system on the master device. If the storage medium is partitioned, save the file to the root directory of the first file system on the storage medium. |
2. Specify main startup images for each subordinate device. |
· Method 1: ¡ Use an .ipe file for upgrade: ¡ Use .bin files for upgrade: · Method 2: |
Skip this step if you have only one device. When you use the boot-loader update command, make sure you understand the following requirements and upgrade results: · If an ISSU upgrade has been performed, use the install commit command to update the main startup images on the master device before software synchronization. The command ensures startup image consistency among IRF member devices. · The boot-loader update command uses the main or backup startup image list for synchronization, instead of the current software images list. ¡ The main images list is used if the global active MPU started up with the main startup images. ¡ The backup image list is used if the global active MPU started up with the backup startup images. · Startup image synchronization will fail if any software image being synchronized is corrupted or is not available. |
3. Save the running configuration. |
save |
This step ensures that any configuration you have made can survive a reboot. |
4. Reboot the IRF 2 fabric. |
reboot |
At startup, each device reads the preloaded BootWare image to RAM, and loads the startup images. |
5. (Optional.) Verify the software image settings. |
display boot-loader [ slot slot-number ] |
Verify that the current software images are the same as the startup software images. |
Upgrading PEXs from the parent fabric (IRF 3.1)
About PEX upgrade
Perform this task to upgrade PEXs from the parent fabric in an IRF 3.1 system. You can also log in to a PEX through its console port and upgrade the PEX. Upgrading PEXs from the parent fabric has the following benefits:
· It is easy to ensure compatibility between the startup images of PEXs and the startup images of the parent fabric.
· You do not need to log in to PEXs.
This task makes the parent fabric perform the following operations:
1. Enables a file transfer service (for example, FTP) and configures all file transfer parameters.
2. Transfers the .ipe upgrade file to PEXs one by one.
3. Deletes the file transfer settings and disables the file transfer service.
After the file transfer process is completed, PEXs that successfully received the .ipe file automatically reboot to complete the upgrade. PEXs that failed to receive the .ipe file do not reboot and are not upgraded.
Restrictions and guidelines
To have sufficient space to store startup image files on a PEX, use the switchto pex command to log in to the PEX and then delete unused files.
Preparing for the upgrade
1. Use the display version command to identify the current BootWare and Comware image versions on each PEX to be upgraded.
2. Use the release notes for the upgrade software version to identify the upgrade impact on your network and verify the following items:
¡ Versions and sizes of the upgrade software images.
¡ Compatibility of the upgrade software images with the current BootWare and Comware images.
¡ Software compatibility between the PEX and the parent fabric.
3. Use FTP or TFTP to transfer the upgrade image file to the root directory of a file system on the parent fabric.
For more information about FTP and TFTP, see "Configuring FTP" and "Configuring TFTP."
Procedure
Task |
Command |
Upgrade PEXs from the parent fabric. |
boot-loader pex file ipe ipe-filename transfer-service ftp { all | slot slot-list } |
Displaying and maintaining software image settings
Execute display commands in any view.
Task |
Command |
Display current software images and startup software images. |
display boot-loader [ slot slot-number ] |
Software upgrade examples
Software upgrade example
Network requirements
As shown in Figure 3, use the file startup-a2105.ipe to upgrade software images for the IRF fabric.
Configuration procedure
# Configure IP addresses and routes. Make sure the device and the TFTP server can reach each other. (Details not shown.)
# Configure TFTP settings on both the device and the TFTP server. (Details not shown.)
# Display information about the current software images.
<Sysname> display version
# Use TFTP to download the image file startup-a2105.ipe from the TFTP server to the root directory of the flash memory on the master device.
<Sysname> tftp 2.2.2.2 get startup-a2105.ipe
# Specify startup-a2105.ipe as the main startup image file for all IRF member devices.
<Sysname> boot-loader file flash:/startup-a2105.ipe slot 1 main
<Sysname> boot-loader file flash:/startup-a2105.ipe slot 2 main
# Copy the .bin image files decompressed from startup-a2105.ipe and save them to the current directory as boot_backup.bin and system_backup.bin.
<Sysname> copy boot.bin boot_backup.bin
<Sysname> copy system.bin system_backup.bin
# Specify boot_backup.bin and system_backup.bin as the backup startup image files for all IRF member devices.
<Sysname> boot-loader file boot flash:/boot_backup.bin system flash:/system_backup.bin slot 1 backup
<Sysname> boot-loader file boot flash:/boot_backup.bin system flash:/system_backup.bin slot 2 backup
# Verify the startup image settings.
<Sysname> display boot-loader
# Reboot the device to complete the upgrade.
<Sysname> reboot
# Verify that the device is running the correct software.
<Sysname> display version