将Cisco Nexus 5596 集群交换机迁移到Cisco Nexus 3232C 集群交换机
按照以下步骤将现有的Cisco Nexus 5596 集群交换机迁移到与 Nexus 3232C 集群交换机组成的集群中。
审查要求
迁移前,请务必查看"迁移要求"。
|
|
该过程需要同时使用ONTAP命令和Cisco Nexus 3000 系列交换机命令;除非另有说明,否则使用ONTAP命令。 |
有关详细信息,请参阅:For more information, see:
迁移交换机
本流程中的示例描述了如何用Cisco Nexus 3232C 交换机替换Cisco Nexus 5596 交换机。您可以对这些步骤(稍作修改)用于其他较旧的Cisco交换机(例如,3132Q-V)。
该过程还使用了以下交换机和节点命名规则:
-
命令输出可能因ONTAP版本不同而有所差异。
-
需要更换的 Nexus 5596 交换机是 CL1 和 CL2。
-
用于替换 Nexus 5596 交换机的 Nexus 3232C 交换机是 C1 和 C2。
-
n1_clus1 是连接到节点 n1 的集群交换机 1 (CL1 或 C1) 的第一个集群逻辑接口 (LIF)。
-
n1_clus2 是连接到节点 n1 的集群交换机 2(CL2 或 C2)的第一个集群 LIF。
-
n1_clus3 是连接到节点 n1 的集群交换机 2(CL2 或 C2)的第二个 LIF。
-
n1_clus4 是连接到节点 n1 的集群交换机 1(CL1 或 C1)的第二个 LIF。
-
10 GbE 和 40/100 GbE 端口的数量在参考配置文件 (RCF) 中定义,这些文件可在以下网址获取:"Cisco集群网络交换机参考配置文件下载" 。
-
这些节点分别是 n1、n2、n3 和 n4。
本流程中的示例使用了四个节点:
-
两个节点使用四个 10 GbE 集群互连端口:e0a、e0b、e0c 和 e0d。
-
另外两个节点使用两个 40 GbE 集群互连端口:e4a、e4e。这"硬件宇宙"列出平台上的实际集群端口。
本流程涵盖以下几种情况:
-
集群由两个节点组成,这两个节点通过两个 Nexus 5596 集群交换机连接并运行。
-
将集群开关 CL2 替换为 C2(步骤 1 至 19):
-
连接到 CL2 的所有节点上的所有集群端口和 LIF 的流量将迁移到连接到 CL1 的第一个集群端口和 LIF 上。
-
断开连接到 CL2 的所有节点上所有集群端口的电缆,然后使用支持的分支电缆将端口重新连接到新的集群交换机 C2。
-
断开 CL1 和 CL2 之间的 ISL 端口之间的电缆,然后使用支持的分支电缆将端口从 CL1 重新连接到 C2。
-
所有节点上连接到 C2 的所有集群端口和 LIF 上的流量均被回滚。
-
-
集群开关 CL2 将被 C2 替换。
-
连接到 CL1 的所有节点上的所有集群端口或 LIF 上的流量将迁移到连接到 C2 的第二个集群端口或 LIF 上。
-
断开连接到 CL1 的所有节点上所有集群端口的电缆,并使用支持的分支电缆重新连接到新的集群交换机 C1。
-
断开 CL1 和 C2 之间的 ISL 端口之间的电缆,然后使用支持的电缆从 C1 重新连接到 C2。
-
所有节点上连接到 C1 的所有集群端口或 LIF 上的流量将被回滚。
-
-
集群中新增了两个FAS9000节点,并提供了集群详细信息的示例。
步骤 1:准备迁移
-
如果此集群上启用了AutoSupport ,则通过调用AutoSupport消息来抑制自动创建案例:
system node autosupport invoke -node * -type all - message MAINT=xhx 是维护窗口的持续时间,单位为小时。
AutoSupport消息会通知技术支持此维护任务,以便在维护窗口期间抑制自动创建案例。
-
显示配置中设备的相关信息:
network device-discovery show显示示例
以下示例显示了每个节点上每个集群互连交换机配置的集群互连接口数量:
cluster::> network device-discovery show Local Discovered Node Port Device Interface Platform ----------- ------ ------------------- ---------------- ---------------- n1 /cdp e0a CL1 Ethernet1/1 N5K-C5596UP e0b CL2 Ethernet1/1 N5K-C5596UP e0c CL2 Ethernet1/2 N5K-C5596UP e0d CL1 Ethernet1/2 N5K-C5596UP n2 /cdp e0a CL1 Ethernet1/3 N5K-C5596UP e0b CL2 Ethernet1/3 N5K-C5596UP e0c CL2 Ethernet1/4 N5K-C5596UP e0d CL1 Ethernet1/4 N5K-C5596UP 8 entries were displayed. -
确定每个集群接口的管理或运行状态。
-
显示网络端口属性:
network port show -role cluster显示示例
以下示例显示了节点 n1 和 n2 上的网络端口属性:
cluster::*> network port show –role cluster (network port show) Node: n1 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - Node: n2 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - 8 entries were displayed. -
显示逻辑接口信息:
network interface show -role cluster显示示例
以下示例显示集群上所有 LIF 的一般信息,包括它们的当前端口:
cluster::*> network interface show -role cluster (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0a true n1_clus2 up/up 10.10.0.2/24 n1 e0b true n1_clus3 up/up 10.10.0.3/24 n1 e0c true n1_clus4 up/up 10.10.0.4/24 n1 e0d true n2_clus1 up/up 10.10.0.5/24 n2 e0a true n2_clus2 up/up 10.10.0.6/24 n2 e0b true n2_clus3 up/up 10.10.0.7/24 n2 e0c true n2_clus4 up/up 10.10.0.8/24 n2 e0d true 8 entries were displayed. -
显示已发现的集群交换机的相关信息:
system cluster-switch show
显示示例
以下示例显示了活动的集群交换机:
cluster::*> system cluster-switch show Switch Type Address Model ----------------------------- ------------------ --------------- --------------- CL1 cluster-network 10.10.1.101 NX5596 Serial Number: 01234567 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.1(1)N1(1) Version Source: CDP CL2 cluster-network 10.10.1.102 NX5596 Serial Number: 01234568 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.1(1)N1(1) Version Source: CDP 2 entries were displayed. -
-
确认已根据您的要求在新 3232C 交换机上安装了相应的 RCF 和映像,并进行必要的站点自定义,例如用户和密码、网络地址和其他自定义。
此时您必须准备好这两个开关。
如果需要升级 RCF 和镜像,则必须完成以下步骤:
-
请访问NetApp支持网站上的 Cisco 以太网交换机 页面。
-
请记下您交换机的型号以及该页表格中所需的软件版本。
-
下载相应版本的RCF。
-
在“描述”页面上点击“继续”,接受许可协议,然后按照“下载”页面上的说明下载 RCF。
-
下载相应版本的图像处理软件。
请参阅“ONTAP 8.x 或更高版本集群和管理网络交换机参考配置文件 下载”页面,然后单击相应的版本。
要查找正确的版本,请参阅_ONTAP 8.x 或更高版本集群网络交换机下载页面_。
-
-
迁移与待替换的第二台 Nexus 5596 交换机相关的 LIF:
network interface migrate -vserver vserver-name -lif lif-name -source-node source-node-name - destination-node node-name -destination-port destination-port-name显示示例
以下示例显示了节点 n1 和 n2 的 LIF 迁移;所有节点都必须进行 LIF 迁移:
cluster::*> network interface migrate -vserver Cluster -lif n1_clus2 -source-node n1 - destination-node n1 -destination-port e0a cluster::*> network interface migrate -vserver Cluster -lif n1_clus3 -source-node n1 - destination-node n1 -destination-port e0d cluster::*> network interface migrate -vserver Cluster -lif n2_clus2 -source-node n2 - destination-node n2 -destination-port e0a cluster::*> network interface migrate -vserver Cluster -lif n2_clus3 -source-node n2 - destination-node n2 -destination-port e0d
-
验证集群健康状况:
network interface show -role cluster显示示例
以下示例显示了每个集群的当前状态:
cluster::*> network interface show -role cluster (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0a true n1_clus2 up/up 10.10.0.2/24 n1 e0a false n1_clus3 up/up 10.10.0.3/24 n1 e0d false n1_clus4 up/up 10.10.0.4/24 n1 e0d true n2_clus1 up/up 10.10.0.5/24 n2 e0a true n2_clus2 up/up 10.10.0.6/24 n2 e0a false n2_clus3 up/up 10.10.0.7/24 n2 e0d false n2_clus4 up/up 10.10.0.8/24 n2 e0d true 8 entries were displayed.
步骤 2:配置端口
-
关闭与交换机 CL2 物理连接的集群互连端口:
network port modify -node node-name -port port-name -up-admin false显示示例
以下命令关闭 n1 和 n2 上的指定端口,但必须关闭所有节点上的端口:
cluster::*> network port modify -node n1 -port e0b -up-admin false cluster::*> network port modify -node n1 -port e0c -up-admin false cluster::*> network port modify -node n2 -port e0b -up-admin false cluster::*> network port modify -node n2 -port e0c -up-admin false
-
验证远程集群接口的连接性:
你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:
network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show
cluster1::*> network interface check cluster-connectivity start
*注意:*运行 show 命令显示详细信息之前,请等待几秒钟。
cluster1::*> network interface check cluster-connectivity show
Source Destination Packet
Node Date LIF LIF Loss
------ -------------------------- ---------------- ---------------- -----------
n1
3/5/2022 19:21:18 -06:00 n1_clus2 n2-clus1 none
3/5/2022 19:21:20 -06:00 n1_clus2 n2_clus2 none
n2
3/5/2022 19:21:18 -06:00 n2_clus2 n1_clus1 none
3/5/2022 19:21:20 -06:00 n2_clus2 n1_clus2 none
对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:
cluster ping-cluster -node <name>
cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1 e0a 10.10.0.1
Cluster n1_clus2 n1 e0b 10.10.0.2
Cluster n1_clus3 n1 e0c 10.10.0.3
Cluster n1_clus4 n1 e0d 10.10.0.4
Cluster n2_clus1 n2 e0a 10.10.0.5
Cluster n2_clus2 n2 e0b 10.10.0.6
Cluster n2_clus3 n2 e0c 10.10.0.7
Cluster n2_clus4 n2 e0d 10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
Local 10.10.0.1 to Remote 10.10.0.5
Local 10.10.0.1 to Remote 10.10.0.6
Local 10.10.0.1 to Remote 10.10.0.7
Local 10.10.0.1 to Remote 10.10.0.8
Local 10.10.0.2 to Remote 10.10.0.5
Local 10.10.0.2 to Remote 10.10.0.6
Local 10.10.0.2 to Remote 10.10.0.7
Local 10.10.0.2 to Remote 10.10.0.8
Local 10.10.0.3 to Remote 10.10.0.5
Local 10.10.0.3 to Remote 10.10.0.6
Local 10.10.0.3 to Remote 10.10.0.7
Local 10.10.0.3 to Remote 10.10.0.8
Local 10.10.0.4 to Remote 10.10.0.5
Local 10.10.0.4 to Remote 10.10.0.6
Local 10.10.0.4 to Remote 10.10.0.7
Local 10.10.0.4 to Remote 10.10.0.8
Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
4 paths up, 0 paths down (udp check)
-
使用Cisco关闭 CL1(即当前活动的 Nexus 5596 交换机)上的 ISL 41 至 48。 `shutdown`命令。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例显示 Nexus 5596 交换机 CL1 上的 ISL 41 至 48 被关闭:
(CL1)# configure (CL1)(Config)# interface e1/41-48 (CL1)(config-if-range)# shutdown (CL1)(config-if-range)# exit (CL1)(Config)# exit (CL1)#
-
使用相应的Cisco命令在 CL1 和 C2 之间建立临时 ISL。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例展示了如何在 CL1 和 C2 之间建立临时 ISL:
C2# configure C2(config)# interface port-channel 2 C2(config-if)# switchport mode trunk C2(config-if)# spanning-tree port type network C2(config-if)# mtu 9216 C2(config-if)# interface breakout module 1 port 24 map 10g-4x C2(config)# interface e1/24/1-4 C2(config-if-range)# switchport mode trunk C2(config-if-range)# mtu 9216 C2(config-if-range)# channel-group 2 mode active C2(config-if-range)# exit C2(config-if)# exit
-
在所有节点上,移除连接到 Nexus 5596 交换机 CL2 的所有电缆。
使用支持的线缆,将所有节点上断开的端口重新连接到 Nexus 3232C 交换机 C2。
-
从 Nexus 5596 交换机 CL2 上移除所有电缆。
将合适的Cisco QSFP 转 SFP+ 分线电缆连接到新的Cisco 3232C 交换机 C2 的端口 1/24 和现有 Nexus 5596 CL1 的端口 45 至 48。
-
在活动的 Nexus 5596 交换机 CL1 上启用 ISL 端口 45 至 48。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例展示了如何启动 ISL 的 45 至 48 号端口:
(CL1)# configure (CL1)(Config)# interface e1/45-48 (CL1)(config-if-range)# no shutdown (CL1)(config-if-range)# exit (CL1)(Config)# exit (CL1)#
-
确认 ISL 是否为 `up`在 Nexus 5596 交换机 CL1 上。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例显示端口 eth1/45 至 eth1/48 标有 (P),表示 ISL 端口为 `up`在端口通道中。
CL1# show port-channel summary Flags: D - Down P - Up in port-channel (members) I - Individual H - Hot-standby (LACP only) s - Suspended r - Module-removed S - Switched R - Routed U - Up (port-channel) M - Not in use. Min-links not met -------------------------------------------------------------------------------- Group Port- Type Protocol Member Ports Channel -------------------------------------------------------------------------------- 1 Po1(SU) Eth LACP Eth1/41(D) Eth1/42(D) Eth1/43(D) Eth1/44(D) Eth1/45(P) Eth1/46(P) Eth1/47(P) Eth1/48(P) -
确认接口 eth1/45-48 的运行配置中是否已启用
channel-group 1 mode active。 -
在所有节点上,启动连接到 3232C 交换机 C2 的所有集群互连端口:
network port modify -node node-name -port port-name -up-admin true显示示例
以下示例展示了如何在节点 n1 和 n2 上启动指定的端口:
cluster::*> network port modify -node n1 -port e0b -up-admin true cluster::*> network port modify -node n1 -port e0c -up-admin true cluster::*> network port modify -node n2 -port e0b -up-admin true cluster::*> network port modify -node n2 -port e0c -up-admin true
-
在所有节点上,还原所有已迁移的连接到 C2 的集群互连 LIF:
network interface revert -vserver Cluster -lif lif-name显示示例
以下示例展示了迁移后的集群 LIF 如何恢复到其原端口:
cluster::*> network interface revert -vserver Cluster -lif n1_clus2 cluster::*> network interface revert -vserver Cluster -lif n1_clus3 cluster::*> network interface revert -vserver Cluster -lif n2_clus2 cluster::*> network interface revert -vserver Cluster -lif n2_clus3
-
请确认所有集群互连端口均已恢复到其原始设置:
network interface show -role cluster显示示例
以下示例表明 clus2 上的 LIF 已恢复到其源端口,并且如果“当前端口”列中的端口状态为“已恢复”,则表示 LIF 已成功恢复。 `true`在 `Is Home`柱子。如果 `Is Home`值是 `false`LIF尚未被撤销。
cluster::*> *network interface show -role cluster* (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0a true n1_clus2 up/up 10.10.0.2/24 n1 e0b true n1_clus3 up/up 10.10.0.3/24 n1 e0c true n1_clus4 up/up 10.10.0.4/24 n1 e0d true n2_clus1 up/up 10.10.0.5/24 n2 e0a true n2_clus2 up/up 10.10.0.6/24 n2 e0b true n2_clus3 up/up 10.10.0.7/24 n2 e0c true n2_clus4 up/up 10.10.0.8/24 n2 e0d true 8 entries were displayed. -
请确认集群端口已连接:
network port show -role cluster显示示例
以下示例展示了前一个结果。
network port modify`命令,验证所有集群互连是否都已连接 `up:cluster::*> network port show -role cluster (network port show) Node: n1 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - Node: n2 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - 8 entries were displayed. -
验证远程集群接口的连接性:
你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:
network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show
cluster1::*> network interface check cluster-connectivity start
*注意:*运行程序前请等待几秒钟 `show`显示详细信息的命令。
cluster1::*> network interface check cluster-connectivity show
Source Destination Packet
Node Date LIF LIF Loss
------ -------------------------- ---------------- ---------------- -----------
n1
3/5/2022 19:21:18 -06:00 n1_clus2 n2-clus1 none
3/5/2022 19:21:20 -06:00 n1_clus2 n2_clus2 none
n2
3/5/2022 19:21:18 -06:00 n2_clus2 n1_clus1 none
3/5/2022 19:21:20 -06:00 n2_clus2 n1_clus2 none
对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:
cluster ping-cluster -node <name>
cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1 e0a 10.10.0.1
Cluster n1_clus2 n1 e0b 10.10.0.2
Cluster n1_clus3 n1 e0c 10.10.0.3
Cluster n1_clus4 n1 e0d 10.10.0.4
Cluster n2_clus1 n2 e0a 10.10.0.5
Cluster n2_clus2 n2 e0b 10.10.0.6
Cluster n2_clus3 n2 e0c 10.10.0.7
Cluster n2_clus4 n2 e0d 10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
Local 10.10.0.1 to Remote 10.10.0.5
Local 10.10.0.1 to Remote 10.10.0.6
Local 10.10.0.1 to Remote 10.10.0.7
Local 10.10.0.1 to Remote 10.10.0.8
Local 10.10.0.2 to Remote 10.10.0.5
Local 10.10.0.2 to Remote 10.10.0.6
Local 10.10.0.2 to Remote 10.10.0.7
Local 10.10.0.2 to Remote 10.10.0.8
Local 10.10.0.3 to Remote 10.10.0.5
Local 10.10.0.3 to Remote 10.10.0.6
Local 10.10.0.3 to Remote 10.10.0.7
Local 10.10.0.3 to Remote 10.10.0.8
Local 10.10.0.4 to Remote 10.10.0.5
Local 10.10.0.4 to Remote 10.10.0.6
Local 10.10.0.4 to Remote 10.10.0.7
Local 10.10.0.4 to Remote 10.10.0.8
Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
4 paths up, 0 paths down (udp check)
-
在集群中的每个节点上,迁移与第一个要替换的 Nexus 5596 交换机 CL1 关联的接口:
network interface migrate -vserver vserver-name -lif lif-name -source-node source-node-name -destination-node destination-node-name -destination-port destination-port-name显示示例
以下示例显示了节点 n1 和 n2 上正在迁移的端口或 LIF:
cluster::*> network interface migrate -vserver Cluster -lif n1_clus1 -source-node n1 - destination-node n1 -destination-port e0b cluster::*> network interface migrate -vserver Cluster -lif n1_clus4 -source-node n1 - destination-node n1 -destination-port e0c cluster::*> network interface migrate -vserver Cluster -lif n2_clus1 -source-node n2 - destination-node n2 -destination-port e0b cluster::*> network interface migrate -vserver Cluster -lif n2_clus4 -source-node n2 - destination-node n2 -destination-port e0c
-
验证集群状态:
network interface show显示示例
以下示例表明,所需的集群 LIF 已迁移到集群交换机 C2 上托管的相应集群端口:
cluster::*> network interface show Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0b false n1_clus2 up/up 10.10.0.2/24 n1 e0b true n1_clus3 up/up 10.10.0.3/24 n1 e0c true n1_clus4 up/up 10.10.0.4/24 n1 e0c false n2_clus1 up/up 10.10.0.5/24 n2 e0b false n2_clus2 up/up 10.10.0.6/24 n2 e0b true n2_clus3 up/up 10.10.0.7/24 n2 e0c true n2_clus4 up/up 10.10.0.8/24 n2 e0c false 8 entries were displayed. ----- ------- ---- -
在所有节点上,关闭连接到 CL1 的节点端口:
network port modify -node node-name -port port-name -up-admin false显示示例
以下示例显示了如何在节点 n1 和 n2 上关闭指定的端口:
cluster::*> network port modify -node n1 -port e0a -up-admin false cluster::*> network port modify -node n1 -port e0d -up-admin false cluster::*> network port modify -node n2 -port e0a -up-admin false cluster::*> network port modify -node n2 -port e0d -up-admin false
-
关闭活动 3232C 交换机 C2 上的 ISL 24、31 和 32。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例展示了 ISL 被关闭的情况:
C2# configure C2(Config)# interface e1/24/1-4 C2(config-if-range)# shutdown C2(config-if-range)# exit C2(config)# interface 1/31-32 C2(config-if-range)# shutdown C2(config-if-range)# exit C2(config-if)# exit C2#
-
在所有节点上,移除连接到 Nexus 5596 交换机 CL1 的所有电缆。
使用支持的电缆,将所有节点上断开的端口重新连接到 Nexus 3232C 交换机 C1。
-
从 Nexus 3232C C2 端口 e1/24 上移除 QSFP 分线电缆。
使用支持的Cisco QSFP 光纤或直连电缆,将 C1 上的端口 e1/31 和 e1/32 连接到 C2 上的端口 e1/31 和 e1/32。
-
恢复端口 24 的配置,并移除 C2 上的临时端口通道 2。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例展示了如何使用相应的Cisco命令恢复端口 m24 上的配置:
C2# configure C2(config)# no interface breakout module 1 port 24 map 10g-4x C2(config)# no interface port-channel 2 C2(config-if)# int e1/24 C2(config-if)# description 40GbE Node Port C2(config-if)# spanning-tree port type edge C2(config-if)# spanning-tree bpduguard enable C2(config-if)# mtu 9216 C2(config-if-range)# exit C2(config)# exit C2# copy running-config startup-config [] 100% Copy Complete.
-
在活动 3232C 交换机 C2 上启用 ISL 端口 31 和 32,方法是输入以下Cisco命令:
no shutdown有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
显示示例
以下示例展示了Cisco命令 `switchname configure`在 3232C 交换机 C2 上提出:
C2# configure C2(config)# interface ethernet 1/31-32 C2(config-if-range)# no shutdown
-
确认 ISL 连接是否正常 `up`在 3232C 开关 C2 上。
有关Cisco命令的更多信息,请参阅 "Cisco Nexus 3000 系列 NX-OS 命令参考"。
端口 eth1/31 和 eth1/32 应显示 (P),表示这两个 ISL 端口均已在端口通道中启用。
显示示例
C1# show port-channel summary Flags: D - Down P - Up in port-channel (members) I - Individual H - Hot-standby (LACP only) s - Suspended r - Module-removed S - Switched R - Routed U - Up (port-channel) M - Not in use. Min-links not met -------------------------------------------------------------------------------- Group Port- Type Protocol Member Ports Channel -------------------------------------------------------------------------------- 1 Po1(SU) Eth LACP Eth1/31(P) Eth1/32(P) -
在所有节点上,启动连接到新的 3232C 交换机 C1 的所有集群互连端口:
network port modify显示示例
以下示例显示了在 3232C 交换机 C1 上为 n1 和 n2 启动的所有集群互连端口:
cluster::*> network port modify -node n1 -port e0a -up-admin true cluster::*> network port modify -node n1 -port e0d -up-admin true cluster::*> network port modify -node n2 -port e0a -up-admin true cluster::*> network port modify -node n2 -port e0d -up-admin true
-
验证集群节点端口状态:
network port show显示示例
以下示例验证了新的 3232C 交换机 C1 上所有节点的所有集群互连端口均已启动:
cluster::*> network port show –role cluster (network port show) Node: n1 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - Node: n2 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - 8 entries were displayed. -
在所有节点上,将特定的集群 LIF 恢复到其原始端口:
network interface revert -server Cluster -lif lif-name显示示例
以下示例显示了特定集群 LIF 在节点 n1 和 n2 上恢复到其原生端口的情况:
cluster::*> network interface revert -vserver Cluster -lif n1_clus1 cluster::*> network interface revert -vserver Cluster -lif n1_clus4 cluster::*> network interface revert -vserver Cluster -lif n2_clus1 cluster::*> network interface revert -vserver Cluster -lif n2_clus4
-
确认接口是否处于主状态:
network interface show -role cluster显示示例
以下示例显示了集群互连接口的状态。 `up`和 `Is Home`对于 n1 和 n2:
cluster::*> network interface show -role cluster (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0a true n1_clus2 up/up 10.10.0.2/24 n1 e0b true n1_clus3 up/up 10.10.0.3/24 n1 e0c true n1_clus4 up/up 10.10.0.4/24 n1 e0d true n2_clus1 up/up 10.10.0.5/24 n2 e0a true n2_clus2 up/up 10.10.0.6/24 n2 e0b true n2_clus3 up/up 10.10.0.7/24 n2 e0c true n2_clus4 up/up 10.10.0.8/24 n2 e0d true 8 entries were displayed. -
验证远程集群接口的连接性:
你可以使用 `network interface check cluster-connectivity`执行命令以启动集群连接性检查,然后显示详细信息:
network interface check cluster-connectivity start`和 `network interface check cluster-connectivity show
cluster1::*> network interface check cluster-connectivity start
*注意:*运行程序前请等待几秒钟 `show`显示详细信息的命令。
cluster1::*> network interface check cluster-connectivity show
Source Destination Packet
Node Date LIF LIF Loss
------ -------------------------- ---------------- ---------------- -----------
n1
3/5/2022 19:21:18 -06:00 n1_clus2 n2-clus1 none
3/5/2022 19:21:20 -06:00 n1_clus2 n2_clus2 none
n2
3/5/2022 19:21:18 -06:00 n2_clus2 n1_clus1 none
3/5/2022 19:21:20 -06:00 n2_clus2 n1_clus2 none
对于所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`检查连接性的命令:
cluster ping-cluster -node <name>
cluster1::*> cluster ping-cluster -node local
Host is n1
Getting addresses from network interface table...
Cluster n1_clus1 n1 e0a 10.10.0.1
Cluster n1_clus2 n1 e0b 10.10.0.2
Cluster n1_clus3 n1 e0c 10.10.0.3
Cluster n1_clus4 n1 e0d 10.10.0.4
Cluster n2_clus1 n2 e0a 10.10.0.5
Cluster n2_clus2 n2 e0b 10.10.0.6
Cluster n2_clus3 n2 e0c 10.10.0.7
Cluster n2_clus4 n2 e0d 10.10.0.8
Local = 10.10.0.1 10.10.0.2 10.10.0.3 10.10.0.4
Remote = 10.10.0.5 10.10.0.6 10.10.0.7 10.10.0.8
Cluster Vserver Id = 4294967293
Ping status:....
Basic connectivity succeeds on 16 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 9000 byte MTU on 16 path(s):
Local 10.10.0.1 to Remote 10.10.0.5
Local 10.10.0.1 to Remote 10.10.0.6
Local 10.10.0.1 to Remote 10.10.0.7
Local 10.10.0.1 to Remote 10.10.0.8
Local 10.10.0.2 to Remote 10.10.0.5
Local 10.10.0.2 to Remote 10.10.0.6
Local 10.10.0.2 to Remote 10.10.0.7
Local 10.10.0.2 to Remote 10.10.0.8
Local 10.10.0.3 to Remote 10.10.0.5
Local 10.10.0.3 to Remote 10.10.0.6
Local 10.10.0.3 to Remote 10.10.0.7
Local 10.10.0.3 to Remote 10.10.0.8
Local 10.10.0.4 to Remote 10.10.0.5
Local 10.10.0.4 to Remote 10.10.0.6
Local 10.10.0.4 to Remote 10.10.0.7
Local 10.10.0.4 to Remote 10.10.0.8
Larger than PMTU communication succeeds on 16 path(s)
RPC status:
4 paths up, 0 paths down (tcp check)
4 paths up, 0 paths down (udp check)
-
通过向 Nexus 3232C 集群交换机添加节点来扩展集群。
以下示例显示节点 n3 和 n4 分别通过 40 GbE 集群端口连接到 Nexus 3232C 集群交换机的 e1/7 和 e1/8 端口,并且两个节点都已加入集群。使用的 40 GbE 集群互连端口为 e4a 和 e4e。
显示配置中设备的信息:
-
network device-discovery show -
network port show -role cluster -
network interface show -role cluster -
system cluster-switch show
显示示例
cluster::> network device-discovery show Local Discovered Node Port Device Interface Platform ----------- ------ ------------------- ---------------- ---------------- n1 /cdp e0a C1 Ethernet1/1/1 N3K-C3232C e0b C2 Ethernet1/1/1 N3K-C3232C e0c C2 Ethernet1/1/2 N3K-C3232C e0d C1 Ethernet1/1/2 N3K-C3232C n2 /cdp e0a C1 Ethernet1/1/3 N3K-C3232C e0b C2 Ethernet1/1/3 N3K-C3232C e0c C2 Ethernet1/1/4 N3K-C3232C e0d C1 Ethernet1/1/4 N3K-C3232C n3 /cdp e4a C1 Ethernet1/7 N3K-C3232C e4e C2 Ethernet1/7 N3K-C3232C n4 /cdp e4a C1 Ethernet1/8 N3K-C3232C e4e C2 Ethernet1/8 N3K-C3232C 12 entries were displayed.+
cluster::*> network port show –role cluster (network port show) Node: n1 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - Node: n2 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e0a Cluster Cluster up 9000 auto/10000 - - e0b Cluster Cluster up 9000 auto/10000 - - e0c Cluster Cluster up 9000 auto/10000 - - e0d Cluster Cluster up 9000 auto/10000 - - Node: n3 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e4a Cluster Cluster up 9000 auto/40000 - - e4e Cluster Cluster up 9000 auto/40000 - - Node: n4 Ignore Speed(Mbps) Health Health Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status --------- ------------ ---------------- ---- ---- ----------- -------- ------ e4a Cluster Cluster up 9000 auto/40000 - - e4e Cluster Cluster up 9000 auto/40000 - - 12 entries were displayed.+
cluster::*> network interface show -role cluster (network interface show) Logical Status Network Current Current Is Vserver Interface Admin/Oper Address/Mask Node Port Home ----------- ---------- ---------- ------------------ ------------- ------- ---- Cluster n1_clus1 up/up 10.10.0.1/24 n1 e0a true n1_clus2 up/up 10.10.0.2/24 n1 e0b true n1_clus3 up/up 10.10.0.3/24 n1 e0c true n1_clus4 up/up 10.10.0.4/24 n1 e0d true n2_clus1 up/up 10.10.0.5/24 n2 e0a true n2_clus2 up/up 10.10.0.6/24 n2 e0b true n2_clus3 up/up 10.10.0.7/24 n2 e0c true n2_clus4 up/up 10.10.0.8/24 n2 e0d true n3_clus1 up/up 10.10.0.9/24 n3 e4a true n3_clus2 up/up 10.10.0.10/24 n3 e4e true n4_clus1 up/up 10.10.0.11/24 n4 e4a true n4_clus2 up/up 10.10.0.12/24 n4 e4e true 12 entries were displayed.+
cluster::*> system cluster-switch show Switch Type Address Model --------------------------- ------------------ ---------------- --------------- C1 cluster-network 10.10.1.103 NX3232C Serial Number: FOX000001 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I4(1) Version Source: CDP C2 cluster-network 10.10.1.104 NX3232C Serial Number: FOX000002 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I4(1) Version Source: CDP CL1 cluster-network 10.10.1.101 NX5596 Serial Number: 01234567 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.1(1)N1(1) Version Source: CDP CL2 cluster-network 10.10.1.102 NX5596 Serial Number: 01234568 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.1(1)N1(1) Version Source: CDP 4 entries were displayed. -
-
使用以下方法移除已替换的 Nexus 5596: `system cluster-switch delete`命令(如果未自动删除):
system cluster-switch delete -device switch-name显示示例
cluster::> system cluster-switch delete –device CL1 cluster::> system cluster-switch delete –device CL2
步骤 3:完成该步骤
-
确认已对正确的集群交换机进行监控:
system cluster-switch show显示示例
cluster::> system cluster-switch show Switch Type Address Model --------------------------- ------------------ ---------------- --------------- C1 cluster-network 10.10.1.103 NX3232C Serial Number: FOX000001 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I4(1) Version Source: CDP C2 cluster-network 10.10.1.104 NX3232C Serial Number: FOX000002 Is Monitored: true Reason: Software Version: Cisco Nexus Operating System (NX-OS) Software, Version 7.0(3)I4(1) Version Source: CDP 2 entries were displayed. -
如果您已禁用自动创建案例功能,请通过调用AutoSupport消息重新启用该功能:
system node autosupport invoke -node * -type all -message MAINT=END