实施ISSU升级示例
组网需求
如图9-2所示,iStack堆叠系统由2台CE6851HI交换机组成,堆叠连接方式为链形连接,其中CE6851HI-1为主交换机,堆叠优先级最高为150;CE6851HI-2为备交换机,堆叠优先级为50。两台设备各使用4个业务接口连接,用于连接的端口为10GE1/0/1~10GE1/0/4。SwitchA和SwitchB的接口10GE1/0/1~10GE1/0/4双归接入堆叠系统。
设备 |
接口 |
成员接口 |
IP地址 |
---|---|---|---|
堆叠系统 |
Stack-port 1/1 |
10GE1/0/1~10GE1/0/4 |
- |
Stack-port 2/1 |
10GE2/0/1~10GE2/0/4 |
- |
|
Eth-Trunk1 |
10GE1/0/5~10GE1/0/6 10GE2/0/5~10GE2/0/6 |
10.10.10.1/24 |
|
Eth-Trunk2 |
10GE1/0/7~10GE1/0/8 10GE2/0/7~10GE2/0/8 |
10.10.20.1/24 |
|
SwitchA |
Eth-Trunk1 |
10GE1/0/1~10GE1/0/4 |
10.10.10.2/24 |
SwitchB |
Eth-Trunk2 |
10GE1/0/1~10GE1/0/4 |
10.10.20.2/24 |
操作步骤
- 配置SwitchA和SwitchB双归接入堆叠网络。# 在堆叠系统上配置Eth-Trunk1和Eth-Trunk2,并切换为三层接口,分别配置IP地址10.10.10.2/24和10.10.20.2/24,并使能OSPF。
<HUAWEI> system-view [~HUAWEI] sysname CE6851HI-1 [*HUAWEI] commit [~CE6851HI-1] interface eth-trunk 1 [*CE6851HI-1-Eth-Trunk1] trunkport 10ge 1/0/5 to 1/0/6 [*CE6851HI-1-Eth-Trunk1] trunkport 10ge 2/0/5 to 2/0/6 [*CE6851HI-1-Eth-Trunk1] mode lacp-static [*CE6851HI-1-Eth-Trunk1] undo portswitch [*CE6851HI-1-Eth-Trunk1] ip address 10.10.10.1 24 [*CE6851HI-1-Eth-Trunk1] commit [~CE6851HI-1-Eth-Trunk1] quit [~CE6851HI-1] interface eth-trunk 2 [*CE6851HI-1-Eth-Trunk2] trunkport 10ge 1/0/7 to 1/0/8 [*CE6851HI-1-Eth-Trunk2] trunkport 10ge 2/0/7 to 2/0/8 [*CE6851HI-1-Eth-Trunk2] mode lacp-static [*CE6851HI-1-Eth-Trunk2] undo portswitch [*CE6851HI-1-Eth-Trunk2] ip address 10.10.20.1 24 [*CE6851HI-1-Eth-Trunk2] commit [~CE6851HI-1-Eth-Trunk2] quit [~CE6851HI-1] ospf 10 [*CE6851HI-1-ospf-10] area 0.0.0.0 [*CE6851HI-1-ospf-10-area-0.0.0.0] network 10.10.10.0 0.0.0.255 [*CE6851HI-1-ospf-10-area-0.0.0.0] network 10.10.20.0 0.0.0.255 [*CE6851HI-1-ospf-10-area-0.0.0.0] commit
# 在SwitchA上创建Eth-Trunk1,成员接口10GE1/0/1~10GE1/0/4双归接入堆叠系统。SwitchB的配置与SwitchA类似,配置过程略。<HUAWEI> system-view [~HUAWEI] sysname SwitchA [*HUAWEI] commit [~SwitchA] interface eth-trunk 1 [*SwitchA-Eth-Trunk1] trunkport 10ge 1/0/1 to 1/0/4 [*SwitchA-Eth-Trunk1] mode lacp-static [*SwitchA-Eth-Trunk1] commit
# 在SwitchA上切换Eth-Trunk1为三层接口,配置IP地址10.10.10.2/24,与堆叠系统的Eth-Trunk1接口同网段,并使能OSPF。[~SwitchA-Eth-Trunk1] undo portswitch [*SwitchA-Eth-Trunk1] ip address 10.10.10.2 24 [*SwitchA-Eth-Trunk1] commit [~SwitchA-Eth-Trunk1] quit [~SwitchA] ospf 10 [*SwitchA-ospf-10] area 0.0.0.0 [*SwitchA-ospf-10-area-0.0.0.0] network 10.10.10.0 0.0.0.255 [*SwitchA-ospf-10-area-0.0.0.0] commit
# 在SwitchB上切换Eth-Trunk1为三层接口,配置IP地址10.10.20.2/24,与堆叠系统的Eth-Trunk2接口同网段,并使能OSPF。[~SwitchB-Eth-Trunk1] undo portswitch [*SwitchB-Eth-Trunk1] ip address 10.10.20.2 24 [*SwitchB-Eth-Trunk1] commit [~SwitchB-Eth-Trunk1] quit [~SwitchB] ospf 10 [*SwitchB-ospf-10] area 0.0.0.0 [*SwitchB-ospf-10-area-0.0.0.0] network 10.10.20.0 0.0.0.255 [*SwitchB-ospf-10-area-0.0.0.0] commit
- 在主交换机上进行升级前检查。
<CE6851HI-1> issu check CE6851HI-V200R005C10SPC800.cc Info: The system is preparing for check... .. Info: The operation of preparing for check is complete. Info: The system is prechecking... ............................................................................................................................ Info: The operation of prechecking is complete. Info: The system is checking hardware compatibility... Info: The operation of checking hardware compatibility is complete. Info: The system is checking device state... Info: The operation of checking device state is complete. Info: The system is checking switchover state... ...... Info: The operation of checking switchover state is complete. Info: The system is checking startup system software... Info: The operation of checking startup system software is complete. Info: The system is checking saved-configuration file... Info: The operation of checking saved-configuration file is complete. Info: The system is checking paf file... Info: The operation of checking paf file is complete. Info: The system is checking patch package... Info: The operation of checking patch package is complete. Info: The system is checking module file... Info: The operation of checking module file is complete. Info: The system is checking cpu performance... Info: The operation of checking cpu performance is complete. Info: The system is checking memory performance... Info: The operation of checking memory performance is complete. Info: The system is checking port split configuration... Info: The operation of checking port split configuration is complete. Info: The system is checking topology... Info: The operation of checking topology is complete. Info: The system is checking stack configuration... Info: The operation of checking stack configuration is complete. Info: The system is checking QOS... Info: The operation of checking QOS is complete. Info: The system is checking DCB... Info: The operation of checking DCB is complete. Info: The system is checking FCoE... Info: The operation of checking FCoE is complete. Info: The system is checking M-LAG... Info: The operation of checking M-LAG is complete. Info: The system is checking Eth-Trunk... Info: The operation of checking Eth-Trunk is complete. Info: The system is checking VLAN XLATE... Info: The operation of checking VLAN XLATE is complete. Info: The system is checking Picdriver... Info: The operation of checking Picdriver is complete. Info: The system is checking storage space... Info: The operation of checking storage space is complete. Info: The system is checking service compatibility... . Info: The operation of checking service compatibility is complete. Info: The system is checking the upgrade system software consistency... ..... Info: The operation of checking the upgrade system software consistency is complete. ........ Info: The upgrade procedure is: Reboot the slave board with the upgrade system software. Create standby process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 Upgrade process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 process group: 3 slot: 1 process group: 1000 slot: 1 process group: 10001 slot: 1 process group: 1002 slot: 1 process group: 1001 slot: 1 process group: 2 slot: 1 process group: 10002 slot: 1 Reboot the master board with the upgrade system software.
# 升级检查结束后执行命令查看检查结果。
<CE6851HI-1> display issu check-result ------------------------------ISSU CHECK RESULT------------------------------- Check Date : 2018/07/24 20:11:42 Check Result : success Upgrade type : lossy Base package : CE6851HI-V200R005C00SPC800.cc Upgrade package : CE6851HI-V200R005C10SPC800.cc Base paf : default Upgrade paf : default ------------------------------------------------------------------------------ Info: The upgrade procedure is: Reboot the slave board with the upgrade system software. Create standby process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 Upgrade process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 process group: 3 slot: 1 process group: 1000 slot: 1 process group: 10001 slot: 1 process group: 1002 slot: 1 process group: 1001 slot: 1 process group: 2 slot: 1 process group: 10002 slot: 1 Reboot the master board with the upgrade system software. ------------------------------------------------------------------------------
- 在主交换机上启动ISSU升级。
# 启动ISSU升级。
<CE6851HI-1> issu start CE6851HI-V200R005C10SPC800.cc Info: The system is preparing for check... .. .. Info: The operation of preparing for check is complete. Warning: The system upgrade will start, and the current configuration will be saved as the next startup configuration file. Continue? Please select [Y/N]: y Now saving the current configuration.......... Save the configuration successfully. Info: The system is prechecking... ........................................................................................................................... Info: The operation of prechecking is complete. Info: The system is checking hardware compatibility... Info: The operation of checking hardware compatibility is complete. Info: The system is checking device state... Info: The operation of checking device state is complete. Info: The system is checking switchover state... .... Info: The operation of checking switchover state is complete. Info: The system is checking startup system software... Info: The operation of checking startup system software is complete. Info: The system is checking saved-configuration file... Info: The operation of checking saved-configuration file is complete. Info: The system is checking paf file... Info: The operation of checking paf file is complete. Info: The system is checking patch package... Info: The operation of checking patch package is complete. Info: The system is checking module file... Info: The operation of checking module file is complete. Info: The system is checking cpu performance... Info: The operation of checking cpu performance is complete. Info: The system is checking memory performance... Info: The operation of checking memory performance is complete. Info: The system is checking port split configuration... Info: The operation of checking port split configuration is complete. Info: The system is checking topology... Info: The operation of checking topology is complete. Info: The system is checking stack configuration... Info: The operation of checking stack configuration is complete. Info: The system is checking QOS... Info: The operation of checking QOS is complete. Info: The system is checking DCB... Info: The operation of checking DCB is complete. Info: The system is checking FCoE... Info: The operation of checking FCoE is complete. Info: The system is checking M-LAG... Info: The operation of checking M-LAG is complete. Info: The system is checking Eth-Trunk... Info: The operation of checking Eth-Trunk is complete. Info: The system is checking VLAN XLATE... Info: The operation of checking VLAN XLATE is complete. Info: The system is checking Picdriver... Info: The operation of checking Picdriver is complete. Info: The system is checking storage space... Info: The operation of checking storage space is complete. Info: The system is checking service compatibility... . Info: The operation of checking service compatibility is complete. Info: The system is checking the upgrade system software consistency... ..... Info: The operation of checking the upgrade system software consistency is complete. ....... Info: The upgrade procedure is: Reboot the slave board with the upgrade system software. Create standby process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 Upgrade process with the upgrade system software. Detailed process groups are as follows: process group: 10003 slot: 1 process group: 10004 slot: 1 process group: 3 slot: 1 process group: 1000 slot: 1 process group: 10001 slot: 1 process group: 1002 slot: 1 process group: 1001 slot: 1 process group: 2 slot: 1 process group: 10002 slot: 1 Reboot the master board with the upgrade system software. Warning: Do not deliver configuration or maintenance information, nor swap boards in the system during upgrade phase. Warning: The value of the upgrade rollback timer is 120 minutes. Please complete the upgrade within 120 minutes. Info: The system will roll back to the previous version if timeout or upgrade failed. Warning: The system upgrade will start, current upgrade type is lossy. Continue? Please select [Y/N]: y Info: The system is preparing for issu...
在ISSU升级过程中,会出现远程连接断开的情况,此时需要等待一段时间之后(约20秒),用户可以重新登录设备。
# 重新登录后,执行display issu state命令可以查看当前升级的进度。
<CE6851HI-1> display issu state -------------------------------------------------------------------------------- Phase State Progress -------------------------------------------------------------------------------- 1.issu check : finished 100% 2.issu start : finished 100% 3.issu confirm : finished 100% --------------------------------------------------------------------------------
# 当issu confirm的状态为finished,或者提示“Info: The system does not start upgrading.”时,表示ISSU升级已结束。
- 检查配置结果。
# 查看升级报告。
<CE6851HI-1> display issu report -----------------------------ISSU REPORT----------------------------------- Upgrade number : 20180724201944 Upgrade type : lossy Upgrade result : success Base package : CE6851HI-V200R005C00SPC800.cc Upgrade package : CE6851HI-V200R005C10SPC800.cc Base paf : default Upgrade paf : default Upgrade rollback time(min) : 120 Upgrade start begin time : 2018/07/24 20:19:44 Upgrade start end time : 2018/07/24 20:48:49 Upgrade start total duration : 0 Hours 29 Minutes 5 Seconds Upgrade confirm begin time : 2018/07/24 20:53:03 Upgrade confirm end time : 2018/07/24 20:53:33 Upgrade abort time : -- --------------------------------------------------------------------------- Upgrade procedure details: slot: 2 [reboot] begin time: 2018/07/24 20:23:33 end time: 2018/07/24 20:32:37 duration: 0 Hours 9 Minutes 4 Seconds slot: 1 [upgrade process] process group: 10003 begin time: 2018/07/24 20:32:44 end time: 2018/07/24 20:36:04 duration: 0 Hours 3 Minutes 20 Seconds slot: 1 [upgrade process] process group: 10004 begin time: 2018/07/24 20:32:48 end time: 2018/07/24 20:36:05 duration: 0 Hours 3 Minutes 17 Seconds slot: 1 [reset process] process group: 10003 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:56 duration: 0 Hours 2 Minutes 21 Seconds slot: 1 [reset process] process group: 10004 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:56 duration: 0 Hours 2 Minutes 21 Seconds slot: 1 [reset process] process group: 3 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:57 duration: 0 Hours 2 Minutes 22 Seconds slot: 1 [reset process] process group: 1000 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:57 duration: 0 Hours 2 Minutes 22 Seconds slot: 1 [reset process] process group: 10001 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:57 duration: 0 Hours 2 Minutes 22 Seconds slot: 1 [reset process] process group: 1002 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:58 duration: 0 Hours 2 Minutes 23 Seconds slot: 1 [reset process] process group: 1001 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:58 duration: 0 Hours 2 Minutes 23 Seconds slot: 1 [reset process] process group: 2 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:58 duration: 0 Hours 2 Minutes 23 Seconds slot: 1 [reset process] process group: 10002 begin time: 2018/07/24 20:33:35 end time: 2018/07/24 20:35:58 duration: 0 Hours 2 Minutes 23 Seconds slot: 1 [reboot] begin time: 2018/07/24 20:36:16 end time: 2018/07/24 20:45:15 duration: 0 Hours 8 Minutes 59 Seconds ---------------------------------------------------------------------------
# 执行命令display startup查看当前系统软件版本是否正确。
<CE6851HI-1> display startup MainBoard: Configured startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Next startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Startup saved-configuration file: flash:/ET_Leaf1_17.103_5_18.cfg Next startup saved-configuration file: flash:/ET_Leaf1_17.103_5_18.cfg Startup paf file: default Next startup paf file: default Startup patch package: NULL Next startup patch package: NULL SlaveBoard: Configured startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Next startup system software: flash:/CE6851HI-V200R005C10SPC800.cc Startup saved-configuration file: flash:/ET_Leaf1_17.103_5_18.cfg Next startup saved-configuration file: flash:/ET_Leaf1_17.103_5_18.cfg Startup paf file: default Next startup paf file: default Startup patch package: NULL Next startup patch package: NULL
配置文件
堆叠系统的配置文件
# sysname CE6851HI-1 # stack # stack member 1 domain 1 stack member 1 priority 150 # stack member 2 domain 1 stack member 2 priority 50 # interface Stack-Port1/1 # interface Stack-Port2/1 # interface Eth-Trunk1 undo portswitch ip address 10.10.10.1 255.255.255.0 mode lacp-static # interface Eth-Trunk2 undo portswitch ip address 10.10.20.1 255.255.255.0 mode lacp-static # interface 10GE1/0/1 port mode stack stack-port 1/1 port crc-statistics trigger error-down # interface 10GE1/0/2 port mode stack stack-port 1/1 port crc-statistics trigger error-down # interface 10GE1/0/3 port mode stack stack-port 1/1 port crc-statistics trigger error-down # interface 10GE1/0/4 port mode stack stack-port 1/1 port crc-statistics trigger error-down # interface 10GE1/0/5 eth-trunk 1 device transceiver 10GBASE-COPPER # interface 10GE1/0/6 eth-trunk 1 device transceiver 10GBASE-COPPER # interface 10GE1/0/7 eth-trunk 2 device transceiver 10GBASE-COPPER # interface 10GE1/0/8 eth-trunk 2 device transceiver 10GBASE-COPPER # interface 10GE2/0/1 port mode stack stack-port 2/1 port crc-statistics trigger error-down # interface 10GE2/0/2 port mode stack stack-port 2/1 port crc-statistics trigger error-down # interface 10GE2/0/3 port mode stack stack-port 2/1 port crc-statistics trigger error-down # interface 10GE2/0/4 port mode stack stack-port 2/1 port crc-statistics trigger error-down # interface 10GE2/0/5 eth-trunk 1 device transceiver 10GBASE-COPPER # interface 10GE2/0/6 eth-trunk 1 device transceiver 10GBASE-COPPER # interface 10GE2/0/7 eth-trunk 2 device transceiver 10GBASE-COPPER # interface 10GE2/0/8 eth-trunk 2 device transceiver 10GBASE-COPPER # ospf 10 area 0.0.0.0 network 10.10.10.0 0.0.0.255 network 10.10.20.0 0.0.0.255 # return
SwitchA的配置文件
# sysname SwitchA # interface Eth-Trunk1 undo portswitch ip address 10.10.10.2 255.255.255.0 mode lacp-static # interface 10GE1/0/1 eth-trunk 1 # interface 10GE1/0/2 eth-trunk 1 # interface 10GE1/0/3 eth-trunk 1 # interface 10GE1/0/4 eth-trunk 1 # ospf 10 area 0.0.0.0 network 10.10.10.0 0.0.0.255 # return
SwitchB的配置文件
# sysname SwitchB # interface Eth-Trunk2 undo portswitch ip address 10.10.20.2 255.255.255.0 mode lacp-static # interface 10GE1/0/1 eth-trunk 2 # interface 10GE1/0/2 eth-trunk 2 # interface 10GE1/0/3 eth-trunk 2 # interface 10GE1/0/4 eth-trunk 2 # ospf 10 area 0.0.0.0 network 10.10.20.0 0.0.0.255 # return