以下操作以华为服务器为例。
介绍在操作系统中使用命令行工具hiraidadm升级控制卡固件的具体方法。
打开文件夹选择窗口。
可在输入mount /dev/sr后,按Tab键,自动联想出sr后面的值。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [root@localhost fw]# ./hiraidadm show allctrl ========================================== Hiraidadm Information =========================================== Name: hiraidadm Version :1.2.0.1 Build Time:Jun 14 2022 22:33:41 ============================================================================================================== ============================================================================================================== Status Code = 0 Status = Success Description = None ============================================================================================================== Controllers Number = 1 ------------------------------------------------------- Controller Id | 0 Device Name | /dev/bsg/hiraid0 Pcie Bus Domain | 0000 Bus Number | 04 Device Number | 00 Function Number | 00 PCI Address | 0000:04:00.0 |
以升级SP686C控制卡固件为例。
1 2 3 4 5 6 7 8 9 10 11 12 | [root@localhost fw]# ./hiraidadm c0 update fw file=packet_raid.img =========================================== Hiraidadm Information ============================================ Name: hiraidadm Version :1.2.0.1 Build Time:Jun 14 2022 22:33:41 ============================================================================================================== update controller firmware done,duration: 2min42s ============================================================================================================== Status Code = 0 Status = Success Description = None ============================================================================================================== |
当采用热激活方式使固件生效时,存在如下限制:
其中Controller_Id为控制卡ID,enclosure_id为硬盘所在框位的ID,slot_id为硬盘所在槽位的ID。
1 2 3 4 5 6 7 8 9 10 11 | [root@localhost fw]# ./hiraidadm c0 active fw type=hot =========================================== Hiraidadm Information ============================================ Name: hiraidadm Version :1.2.0.1 Build Time:Jun 14 2022 22:33:41 ============================================================================================================== ============================================================================================================== Status Code = 0 Status = Success Description = None ============================================================================================================== |
升级过程没有异常提示,并且升级后查询版本号已升到目标版本,即表示升级成功。