Skip to main content
简体中文版经机器翻译而成,仅供参考。如与英语版出现任何冲突,应以英语版为准。

更换NetApp CN1610 集群交换机

贡献者 netapp-yvonneo

请按照以下步骤更换集群网络中出现故障的NetApp CN1610 交换机。这是一个非侵入性手术(NDU)。

审查要求

开始之前

在进行交换机更换之前,必须满足以下条件:在当前环境和待更换交换机上,现有集群和网络基础设施均需满足这些条件:

  • 必须验证现有集群功能完全正常,至少有一个完全连接的集群交换机。

  • 集群中的所有端口必须处于启用状态。

  • 集群中的所有逻辑接口(LIF)必须处于启用状态,且不得已被迁移。

  • ONTAP集群 `ping-cluster -node node1`命令必须表明所有路径上的基本连接和大于 PMTU 的通信均已成功。

启用控制台日志记录

NetApp强烈建议您在使用的设备上启用控制台日志记录,并在更换交换机时执行以下操作:

更换开关

关于此任务

您必须从集群 LIF 所在的节点执行迁移集群 LIF 的命令。

本流程中的示例使用以下集群交换机和节点命名规则:

  • 这两个 CN1610 集群交换机的名称是 cs1`和 `cs2

  • 待更换的CN1610交换机(故障交换机)的名称是 old_cs1

  • 新型CN1610交换机(替代交换机)的名称是 new_cs1

  • 未被替换的伙伴交换机的名称是 cs2

步骤
  1. 确认启动配置文件与运行配置文件一致。您必须将这些文件保存到本地,以便在替换过程中使用。

    以下示例中的配置命令适用于 FASTPATH 1.2.0.7:

    显示示例
    (old_cs1)> enable
    (old_cs1)# show running-config
    (old_cs1)# show startup-config
  2. 创建运行配置文件副本。

    以下示例中的命令适用于 FASTPATH 1.2.0.7:

    显示示例
    (old_cs1)# show running-config filename.scr
    Config script created successfully.
备注 您可以使用除以下任何文件名之外的任何文件名。 CN1610_CS_RCF_v1.2.scr 。文件名必须带有 .scr 扩展名。
  1. 将交换机的运行配置文件保存到外部主机,以便进行更换。

    显示示例
    (old_cs1)# copy nvram:script filename.scr scp://<Username>@<remote_IP_address>/path_to_file/filename.scr
  2. 请核对交换机和ONTAP版本是否在兼容性矩阵中匹配。参见 "NetApp CN1601 和 CN1610 交换机"详情请见页面。

  3. "软件下载页面"在NetApp支持网站上,选择NetApp集群交换机,下载相应的 RCF 和 FASTPATH 版本。

  4. 使用 FASTPATH、RCF 和已保存的配置设置简单文件传输协议 (TFTP) 服务器 `.scr`用于新交换机的文件。

  5. 将串行端口(交换机右侧标有“IOIOI”的 RJ-45 连接器)连接到具有终端仿真功能的可用主机。

  6. 在主机上,设置串口终端连接:

    1. 9600波特

    2. 8 位数据

    3. 1 停止位

    4. 奇偶性:无

    5. 流量控制:无

  7. 将管理端口(交换机左侧的 RJ-45 扳手端口)连接到 TFTP 服务器所在的同一网络。

  8. 准备连接到网络和 TFTP 服务器。

    如果您使用的是动态主机配置协议 (DHCP),则目前无需为交换机配置 IP 地址。服务端口默认设置为使用 DHCP。 IPv4 和 IPv6 协议设置中的网络管理端口均设置为“无”。如果您的扳手端口连接到具有 DHCP 服务器的网络,则服务器设置将自动配置。

    要设置静态 IP 地址,您应该使用 serviceport protocol、network protocol 和 serviceport ip 命令。

    显示示例
    (new_cs1)# serviceport ip <ipaddr> <netmask> <gateway>
  9. 如果 TFTP 服务器位于笔记本电脑上,则可以选择使用标准以太网线将 CN1610 交换机连接到笔记本电脑,然后使用备用 IP 地址在同一网络中配置其网络端口。

    你可以使用 `ping`用于验证地址的命令。如果无法建立连接,则应使用非路由网络,并使用 IP 192.168.x 或 172.16.x 配置服务端口。稍后您可以将服务端口重新配置为生产管理 IP 地址。

  10. (可选)验证并安装适用于新交换机的 RCF 和 FASTPATH 软件的相应版本。如果您已确认新交换机已正确设置,并且不需要更新 RCF 和 FASTPATH 软件,则应转到步骤 13。

    1. 请验证新的交换机设置。

      显示示例
      (new_cs1)> enable
      (new_cs1)# show version
    2. 将 RCF 文件下载到新交换机。

      显示示例
      (new_cs1)# copy tftp://<server_ip_address>/CN1610_CS_RCF_v1.2.txt nvram:script CN1610_CS_RCF_v1.2.scr
      Mode.	TFTP
      Set Server IP.	172.22.201.50
      Path.	/
      Filename....................................... CN1610_CS_RCF_v1.2.txt
      Data Type...................................... Config Script
      Destination Filename........................... CN1610_CS_RCF_v1.2.scr
      File with same name already exists.
      WARNING:Continuing with this command will overwrite the existing file.
      
      Management access will be blocked for the duration of the transfer Are you sure you want to start? (y/n) y
      
      File transfer in progress. Management access will be blocked for the duration of the transfer. please wait...
      Validating configuration script...
      (the entire script is displayed line by line)
      ...
      description "NetApp CN1610 Cluster Switch RCF v1.2 - 2015-01-13"
      ...
      Configuration script validated.
      File transfer operation completed successfully.
    3. 确认 RCF 已下载到交换机。

      显示示例
      (new_cs1)# script list
      Configuration Script Nam   Size(Bytes)
      -------------------------- -----------
      CN1610_CS_RCF_v1.1.scr            2191
      CN1610_CS_RCF_v1.2.scr            2240
      latest_config.scr                 2356
      
      4 configuration script(s) found.
      2039 Kbytes free.
  11. 将 RCF 应用于 CN1610 交换机。

    显示示例
    (new_cs1)# script apply CN1610_CS_RCF_v1.2.scr
    Are you sure you want to apply the configuration script? (y/n) y
    ...
    (the entire script is displayed line by line)
    ...
    description "NetApp CN1610 Cluster Switch RCF v1.2 - 2015-01-13"
    ...
    Configuration script 'CN1610_CS_RCF_v1.2.scr' applied. Note that the script output will go to the console.
    After the script is applied, those settings will be active in the running-config file. To save them to the startup-config file, you must use the write memory command, or if you used the reload answer yes when asked if you want to save the changes.
    1. 保存运行配置文件,以便重启交换机时将其设为启动配置文件。

      显示示例
      (new_cs1)# write memory
      This operation may take a few minutes.
      Management interfaces will not be available during this time.
      
      Are you sure you want to save? (y/n) y
      
      Config file 'startup-config' created successfully.
      
      Configuration Saved!
    2. 将镜像下载到 CN1610 交换机。

      显示示例
      (new_cs1)# copy tftp://<server_ip_address>/NetApp_CN1610_1.2.0.7.stk active
      Mode.	TFTP
      Set Server IP.	tftp_server_ip_address
      Path.	/
      Filename....................................... NetApp_CN1610_1.2.0.7.stk
      Data Type.	Code
      Destination Filename.	active
      
      Management access will be blocked for the duration of the transfer
      
      Are you sure you want to start? (y/n) y
      
      TFTP Code transfer starting...
      
      File transfer operation completed successfully.
    3. 通过重启交换机来运行新的活动启动映像。

      必须重启交换机,步骤 6 中的命令才能反映新的映像。输入重新加载命令后,可能会看到两种不同的响应视图。

    显示示例
    (new_cs1)# reload
    The system has unsaved changes.
    Would you like to save them now? (y/n) y
    
    Config file 'startup-config' created successfully.
    
    Configuration Saved! System will now restart!
    .
    .
    .
    Cluster Interconnect Infrastructure
    
    User:admin Password: (new_cs1) >*enable*
    1. 将旧交换机上保存的配置文件复制到新交换机上。

      显示示例
      (new_cs1)# copy tftp://<server_ip_address>/<filename>.scr nvram:script <filename>.scr
    2. 将之前保存的配置应用到新交换机。

      显示示例
      (new_cs1)# script apply <filename>.scr
      Are you sure you want to apply the configuration script? (y/n) y
      
      The system has unsaved changes.
      Would you like to save them now? (y/n) y
      
      Config file 'startup-config' created successfully.
      
      Configuration Saved!
    3. 将运行配置文件保存到启动配置文件中。

      显示示例
      (new_cs1)# write memory
  12. 如果此集群上启用了AutoSupport ,则通过调用AutoSupport消息来抑制自动创建案例: system node autosupport invoke -node * -type all - message MAINT=xh

    x 是维护窗口的持续时间,单位为小时。

    备注

    AutoSupport消息会通知技术支持此维护任务,以便在维护窗口期间抑制自动创建案例。

  13. 在新交换机 new_cs1 上,以管理员用户身份登录,并关闭所有连接到节点集群接口的端口(端口 1 到 12)。

    显示示例
    User:*admin*
    Password:
    (new_cs1)> enable
    (new_cs1)#
    (new_cs1)# config
    (new_cs1)(config)# interface 0/1-0/12
    (new_cs1)(interface 0/1-0/12)# shutdown
    (new_cs1)(interface 0/1-0/12)# exit
    (new_cs1)# write memory
  14. 将集群 LIF 从连接到 old_cs1 交换机的端口迁移。

    您必须从当前节点的管理界面迁移每个集群 LIF。

    显示示例
    cluster::> set -privilege advanced
    cluster::> network interface migrate -vserver <vserver_name> -lif <Cluster_LIF_to_be_moved> - sourcenode <current_node> -dest-node <current_node> -dest-port <cluster_port_that_is_UP>
  15. 确认所有集群 LIF 都已移动到每个节点上的相应集群端口。

    显示示例
    cluster::> network interface show -role cluster
  16. 关闭连接到您更换的交换机的集群端口。

    显示示例
    cluster::*> network port modify -node <node_name> -port <port_to_admin_down> -up-admin false
  17. 验证集群的健康状况。

    显示示例
    cluster::*> cluster show
  18. 请确认端口已关闭。

    显示示例
    cluster::*> cluster ping-cluster -node <node_name>
  19. 在交换机 cs2 上,关闭 ISL 端口 13 至 16。

    显示示例
    (cs2)# config
    (cs2)(config)# interface 0/13-0/16
    (cs2)(interface 0/13-0/16)# shutdown
    (cs2)# show port-channel 3/1
  20. 确认存储管理员是否已准备好更换交换机。

  21. 从 old_cs1 交换机上拆下所有电缆,然后将电缆连接到 new_cs1 交换机上的相同端口。

  22. 在 cs2 交换机上,启用 ISL 端口 13 至 16。

    显示示例
    (cs2)# config
    (cs2)(config)# interface 0/13-0/16
    (cs2)(interface 0/13-0/16)# no shutdown
  23. 启用新交换机上与集群节点关联的端口。

    显示示例
    (new_cs1)# config
    (new_cs1)(config)# interface 0/1-0/12
    (new_cs1)(interface 0/13-0/16)# no shutdown
  24. 在单个节点上,启动连接到被替换交换机的集群节点端口,然后确认链路已建立。

    显示示例
    cluster::*> network port modify -node node1 -port <port_to_be_onlined> -up-admin true
    cluster::*> network port show -role cluster
  25. 还原与步骤 25 中端口关联的集群 LIF。

    在本例中,如果“Is Home”列为真,则节点 1 上的 LIF 将成功还原。

    显示示例
    cluster::*> network interface revert -vserver node1 -lif <cluster_lif_to_be_reverted>
    cluster::*> network interface show -role cluster
  26. 如果第一个节点的集群 LIF 已启动并恢复到其主端口,则重复步骤 25 和 26 以启动集群端口并恢复集群中其他节点的集群 LIF。

  27. 显示集群中节点的相关信息。

    显示示例
    cluster::*> cluster show
  28. 确认更换后的交换机上的启动配置文件和运行配置文件是否正确。此配置文件应与步骤 1 中的输出相匹配。

    显示示例
    (new_cs1)> enable
    (new_cs1)# show running-config
    (new_cs1)# show startup-config
  29. 如果您已禁用自动创建案例功能,请通过调用AutoSupport消息重新启用该功能:

    system node autosupport invoke -node * -type all -message MAINT=END