Using the CLI
Before You Start
Upgrade Scope
Use the Computing Product Compatibility Checker to obtain information about the servers that support the Avago MegaRAID SAS 9460-8i RAID controller card.
You are advised to download and install the driver matching the OS to prevent compatibility issues.
Impact of the Upgrade
After the upgrade, restart the server for the new firmware version to take effect. The restart will interrupt services.
Precautions
Observe the precautions listed in Table 3-1 during the upgrade.
No. |
Precautions |
---|---|
1 |
Misoperations during the firmware upgrade may cause an upgrade failure and make the RAID controller card unavailable. |
2 |
Stop running services on the server before the upgrade. |
3 |
Do not power off the OS during the upgrade and do not change configurations except for those involved in the upgrade guide. |
4 |
Before the upgrade, read this document carefully to ensure that you have learned all the content. For any problems or suggestions pertaining to the document, contact Huawei technical support. |
Preparations
Obtaining Upgrade Approval
Before the upgrade, ensure that the upgrade scheme and customer upgrade time are approved and that the upgrade is approved by the representative office.
Checking the Current Version and Target Version
Before upgrading the RAID controller card firmware, check the current and target firmware version information of the RAID controller card. If the upgrade fails, you need to roll back the firmware to the source version. For details about how to check the firmware version, see Querying the Firmware Version of a RAID Controller Card.
Obtaining Software Packages
Scenarios
Obtain the software package required for the upgrade.
Procedure
Obtain the required software packages using the methods described in Table 3-2.
Software Package |
How to Obtain |
---|---|
Firmware upgrade package of the RAID controller card |
|
Verifying the Digital Signatures of Software Packages
To avoid using software packages that have been tampered with during transmission or storage, download their digital signature files for integrity check while downloading the software packages.
After a software package is downloaded from the Support website, verify its PGP digital signature. See OpenPGP Signature Verification Guide. If the software package fails the verification, do not use it, and contact Huawei technical support.
Before a software package is used in installation or update, its digital signature also needs to be verified according to the OpenPGP Signature Verification Guide to ensure that the software package is not tampered with.
For carriers: https://support.huawei.com/carrier/digitalSignatureAction.
For enterprise users: https://support.huawei.com/enterprise/en/tool/pgp-verify-TL1000000054.
Upgrade Procedure
Scenarios
Upgrade the Avago MegaRAID SAS 9460-8i RAID controller card firmware using a CLI tool on Linux.
Prerequisites
- You have backed up the data and programs on the server.
- You have downloaded the RAID controller card firmware upgrade package to a PC and decompressed the package.
- The server hosting the Avago MegaRAID SAS 9460-8i RAID controller card is powered on.
- You have logged in to the iBMC WebUI.
Procedure
- Mount the upgrade file.
The iBMC Remote Virtual Consoles includes the Java Remote Virtual Console and HTML5 Integrated Remote Console. The HTML5 Integrated Remote Console does not support local directory. This section uses the Java Remote Virtual Console as an example. For more information, see iBMC User Guide.
- On the toolbar of the virtual console, click
to display the screen shown in Figure 3-1.
- Select Directory and click Browse.
- Select the folder generated after the RAID controller card firmware upgrade package is decompressed.
Select the folder of the target version for an upgrade and the folder of the source version for a rollback.
- Click Connect.
If the Eject icon is available, the upgrade file is successfully mounted, as shown in Figure 3-2.
- On the toolbar of the virtual console, click
- Copy the upgrade file to the server and assign the read and write permissions to the file.
- On Linux, run the mkdir fw command to create the fw folder in the root directory.
- Run the mount /dev/sr0 /mnt command to mount the local folder to the /mnt directory.
After you enter mount /dev/sr, press Tab to display the value following sr.
- Run the cd /mnt command to go to the /mnt directory.
- Run the cp * -R /root/fw/ command to copy the files in the mounted local folder to the fw directory.
- Run the cp tools/storcli64/root/fw/ command to copy the storcli64 tool to the /fw directory.
- Run the cd /root/fw/ command to go to the fw directory.
- Run the chmod 777 * command to add read and write permissions for the firmware upgrade package.
- Run the ./storcli64 show command to query the controller ID of the current RAID controller card.
- Run the ./storcli64 /cController_ID download file=9460-8i_nopad.rom noverchk command to perform the upgrade.
- Controller_ID indicates the controller ID of the RAID controller card queried in 3, that is, the value of Ctl in Figure 3-3.
- If "Status = Success" is displayed, the command is successfully executed.
- Restart the server for the new firmware version to take effect.
reboot
It takes 5 to 10 minutes for the server to restart.
- Check whether the firmware version is the target version.
If no error message is displayed during the firmware upgrade and the version of the upgraded firmware is the target version, the firmware is successfully upgraded. For details about how to query the firmware version of a RAID controller card, see Querying the Firmware Version of a RAID Controller Card.
Rollback
Rollback Guidelines
If the upgrade fails and the software version is still the source version, you do not need to perform a rollback. If any of the following problems occurs, contact technical support to determine whether a rollback is required.
- A major fault occurred during the upgrade, and cannot be located and rectified within the specified time.
- After the upgrade is complete, the target version functions abnormally.
- The entire upgrade cannot be finished as scheduled. To prevent service interruption in peak hours caused by the upgrade, a rollback is required.
Rollback Procedure
- Determine the target version.
- Roll back the firmware version.
When you roll back the firmware version, the rollback procedure is the same as the upgrade procedure. But the files used for the rollback are those used before the upgrade. For details, see 1 to 6 in Upgrade Procedure.
- Query the firmware version after the rollback. For details, see Querying the Firmware Version of a RAID Controller Card.
If no error message is displayed during the rollback and the version number is the same as the source version, the rollback is successful.
Common Operations
Querying the Firmware Version of a RAID Controller Card
You can use either of the following methods to query the RAID controller card firmware version:
- Query the firmware version on the BIOS Setup Utility. The specific method is described as follows:
- During the server boot process, press Delete when information shown in Figure 3-4 is displayed.
- Enter the password and press Enter.
The screen shown in Figure 3-5 is displayed.
- Select Device Manager and press Enter.
The screen shown in Figure 3-6 is displayed.
- Select Avago <Avago MegaRAID SAS9460-8i> Configuration Utility and press Enter.
The screen shown in Figure 3-7 is displayed.
- Select Main Menu and press Enter.
The Main Menu screen is displayed, as shown in Figure 3-8.
- Select Controller Management and press Enter.
The basic information about the RAID controller card is displayed. Firmware Version indicates the firmware version of the RAID controller card, as shown in Figure 3-9.
- After the server restarts, use the RAID card CLI tool Storcli64 to query the firmware version of the RAID controller card on the OS.
./storcli64 /c0 show
[root@localhost]# ./storcli64 /c0 show Generating detailed summary of the adapter, it may take a while to complete. CLI Version = 007.0504.0000.0000 Nov 22, 2017 Operating system = Linux 4.19.36-vhulk1907.1.0.h453.eulerosv2r8.aarch64 Controller = 0 Status = Success Description = None Product Name = AVAGO MegaRAID SAS 9460-8i Serial Number = SP01022668 SAS Address = 500062b206129f00 PCI Address = 00:01:00:00 System Time = 11/13/2019 04:33:58 Mfg. Date = 03/12/20 Controller Time = 11/13/2019 09:33:56 FW Package Build = 51.13.0-3223 BIOS Version = 7.13.00.0_070D0300 FW Version = 5.130.00-3059 Driver Name = megaraid_sas ...
In the command output, the FW Version field indicates the firmware version of the RAID controller card.