• 产品与解决方案
  • 行业解决方案
  • 服务
  • 支持
  • 合作伙伴
  • 关于我们

H3C S12500X-AF交换机 ISSU升级指导书-6W100

手册下载

H3C S12500X-AF交换机 ISSU升级指导书-6W100-整本手册.pdf  (384.03 KB)

  • 发布时间:2019/6/28 18:55:15
  • 浏览量:
  • 下载量:

H3C S12500X-AF交换机

ISSU升级指导书

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

资料版本:6W100-20190620

 

Copyright © 2019 新华三技术有限公司 版权所有,保留一切权利。

非经本公司书面许可,任何单位和个人不得擅自摘抄、复制本文档内容的部分或全部,并不得以任何形式传播。

除新华三技术有限公司的商标外,本手册中出现的其它公司的商标、产品标识及商品名称,由各自权利人拥有。

本文档中的信息可能变动,恕不另行通知。



1 简介

H3C数据中心交换机支持在IRF环境下进行ISSU升级,通过这种方式升级能够最大限度的保证升级过程中业务不中断或者中断时间较短。

1. ISSU简介

ISSUIn-Service Software Upgrade,不中断业务升级)是一种可靠性高的升级设备启动软件的方式。通过ISSU升级,能够确保在升级过程中业务不中断或者中断时间较短。

本文中的升级指的是广义上升级,即升级前后,运行两个不同版本的软件。它包括狭义上的升级和降级。

Comware将系统中比较稳定的基础进程和相对比较活跃的业务进程分离。划分为Boot包、System包和Feature包。ISSU可以单独升级这些软件包,无需一起升级。

ISSU支持一键式和分步式升级。一键式升级是指ISSU升级只需要进行一步操作即可完成整个系统的软件升级;分步式升级是指将ISSU升级分为多步操作,升级过程中可以看到设备每一步的状态,并可以在升级中途停止升级回滚到升级前的版本。

2. IRF简介

IRFIntelligent Resilient Framework,智能弹性架构)是H3C自主研发的软件虚拟化技术。它的核心思想是将多台设备连接在一起,进行必要的配置后,虚拟化成一台设备。使用这种虚拟化技术可以集合多台设备的硬件资源和软件处理能力,实现多台设备的协同工作、统一管理和不间断维护。IRF技术为ISSU升级的业务不中断特性提供了硬件基础。


 

2 升级限制和指导

·     ISSU升级过程中请不要执行以下操作:

¡     手工重启设备

¡     执行ISSU之外的命令。

¡     对启动软件包进行修改、删除以及重命名等操作。

·     ISSU分步式升级需要经过一系列的操作步骤,升级过程中有严格的步骤要求。请完成一个步骤后再执行下一个步骤。

·     issu命令指定的软件包不能全部覆盖设备当前启动软件包时,除issu命令指定的软件包之外的其他软件包会被沿用,例如设备当前启动软件包中含有Feature包并且该Feature包有效,issu命令指定新的软件包中不包含新的Feature包,那么当前版本的Feature包会被沿用。若沿用的软件包与issu命令指定的软件包不兼容,会导致设备升级失败。

升级完成后请重新登录设备,否则将无法执行新版本与旧版本之间变更的命令。


 

3 升级前的检查项

ISSU升级前,需要对待升级的环境进行检查,如果有异常,可能导致升级失败。具体检查项如3-1所示:

表3-1 升级前的检查项

检查项目

要求

示例(仅显示关键信息,具体信息略)

IRF要求

检查IRF所有成员设备当前状态是否正常

<Sysname> display irf

MemberID  Slot  Role    Priority  CPU-MacDescription

 *+1      0     Master  1         00e0-fc0f-8c05  ---

   2      0     Standby 1         00e0-fc0f-8c35  ---

检查IRFMAC地址的保留时间是否为12分钟或永久保留,否则需要使用irf mac-address persistent { always | timer }命令重新配置

<Sysname> display irf

Mac persistent              : always

检查系统工作模式是否一致,如果各成员设备的系统工作模式不一致,那么需要执行system-working-mode命令进行切换,保证系统工作模式的一致性:

<Sysname> display system-working-mode

The current system working mode is advance.

检查硬件资源的运行模式是否一致,如果各成员设备的硬件资源运行模式不一致,那么需要执行hardware-resource命令进行切换,保证硬件资源运行模式的一致性

<Sysname> display hardware-resource tcam

Default         Current         Next

  NORMAL          ROUTING         ROUTING

<Sysname> display hardware-resource vxlan

Default         Current         Next

  L2GW            L3GW            L3GW

硬件要求

检查设备CPU利用率是否低于门限值,建议所有设备的CPU利用率不要超过CPU利用率恢复门限值

<Sysname> display cpu-usage

Chassis 1 Slot 0 CPU 0 CPU usage:

       3% in last 5 seconds

       2% in last 1 minute

       2% in last 5 minutes

 

<Sysname> display cpu-usage configuration

CPU usage monitor is enabled.

Current monitor interval is 60 seconds.

Current severe alarm threshold is 99%.

Current minor alarm threshold is 80%.

Current recovery threshold is 60%.

检查设备内存剩余是否低于告警阈值,建议所有设备的内存剩余不要超过内存剩余恢复到正常状态的阈值

<Sysname> display memory

Memory statistics are measured in KB:

Chassis 1 Slot 0:

             Total      Used      Free    Shared   Buffers    Cached   FreeRatio

Mem:      16337812  4163660  12174152         0      8392   2145168       87.6%

-/+ Buffers/Cache: 2010100  14327712

Swap:            0       0         0

 

<Sysname> display memory-threshold

Memory usage threshold: 100%

Free memory threshold:

    Minor: 256M

    Severe: 192M

    Critical: 128M

    Normal: 320M

    Early-warning: 384M

    Secure: 448M

Current memory state: Normal

检查风扇状态是否均为Normal,所有设备的风扇状态必须为Normal

<Sysname> display fan

 Chassis 1:

 Fan-tray 1:

 Status    : Normal

 Fan Type  : LSXM108XFAN

 Fan number: 3

 Fan mode  : Auto

 Airflow Direction: Front-to-back

 Fan  Speed(rpm)

 ---  ----------

  1   5222

  2   5315

  3   5110

检查电源状态是否均为Normal,所有设备的电源状态必须为Normal

<Sysname> display power

 Chassis 1:

PowerID State     InPower(W)  Current(A)  Voltage(V)  OutPower(W)     Type

  1      Normal      2400        7.25       53.80       390.05     PSR2400-54A

  9      Normal      2400        7.00       53.83       376.81     PSR2400-54A

  10     Normal      2400        6.00       53.82       322.92     PSR2400-54A

Information about reserved power:

 

  Slot  Status  Power(W)   Remarks

   0    Normal     34      Reserved for MPU

   1    Absent     34      Reserved for MPU

   3    Normal   1050      Powered on

  14    Normal    691      Powered on

检查设备上各硬件的当前温度是否均低于Warning值,所有硬件的当前温度必须低于Warning

<Sysname> display environment

System temperature information (degree centigrade):

 ----------------------------------------------------------------------

 Chassis  Slot  Sensor    Temperature  Lower  Warning  Alarm  Shutdown

 1        0     inflow  1 26           0      48       60     NA

 1        0     hotspot 1 27           0      75       90     NA

 1        3     hotspot 1 27           0      75       90     95

 1        3     hotspot 2 28           0      75       90     95

 1        3     hotspot 3 27           0      75       90     95

 1        3     hotspot 4 30           0      75       90     95

 1        22    hotspot 1 51           0      75       90     95

 1        22    hotspot 2 46           0      75       90     95

 1        22    hotspot 3 37           0      75       90     95

检查各端口是否都正常转发流量,保证升级前各端口流量转发正常

<Sysname> display counters rate inbound interface

Usage: Bandwidth utilization in percentage

Interface            Usage (%)   Total (pps)   Broadcast (pps)   Multicast (pps)

FGE1/0/0/1                   0         57863                --                --

FGE1/0/0/2                   0         33070                --                --

FGE1/0/0/3                   0         32974                --                --

FGE1/0/0/4                   0         24992                --                --

检查端口CRC错误报文,保证升级前CRC错误报文无增长

<Sysname> display interface | include CRC

         0 CRC, 0 frame, 0 overruns, 0 aborts

         0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

          0 CRC, 0 frame, - overruns, 0 aborts

input:   0 input errors,- runts,- giants,- throttles,0 CRC

input:   0 input errors,- runts,- giants,- throttles,0 CRC

聚合要求

检查聚合口和聚合口成员选中状态

<Sysname> display link-aggregation summary

Aggregation Interface Type:

BAGG -- Bridge-Aggregation, BLAGG -- Blade-Aggregation, RAGG -- Route-Aggregatio

n, SCH-B -- Schannel-Bundle

Aggregation Mode: S -- Static, D -- Dynamic

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Actor System ID: 0x8000, 3c8c-4002-e79f

 

AGG        AGG   Partner ID              Selected  Unselected  Individual  Share

Interface  Mode                          Ports     Ports       Ports       Type

--------------------------------------------------------------------------------

BAGG11     D     0x8000, 0000-0000-0000  0         1           0           Shar

BAGG21     D     0x8000, 1cab-3495-9e3b  6         0           0           Shar

如果存在动态聚合,检查所有动态聚合组的所有成员端口下LACP超时时间为长超时

业务要求

开启LDPRSVPOSPFISISBGPFSPF等协议的GRNSR功能

关闭LDPRSVPOSPFISISRIPBGPVRRPNQA等协议的BFD功能

版本要求

请仔细阅读当前的软件版本和待升级软件版本的软件版本说明书,保证升级前后两个版本支持使用ISSU方式进行升级

 


 

4 ISSU一键式升级

本文以S12500X-AF产品的Release 2710版本升级到Release 2712版本为例。

4.1  组网需求

4-1所示,两台交换机组成IRF,并要求通过ISSU方式进行全部成员设备启动软件包的升级,将设备启动软件包由Release 2710版本升级Release 2712版本。

图4-1 ISSU兼容升级组网图

 

4.2  配置步骤

4.2.1  IRF配置

1. 登录设备

# 用户PC通过Telnet或者Console口登录到交换机上。

2. 配置IRF成员设备

(1)     配置Device A

# 配置Device A成员优先级为2

<DeviceA> system-view

[DeviceA] irf member 1 priority 2

# 创建Device AIRF端口1/1,并将它与物理端口FortyGigE 1/1/0/1绑定。

[DeviceA] interface FortyGigE 1/1/0/1

[DeviceA-FortyGigE1/1/0/1] shutdown

[DeviceA-FortyGigE1/1/0/1] quit

[DeviceA] irf-port 1/1

[DeviceA-irf-port1/1] port group interface FortyGigE 1/1/0/1

[DeviceA-irf-port1/1] quit

[DeviceA] interface FortyGigE 1/1/0/1

[DeviceA-FortyGigE1/1/0/1] undo shutdown

[DeviceA-FortyGigE1/1/0/1] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[DeviceA-FortyGigE1/1/0/1] quit

# 激活IRF

[DeviceA] irf-port-configuration active

[DeviceB] quit

(2)     配置Device B

# 配置Device B成员编号为2

[DeviceB] irf member 1 renumber 2

Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y

# 重启DeviceB

[DeviceB] reboot

# 配置Device B成员优先级为1

<DeviceB> system-view

[DeviceB] irf member 1 priority 1

# 创建Device BIRF端口2/2,并将它与物理端口FortyGigE 2/1/0/1绑定。

[DeviceB] interface FortyGigE 2/1/0/1

[DeviceB-FortyGigE2/1/0/1] shutdown

[DeviceB-FortyGigE2/1/0/1] quit

[DeviceB] irf-port 2/2

[DeviceB-irf-port2/2] port group interface FortyGigE 2/1/0/1

[DeviceB-irf-port2/2] quit

[DeviceB] interface FortyGigE 2/1/0/1

[DeviceB-FortyGigE2/1/0/1] undo shutdown

[DeviceB-FortyGigE2/1/0/1] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[DeviceB-FortyGigE2/1/0/1] quit

# 激活IRF

[DeviceB] irf-port-configuration active

[DeviceB] quit

3. 查看设备信息

<DeviceA> display device

Slot   Type                State    Subslot  Soft Ver             Patch Ver

1/0    LSXM1SUPB1          Master   0        S12508X-AF-2710      None   

1/1    NONE                Absent   0        NONE                 None   

1/2    NONE                Absent   0        NONE                 None   

1/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2710      None   

1/4    NONE                Absent   0        NONE                 None   

1/5    NONE                Absent   0        NONE                 None   

1/6    NONE                Absent   0        NONE                 None   

1/7    NONE                Absent   0        NONE                 None   

1/8    NONE                Absent   0        NONE                 None   

1/9    NONE                Absent   0        NONE                 None   

1/10   NONE                Absent   0        NONE                 None   

1/11   NONE                Absent   0        NONE                 None   

1/12   NONE                Absent   0        NONE                 None   

1/13   NONE                Absent   0        NONE                 None   

1/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2710      None   

1/15   NONE                Absent   0        NONE                 None    

2/0    LSXM1SUPB1          Slave    0        S12508X-AF-2710      None   

2/1    NONE                Absent   0        NONE                 None   

2/2    NONE                Absent   0        NONE                 None   

2/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2710      None   

2/4    NONE                Absent   0        NONE                 None   

2/5    NONE                Absent   0        NONE                 None   

2/6    NONE                Absent   0        NONE                 None   

2/7    NONE                Absent   0        NONE                 None   

2/8    NONE                Absent   0        NONE                 None   

2/9    NONE                Absent   0        NONE                 None   

2/10   NONE                Absent   0        NONE                 None   

2/11   NONE                Absent   0        NONE                 None   

2/12   NONE                Absent   0        NONE                 None   

2/13   NONE                Absent   0        NONE                 None   

2/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2710      None   

2/15   NONE                Absent   0        NONE                 None

从显示信息中可以看出,两台设备已经形成了IRF,并且Chassis1为主设备,Chassis2为从设备,各设备运行状态正常。

4.2.2  ISSU配置

1. 清理各成员设备存储介质的剩余空间

# 查看两个成员设备存储介质的剩余空间大小。

·     查看主设备存储介质的剩余空间大小。

<DeviceA> dir chassis1slot0#flash:/

Directory of flash:

   0 -rw-        2901 Jan 01 2011 03:13:38   210235A1UMH1610000122017011911451076132.ak

   1 -rw-   120552448 Jan 02 2011 11:37:58   R2710.ipe

   2 -rw-      118386 Jan 01 2011 02:43:16   diag_A_B_C_20110101-021505.tar.gz

   3 -rw-      104500 Jan 01 2011 00:29:18   diag_H3C_20110101-002803.tar.gz

   4 -rw-      113895 Jan 01 2011 01:11:50   diag_TD2+_20110101-011053.tar.gz

   5 drw-           - Jan 01 2011 00:01:13   diagfile

   6 -rw-         512 Jan 01 2011 01:00:05   fd8ef19a214ea12039a2f5ac6ef936fd.cfg

   7 -rw-        4086 Jan 02 2011 10:52:18   ifindex.dat

   8 -rw-         238 Jan 01 2011 11:05:44   lauth.dat

   9 drw-           - Jan 01 2011 03:14:28   license

  10 drw-           - Jan 01 2011 05:18:02   logfile

  11 drw-           - Jan 01 2011 01:02:09   ovsdb

  12 drw-           - Jan 01 2011 11:05:58   pkey

  13 drw-           - Jan 01 2011 11:05:50   pki

  14 -rw-    14478336 Jan 01 2011 10:38:36   boot-e2601.bin

  15 -rw-    14476288 Jan 01 2011 10:52:24   boot-r2710.bin

  16 -rw-   102051840 Jan 01 2011 10:44:11   system-e2601.bin

  17 -rw-   106068992 Jan 01 2011 10:57:47   system-r2710.bin

  18 drw-           - Jan 01 2011 00:01:13   seclog

  19 -rw-       15632 Jan 02 2011 10:52:25   startup.cfg

  20 -rw-      313105 Jan 02 2011 10:52:26   startup.mdb

  21 drw-           - Jan 01 2011 03:08:27   test

  22 -rw-      163053 Jan 01 2011 10:45:18   test1.tar.gz

  23 -rw-      149436 Jan 01 2011 10:46:32   test2.tar.gz

  24 dr--           - Jan 01 2011 00:49:46   versionInfo

  25 -rw-        3844 Jan 01 2011 03:26:03   vlan.txt

  26 -rw-        4214 Jan 01 2011 03:01:40   xinjianshiyan.txt

 

524288 KB total (170948 KB free)

·     查看从设备存储介质的剩余空间大小。

<DeviceA> dir chassis2slot0#flash:/

Directory of flash:

   0 -rw-        2901 Jan 01 2011 03:13:38   210235A1UMH1610000122017011911451076132.ak

   1 -rw-   120552448 Jan 02 2011 11:37:58   R2710.ipe

   2 -rw-      118386 Jan 01 2011 02:43:16   diag_A_B_C_20110101-021505.tar.gz

   3 -rw-      104500 Jan 01 2011 00:29:18   diag_H3C_20110101-002803.tar.gz

   4 -rw-      113895 Jan 01 2011 01:11:50   diag_TD2+_20110101-011053.tar.gz

   5 drw-           - Jan 01 2011 00:01:13   diagfile

   6 -rw-         512 Jan 01 2011 01:00:05   fd8ef19a214ea12039a2f5ac6ef936fd.cfg

   7 -rw-        4086 Jan 02 2011 10:52:18   ifindex.dat

   8 -rw-         238 Jan 01 2011 11:05:44   lauth.dat

   9 drw-           - Jan 01 2011 03:14:28   license

  10 drw-           - Jan 01 2011 05:18:02   logfile

  11 drw-           - Jan 01 2011 01:02:09   ovsdb

  12 drw-           - Jan 01 2011 11:05:58   pkey

  13 drw-           - Jan 01 2011 11:05:50   pki

  14 -rw-    14478336 Jan 01 2011 10:38:36   boot-e2601.bin

  15 -rw-    14476288 Jan 01 2011 10:52:24   boot-r2710.bin

  16 -rw-   102051840 Jan 01 2011 10:44:11   system-e2601.bin

  17 -rw-   106068992 Jan 01 2011 10:57:47   system-r2710.bin

  18 drw-           - Jan 01 2011 00:01:13   seclog

  19 -rw-       15632 Jan 02 2011 10:52:25   startup.cfg

  20 -rw-      313105 Jan 02 2011 10:52:26   startup.mdb

  21 drw-           - Jan 01 2011 03:08:27   test

  22 -rw-      163053 Jan 01 2011 10:45:18   test1.tar.gz

  23 -rw-      149436 Jan 01 2011 10:46:32   test2.tar.gz

  24 dr--           - Jan 01 2011 00:49:46   versionInfo

  25 -rw-        3844 Jan 01 2011 03:26:03   vlan.txt

  26 -rw-        4214 Jan 01 2011 03:01:40   xinjianshiyan.txt

 

524288 KB total (170948 KB free)

通过以上显示信息可以查看主设备和从设备存储介质剩的余空间大小。

用户可以将成员设备存储介质的剩余空间大小和待升级文件大小进行对比,判断存储介质剩余空间是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文件,释放存储空间。

# 删除两个成员设备存储介质中的多余文件。

·     删除主设备存储介质中的多余文件。

<DeviceA> delete /unreserved chassis1slot0#flash:/r2710.ipe

The file cannot be restored. Delete flash:/r2710.ipe? [Y/N]:y

Deleting the file permanently will take a long time. Please wait...

Deleting file flash:/r2710.ipe... Done.

·     删除从设备存储介质中的多余文件。

<DeviceA> delete /unreserved chassis2slot0#flash:/r2710.ipe

The file cannot be restored. Delete flash:/r2710.ipe? [Y/N]:y

Deleting the file permanently will take a long time. Please wait...

Deleting file flash:/r2710.ipe... Done.

说明

·     使用delete /unreserved file-url命令删除文件,被删除的文件将被彻底删除,不能再恢复。

·     使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,彻底删除回收站中的文件

 

2. 下载待升级文件到主设备

用户可以通过FTPTFTP方式把待升级文件下载到设备的存储介质中,下面以交换机作为FTP Client、用户PC作为FTP Server为例进行介绍:

(1)     在用户PC(假设IP地址为2.2.2.2)上运行FTP Server程序,设置用户名和密码,以及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。

注意

FTP Server软件由用户自己购买和安装,交换机不附带此软件。

 

(2)     确保用户PC和交换机之间路由可达。

(3)     将待升级软件(以R2712.ipe为例)下载到主设备缺省文件系统的根目录下。

# 设备作为FTP Client登录到FTP Server

<DeviceA> ftp 2.2.2.2

Connected to 2.2.2.2 (2.2.2.2).

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User (2.2.2.2:(none)):username                       ---输入用户名

331 Give me your password, please

Password:                                               ---输入密码

230 Logged in successfully

Remote system type is MSDOS.

ftp>

# 将传输模式设置为二进制模式,以便传输启动软件包。

ftp> binary

200 Type is Image (Binary)

说明

缺省情况下,设备的文件传输模式为二进制模式。

 

# 将启动软件包R2712.ipeFTP服务器下载到主设备缺省文件系统的根目录下。

ftp> get r2712.ipe

227 Entering Passive Mode (2,2,2,2,7,100)

150 "C:\r2712.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode

226 Transfer finished successfully.

74948608 bytes received in 35.974 seconds (896.00 kbyte/s)

ftp> bye

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye

3. 进行ISSU一键式升级

(1)     # 查看设备的状态。

说明

使用display system stable state命令显示的system state字段为Stable,则表示设备处于稳定状态。ISSU升级前使用命令查看设备的状态,需要等待设备进入稳定状态,才可以进行ISSU升级。

 

<DeviceA> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 2710

  system: 7.1.070, Release 2710

Current software images:

  flash:/boot-r2710.bin

  flash:/system-r2710.bin

<DeviceA> display system stable state

System state     : Stable

Redundancy state : Stable

Chassis    Slot    CPU    Role       State

1          0       0      Active     Stable

1          3       0      Other      Stable

1          14      0      Other      Stable

2          0       0      Active     Stable

2          3       0      Other      Stable

2          14      0      Other      Stable

从设备显示上看,IRF两个成员设备均处于稳定状态,可以进行ISSU升级。

(2)     执行一键式升级操作。

IRF环境下进行ISSU升级是以设备为单位的,所以需要先指定从设备的IRF成员编号开始升级。

<DeviceA> issu one-step file ipe flash:/r2712.ipe chassis 2

This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:y

Verifying the file flash:/r2712.ipe on chassis 2 slot 0............Done.

Decompressing file boot-r2712.bin to flash:/boot-r2712.bin....................Done.

Decompressing file system-r2712.bin to flash:/system-r2712.bin.......................................................................................................................................Done.

Decompression completed.

Do you want to delete flash:/r2712.ipe now? [Y/N]:n

This operation might take several minutes, please wait...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

此过程中设备会自动进行ISSU升级的一系列步骤,先对从设备进行重启升级、主备倒换将从设备变为主设备、重启升级原主设备。

(3)     确定ISSU升级完成

<DeviceA> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Chassis by Chassis

Upgraded chassis: None

Current upgrading Chassis: None

Current version list:

  boot: 7.1.070, Release 2712

  system: 7.1.070, Release 2712

Current software images:

  flash:/boot-r2712.bin

  flash:/system-r2712.bin

完成以上配置后,此命令显示的ISSU state字段为Init,则表示ISSU升级完成。

(4)     查看设备信息

<DeviceA> display device

Slot   Type                State    Subslot  Soft Ver             Patch Ver

1/0    LSXM1SUPB1          Slave    0        S12508X-AF-2712      None   

1/1    NONE                Absent   0        NONE                 None   

1/2    NONE                Absent   0        NONE                 None   

1/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2712      None   

1/4    NONE                Absent   0        NONE                 None   

1/5    NONE                Absent   0        NONE                 None   

1/6    NONE                Absent   0        NONE                 None   

1/7    NONE                Absent   0        NONE                 None   

1/8    NONE                Absent   0        NONE                 None   

1/9    NONE                Absent   0        NONE                 None   

1/10   NONE                Absent   0        NONE                 None   

1/11   NONE                Absent   0        NONE                 None   

1/12   NONE                Absent   0        NONE                 None   

1/13   NONE                Absent   0        NONE                 None   

1/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2712      None   

1/15   NONE                Absent   0        NONE                 None    

2/0    LSXM1SUPB1          Master   0        S12508X-AF-2712      None   

2/1    NONE                Absent   0        NONE                 None   

2/2    NONE                Absent   0        NONE                 None   

2/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2712      None   

2/4    NONE                Absent   0        NONE                 None   

2/5    NONE                Absent   0        NONE                 None   

2/6    NONE                Absent   0        NONE                 None   

2/7    NONE                Absent   0        NONE                 None   

2/8    NONE                Absent   0        NONE                 None   

2/9    NONE                Absent   0        NONE                 None   

2/10   NONE                Absent   0        NONE                 None   

2/11   NONE                Absent   0        NONE                 None   

2/12   NONE                Absent   0        NONE                 None   

2/13   NONE                Absent   0        NONE                 None   

2/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2712      None   

2/15   NONE                Absent   0        NONE                 None

从显示信息中可以看出,原从设备Chassis2代替了原主设备Chassis1成为了新的主设备,并且版本号由2710升级到了2712


 

5 ISSU分步式升级

本文以S12500X-AF产品的Release 2710版本升级到Release 2712版本为例。

5.1  组网需求

4-1所示,两台交换机组成IRF,并要求通过ISSU方式进行全部成员设备启动软件包的升级,将设备启动软件包由Release 2710版本升级Release 2712版本。

图5-1 ISSU兼容升级组网图

5.2  配置步骤

5.2.1  IRF配置

1. 登录设备

# 用户PC通过Telnet或者Console口登录到交换机上。

2. 配置IRF成员设备

(1)     配置Device A

# 配置Device A成员优先级为2

<DeviceA> system-view

[DeviceA] irf member 1 priority 2

# 创建Device AIRF端口1/1,并将它与物理端口FortyGigE 1/1/0/1绑定。

[DeviceA] interface FortyGigE 1/1/0/1

[DeviceA-FortyGigE1/1/0/1] shutdown

[DeviceA-FortyGigE1/1/0/1] quit

[DeviceA] irf-port 1/1

[DeviceA-irf-port1/1] port group interface FortyGigE 1/1/0/1

[DeviceA-irf-port1/1] quit

[DeviceA] interface FortyGigE 1/1/0/1

[DeviceA-FortyGigE1/1/0/1] undo shutdown

[DeviceA-FortyGigE1/1/0/1] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[DeviceA-FortyGigE1/1/0/1] quit

# 激活IRF

[DeviceA] irf-port-configuration active

[DeviceB] quit

(2)     配置Device B

# 配置Device B成员编号为2

[DeviceB] irf member 1 renumber 2

Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y

# 重启DeviceB

[DeviceB] reboot

# 配置Device B成员优先级为1

<DeviceB> system-view

[DeviceB] irf member 1 priority 1

# 创建Device BIRF端口2/2,并将它与物理端口FortyGigE 2/1/0/1绑定。

[DeviceB] interface FortyGigE 2/1/0/1

[DeviceB-FortyGigE2/1/0/1] shutdown

[DeviceB-FortyGigE2/1/0/1] quit

[DeviceB] irf-port 2/2

[DeviceB-irf-port2/2] port group interface FortyGigE 2/1/0/1

[DeviceB-irf-port2/2] quit

[DeviceB] interface FortyGigE 2/1/0/1

[DeviceB-FortyGigE2/1/0/1] undo shutdown

[DeviceB-FortyGigE2/1/0/1] save

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[flash:/startup.cfg]

(To leave the existing filename unchanged, press the enter key):

flash:/startup.cfg exists, overwrite? [Y/N]:y

Validating file. Please wait...

Saved the current configuration to mainboard device successfully.

[DeviceB-FortyGigE2/1/0/1] quit

# 激活IRF

[DeviceB] irf-port-configuration active

[DeviceB] quit

3. 查看设备信息

<DeviceA> display device

Slot Type             State    Subslot  Soft Ver             Patch Ver

<DeviceA> display device

Slot   Type                State    Subslot  Soft Ver             Patch Ver

1/0    LSXM1SUPB1          Master   0        S12508X-AF-2710      None   

1/1    NONE                Absent   0        NONE                 None   

1/2    NONE                Absent   0        NONE                 None   

1/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2710      None   

1/4    NONE                Absent   0        NONE                 None   

1/5    NONE                Absent   0        NONE                 None   

1/6    NONE                Absent   0        NONE                 None   

1/7    NONE                Absent   0        NONE                 None   

1/8    NONE                Absent   0        NONE                 None   

1/9    NONE                Absent   0        NONE                 None   

1/10   NONE                Absent   0        NONE                 None   

1/11   NONE                Absent   0        NONE                 None   

1/12   NONE                Absent   0        NONE                 None    

1/13   NONE                Absent   0        NONE                 None   

1/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2710      None   

1/15   NONE                Absent   0        NONE                 None    

2/0    LSXM1SUPB1          Slave    0        S12508X-AF-2710      None   

2/1    NONE                Absent   0        NONE                 None   

2/2    NONE                Absent   0        NONE                 None   

2/3    LSXM1QGS36HB1       Normal   0        S12508X-AF-2710      None   

2/4    NONE                Absent   0        NONE                 None   

2/5    NONE                Absent   0        NONE                 None   

2/6    NONE                Absent   0        NONE                 None   

2/7    NONE                Absent   0        NONE                 None   

2/8    NONE                Absent   0        NONE                 None   

2/9    NONE                Absent   0        NONE                 None   

2/10   NONE                Absent   0        NONE                 None   

2/11   NONE                Absent   0        NONE                 None   

2/12   NONE                Absent   0        NONE                 None   

2/13   NONE                Absent   0        NONE                 None   

2/14   LSXM1SFH08D1        Normal   0        S12508X-AF-2710      None   

2/15   NONE                Absent   0        NONE                 None

从显示信息中可以看出,两台设备已经形成了IRF,并且Chassis1为主设备,Chassis2为从设备,各设备运行状态正常。

5.2.2  ISSU配置

1. 清理各成员设备存储介质的剩余空间

# 查看两个成员设备存储介质的剩余空间大小。

·     查看主设备存储介质的剩余空间大小。

<DeviceA> dir chassis1slot0#flash:/

Directory of flash:

   0 -rw-        2901 Jan 01 2011 03:13:38   210235A1UMH1610000122017011911451076132.ak

   1 -rw-   120552448 Jan 02 2011 11:37:58   R2710.ipe

   2 -rw-      118386 Jan 01 2011 02:43:16   diag_A_B_C_20110101-021505.tar.gz

   3 -rw-      104500 Jan 01 2011 00:29:18   diag_H3C_20110101-002803.tar.gz

   4 -rw-      113895 Jan 01 2011 01:11:50   diag_TD2+_20110101-011053.tar.gz

   5 drw-           - Jan 01 2011 00:01:13   diagfile

   6 -rw-         512 Jan 01 2011 01:00:05   fd8ef19a214ea12039a2f5ac6ef936fd.cfg

   7 -rw-        4086 Jan 02 2011 10:52:18   ifindex.dat

   8 -rw-         238 Jan 01 2011 11:05:44   lauth.dat

   9 drw-           - Jan 01 2011 03:14:28   license

  10 drw-           - Jan 01 2011 05:18:02   logfile

  11 drw-           - Jan 01 2011 01:02:09   ovsdb

  12 drw-           - Jan 01 2011 11:05:58   pkey

  13 drw-           - Jan 01 2011 11:05:50   pki

  14 -rw-    14478336 Jan 01 2011 10:38:36   boot-e2601.bin

  15 -rw-    14476288 Jan 01 2011 10:52:24   boot-r2710.bin

  16 -rw-   102051840 Jan 01 2011 10:44:11   system-e2601.bin

  17 -rw-   106068992 Jan 01 2011 10:57:47   system-r2710.bin

  18 drw-           - Jan 01 2011 00:01:13   seclog

  19 -rw-       15632 Jan 02 2011 10:52:25   startup.cfg

  20 -rw-      313105 Jan 02 2011 10:52:26   startup.mdb

  21 drw-           - Jan 01 2011 03:08:27   test

  22 -rw-      163053 Jan 01 2011 10:45:18   test1.tar.gz

  23 -rw-      149436 Jan 01 2011 10:46:32   test2.tar.gz

  24 dr--           - Jan 01 2011 00:49:46   versionInfo

  25 -rw-        3844 Jan 01 2011 03:26:03   vlan.txt

  26 -rw-        4214 Jan 01 2011 03:01:40   xinjianshiyan.txt

524288 KB total (170948 KB free)

·     查看从设备存储介质的剩余空间大小。

<DeviceA> dir chassis2slot0#flash:/

Directory of flash:

   0 -rw-        2901 Jan 01 2011 03:13:38   210235A1UMH1610000122017011911451076132.ak

   1 -rw-   120552448 Jan 02 2011 11:37:58   R2710.ipe

   2 -rw-      118386 Jan 01 2011 02:43:16   diag_A_B_C_20110101-021505.tar.gz

   3 -rw-      104500 Jan 01 2011 00:29:18   diag_H3C_20110101-002803.tar.gz

   4 -rw-      113895 Jan 01 2011 01:11:50   diag_TD2+_20110101-011053.tar.gz

   5 drw-           - Jan 01 2011 00:01:13   diagfile

   6 -rw-         512 Jan 01 2011 01:00:05   fd8ef19a214ea12039a2f5ac6ef936fd.cfg

   7 -rw-        4086 Jan 02 2011 10:52:18   ifindex.dat

   8 -rw-         238 Jan 01 2011 11:05:44   lauth.dat

   9 drw-           - Jan 01 2011 03:14:28   license

  10 drw-           - Jan 01 2011 05:18:02   logfile

  11 drw-           - Jan 01 2011 01:02:09   ovsdb

  12 drw-           - Jan 01 2011 11:05:58   pkey

  13 drw-           - Jan 01 2011 11:05:50   pki

  14 -rw-    14478336 Jan 01 2011 10:38:36   boot-e2601.bin

  15 -rw-    14476288 Jan 01 2011 10:52:24   boot-r2710.bin

  16 -rw-   102051840 Jan 01 2011 10:44:11   system-e2601.bin

  17 -rw-   106068992 Jan 01 2011 10:57:47   system-r2710.bin

  18 drw-           - Jan 01 2011 00:01:13   seclog

  19 -rw-       15632 Jan 02 2011 10:52:25   startup.cfg

  20 -rw-      313105 Jan 02 2011 10:52:26   startup.mdb

  21 drw-           - Jan 01 2011 03:08:27   test

  22 -rw-      163053 Jan 01 2011 10:45:18   test1.tar.gz

  23 -rw-      149436 Jan 01 2011 10:46:32   test2.tar.gz

  24 dr--           - Jan 01 2011 00:49:46   versionInfo

  25 -rw-        3844 Jan 01 2011 03:26:03   vlan.txt

  26 -rw-        4214 Jan 01 2011 03:01:40   xinjianshiyan.txt

524288 KB total (170948 KB free)

通过以上显示信息可以查看主设备和从设备存储介质剩的余空间大小。

用户可以将成员设备存储介质的剩余空间大小和待升级文件大小进行对比,判断存储介质剩余空间是否足够。当剩余空间不足时,可使用delete /unreserved命令删除存储介质中的多余文件,释放存储空间。

# 删除两个成员设备存储介质中的多余文件。

·     删除主设备存储介质中的多余文件。

<DeviceA> delete /unreserved chassis1slot0#flash:/r2710.ipe

The file cannot be restored. Delete flash:/r2710.ipe? [Y/N]:y

Deleting the file permanently will take a long time. Please wait...

Deleting file flash:/r2710.ipe... Done.

·     删除从设备存储介质中的多余文件。

<DeviceA> delete /unreserved chassis2slot0#flash:/r2710.ipe

The file cannot be restored. Delete flash:/r2710.ipe? [Y/N]:y

Deleting the file permanently will take a long time. Please wait...

Deleting file flash:/r2710.ipe... Done.

说明

·     使用delete /unreserved file-url命令删除文件,被删除的文件将被彻底删除,不能再恢复。

·     使用delete file-url命令删除文件,被删除的文件被保存在回收站中,仍会占用存储空间。如果要彻底删除回收站中的某个废弃文件,必须在该文件的原目录下执行reset recycle-bin命令,彻底删除回收站中的文件

 

2. 下载待升级文件到主设备

用户可以通过FTPTFTP方式把待升级文件下载到设备的存储介质中,下面以交换机作为FTP Client、用户PC作为FTP Server为例进行介绍:

(1)     在用户PC(假设IP地址为2.2.2.2)上运行FTP Server程序,设置用户名和密码,以及正确的文件保存目录,并把待升级文件保存在FTP Server的工作目录下。

注意

FTP Server软件由用户自己购买和安装,交换机不附带此软件。

 

(2)     确保用户PC和交换机之间路由可达。

(3)     将待升级软件(以R2712.ipe为例)下载到主设备的缺省文件系统的根目录下。

# 设备作为FTP Client登录到FTP Server

<DeviceA> ftp 2.2.2.2

Connected to 2.2.2.2 (2.2.2.2).

220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user

User (2.2.2.2:(none)):username                       ---输入用户名

331 Give me your password, please

Password:                                               ---输入密码

230 Logged in successfully

Remote system type is MSDOS.

ftp>

# 将传输模式设置为二进制模式,以便传输启动软件包。

ftp> binary

200 Type is Image (Binary)

说明

缺省情况下,设备的文件传输模式为二进制模式。

 

# 将启动软件包R2712.ipeFTP服务器下载到主设备的缺省文件系统的根目录下。

ftp> get r2712.ipe

227 Entering Passive Mode (2,2,2,2,7,100)

150 "C:\r2712.ipe " file ready to send (385 bytes) in in IMAGE / Binary mode

226 Transfer finished successfully.

74948608 bytes received in 35.974 seconds (896.00 kbyte/s)

ftp> bye

221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye

3. 进行分步式升级

(1)     # 查看设备的状态。

说明

使用display system stable state命令显示的system state字段为Stable,则表示设备处于稳定状态。ISSU升级前使用命令查看设备的状态,需要等待设备进入稳定状态,才可以进行ISSU升级。

 

<DeviceA> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 2710

  system: 7.1.070, Release 2710

Current software images:

  flash:/boot-r2710.bin

  flash:/system-r2710.bin

<DeviceA> display system stable state

System state     : Stable

Redundancy state : Stable

Chassis    Slot    CPU    Role       State

1          0       0      Active     Stable

1          3       0      Other      Stable

1          14      0      Other      Stable

2          0       0      Active     Stable

2          3       0      Other      Stable

2          14      0      Other      Stable

从设备显示上看,IRF两个成员设备均处于稳定状态,可以进行ISSU升级。

(2)     升级从设备的启动软件包并将从设备的主用下次启动软件包设置为指定的软件包。

IRF环境下进行ISSU升级是以设备为单位的,所以需要先指定从设备的IRF成员编号开始升级。

<DeviceA> issu load file ipe flash:/r2712.ipe chassis 2

This operation will delete the rollback point information for the previous upgrade and maybe get unsaved configuration lost. Continue? [Y/N]:y

Verifying the file flash:/r2712.ipe on chassis 2 slot 0...........Done.

Decompressing file boot-r2712.bin to flash:/boot-r2712.bin.....................Done.

Decompressing file system-r2712.bin to flash:/system-r2712.bin...............................................................................................................................................Done.

Decompression completed.

Do you want to delete flash:/r2712.ipe now? [Y/N]:n

Copying file flash:/boot-r2712.bin to chassis2slot0#flash:/boot-r2712.bin.....................................Done.

Copying file flash:/system-r2712.bin to chassis2slot0#flash:/system-r2712.bin.............................................................................................................................................................................................................................................................................Done.

Verifying the file flash:/boot-r2712.bin on chassis 2 slot 0.....Done.

Verifying the file flash:/system-r2712.bin on chassis 2 slot 0.........................Done.

Identifying the upgrade methods...Done.

Upgrade summary according to following table:

 

flash:/boot-r2712.bin

  Running Version             New Version       

  Release 2710                Release 2712      

 

flash:/system-r2712.bin

  Running Version             New Version       

  Release 2710                Release 2712      

 

  Chassis    Slot             Upgrade Way       

  2          0                Reboot            

Upgrading software images to compatible versions. Continue? [Y/N]:y

This operation might take several minutes, please wait.......Done.

(3)     确定系统处于稳定状态。

说明

执行issu load命令后须等待设备稳定之后才能进行下一步操作。若在此阶段升级出错,也可以等待设备稳定之后使用issu rollback命令手动将版本回滚到升级前的状态。

 

<DeviceA> display issu state

ISSU state: Loaded

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 2

Current upgrading chassis: None

Previous version list:

  boot: 7.1.070, Release 2710

  system: 7.1.070, Release 2710

Previous software images:

  flash:/boot-r2710.bin

  flash:/system-r2710.bin

Upgrade version list:

  boot: 7.1.070, Release 2712

  system: 7.1.070, Release 2712

Upgrade software images:

  flash:/boot-r2712.bin

  flash:/system-r2712.bin

从显示信息中可以看出,目前系统处于ISSU分步式升级过程中的Loaded状态,该状态是一个稳定状态,等待进行下一步主备倒换操作;当前只有Chassis2完成了从Release 2710Release 2712版本的升级,Chassis1还未升级。

(4)     进行ISSU倒换。

<DeviceA> issu run switchover

Upgrade summary according to following table:

 

flash:/boot-r2712.bin

  Running Version             New Version       

  Release 2710                Release 2712      

 

flash:/system-r2712.bin

  Running Version             New Version        

  Release 2710                Release 2712      

 

  Chassis    Slot             Switchover Way                        

  1          0                Master subordinate switchover         

Upgrading software images to compatible versions. Continue? [Y/N]:y

This operation might take several minutes, please wait.......

(5)     确定系统处于稳定状态。

说明

ISSU主备倒换后须等待设备稳定之后才能进行下一步操作。若在此阶段升级出错,也可以等待设备稳定之后使用issu rollback命令手动将版本回滚到升级前的状态。

 

<DeviceA> display issu state

ISSU state: Switchover

Compatibility: Compatible

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis:

  chassis 2

Current upgrading chassis: None

Previous version list:

  boot: 7.1.070, Release 2710

  system: 7.1.070, Release 2710

Previous software images:

  flash:/boot-r2710.bin

  flash:/system-r2710.bin

Upgrade version list:

  boot: 7.1.070, Release 2712

  system: 7.1.070, Release 2712

Upgrade software images:

  flash:/boot-r2712.bin

  flash:/system-r2712.bin

从显示信息中可以看出,目前系统处于ISSU分步式升级过程中的Switchover状态,该状态也是一个稳定状态,表示已经完成了ISSU主备倒换的操作,等待进行下一步Commit操作;当前只有Chassis2完成了从Release 2710Release 2712版本的升级,Chassis1还未升级。

(6)     升级原主设备。

<DeviceA> issu commit chassis 1

Upgrade summary according to following table:

 

flash:/boot-r2712.bin

  Running Version             New Version       

  Release 2710                Release 2712      

 

flash:/system-r2712.bin

  Running Version             New Version       

  Release 2710                Release 2712      

 

  Chassis    Slot             Upgrade Way       

  1          0                Reboot            

Upgrading software images to compatible versions. Continue? [Y/N]:y

This operation might take several minutes, please wait......Done.

说明

缺省情况下,回滚定时器的时长为45分钟,请在回滚定时器超时前配置本命令。若有其他成员设备,请等待一个成员设备升级完成后,再升级下一个。

 

(7)     确定ISSU升级完成

<DeviceA> display issu state

ISSU state: Init

Compatibility: Unknown

Work state: Normal

Upgrade method: Chassis by chassis

Upgraded chassis: None

Current upgrading chassis: None

Current version list:

  boot: 7.1.070, Release 2712

  system: 7.1.070, Release 2712

Current software images:

  flash:/boot-r2712.bin

  flash:/system-r2712.bin

完成以上配置后,此命令显示的ISSU state字段为Init,则表示ISSU升级完成。

6 相关资料

6.1  相关资料

关于IRFISSU的详细介绍请参见相关产品“IRF配置指导”中的“IRF”和“基础配置指导”中的“ISSU”。

新华三官网
联系我们