迁移到使用支持 Broadcom 的 BES-53248 集群交换机的交换式 Lenovo 集群环境
如果您现有的是双节点无交换机集群环境,则可以迁移到使用支持 Broadcom 的 BES-53248 集群交换机的双节点交换式集群环境,以使您能够将集群中的节点扩展到两个以上。
双节点无交换机配置:
- 必须正确地设置并运行双节点无交换机配置。
- 节点必须运行 ONTAP 9.6 或更高版本。
- 所有集群端口都必须处于 up 状态。
- 所有集群逻辑接口(LIF)都必须处于 up 状态,并位于其主端口上。
支持 Broadcom 的 BES-53248 集群交换机配置:
BES-53248 集群交换机必须在两台交换机上都完全正常运行。
两台交换机都必须具有管理网络连接。
必须能够通过控制台访问集群交换机。
BES-53248 节点到节点的交换和交换机到交换机的连接必须采用双轴线缆或光缆。
Lenovo Press 中包含了有关布线的更多信息。
- 交换机间链接(ISL)线缆必须同时连接到两台 BES-53248 交换机上的 0/55 和 0/56 端口。
- 必须完成两台 BES-53248 交换机的初始自定义,以确保:
- BES-53248 交换机运行的是最新版本的软件
- BES-53248 交换机已安装可选许可证(如果已购买)
- 参考配置文件(RCF)已应用到交换机
必须在新交换机上配置所有站点自定义项,例如 SMTP、SNMP 和 SSH。
此过程中的示例使用以下集群交换机和节点命名法:
BES-53248 交换机的名称为 cs1 和 cs2。
SVM 集群的名称为 node1 和 node2。
节点 1 上的 LIF 的名称为 node1_clus1 和 node1_clus2,节点 2 上的 LIF 的名称为 node2_clus1 和 node2_clus2。
cluster1::*> 提示符指示集群的名称。
此过程中使用的集群端口为 e0a 和 e0b。
此过程中使用的交换机端口是端口 1 和端口 2。
Lenovo Press 中包含了有关平台的实际集群端口的最新信息。
- 将权限级别更改为高级,在提示是否继续时输入 y:set -privilege advanced随后将显示高级提示符(*>)。
- 如果在此集群上启用了自动支持,请通过调用自动支持消息来禁止自动创建案例:system node autosupport invoke -node * -type all -message MAINT=xh其中 x 表示维护时段的持续时间(以小时为单位)。注自动支持消息会通知技术支持人员此维护任务,以便在维护时段内禁止自动创建案例。
以下命令会在两小时内禁止自动创建案例:
cluster1::*> system node autosupport invoke -node * -type all -message MAINT=2h
- 禁用两台新的集群交换机 cs1 和 cs2 上所有面向节点的端口(不是 ISL 端口)。注您不得禁用 ISL 端口。
以下示例显示在交换机 cs1 上禁用了面向节点的端口 1 至 2:
(cs1)# configure
(cs1)(Config)# interface 0/1-0/2
(cs1)(Interface 0/1-0/2)# shutdown
(cs1)(Interface 0/1-0/2)# exit
(cs1)(Config)# exit - 验证两台 BES-53248 交换机 cs1 和 cs2 之间的 ISL 和 ISL 上的物理端口是否为 up 状态:show port-channel
以下示例显示交换机 cs1 上的 ISL 端口为 up 状态:
(cs1)# show port-channel 1/1
Local Interface................................ 1/1
Channel Name................................... Cluster-ISL
Link State..................................... Up
Admin Mode..................................... Enabled
Type........................................... Dynamic
Port channel Min-links......................... 1
Load Balance Option............................ 7
(Enhanced hashing mode)
Mbr Device/ Port Port
Ports Timeout Speed Active
------ ------------- --------- -------
0/55 actor/long 100G Full True
partner/long
0/56 actor/long 100G Full True
partner/long
(cs1) #以下示例显示交换机 cs2 上的 ISL 端口为 up 状态:
(cs2)# show port-channel 1/1
Local Interface................................ 1/1
Channel Name................................... Cluster-ISL
Link State..................................... Up
Admin Mode..................................... Enabled
Type........................................... Dynamic
Port channel Min-links......................... 1
Load Balance Option............................ 7
(Enhanced hashing mode)
Mbr Device/ Port Port
Ports Timeout Speed Active
------ ------------- --------- -------
0/55 actor/long 100G Full True
partner/long
0/56 actor/long 100G Full True
partner/long
(cs2) # - 显示相邻设备的列表:show isdp neighbors此命令提供有关连接到系统的设备的信息。
以下示例列出了交换机 cs1 上的相邻设备:
(cs1)# show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform Port ID
-------------- -------- --------- ------------ ----------- ---------
cs2 0/55 176 R BES-53248 0/55
cs2 0/56 176 R BES-53248 0/56以下示例列出了交换机 cs2 上的相邻设备:
(cs2)# show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform Port ID
-------------- -------- --------- ------------ ----------- ---------
cs2 0/55 176 R BES-53248 0/55
cs2 0/56 176 R BES-53248 0/56 - 验证是否所有集群端口均为 up 状态:network port show -ipspace Cluster每个端口的 Link 应显示为 up,Health Status 应显示为 healthy。
cluster1::*> network port show -ipspace Cluster
Node: node1
Speed(Mbps) Health
Port IPspace Broadcast Domain Link MTU Admin/Oper Status
--------- ------------ ---------------- ---- ---- ----------- --------
e0a Cluster Cluster up 9000 auto/10000 healthy
e0b Cluster Cluster up 9000 auto/10000 healthy
Node: node2
Speed(Mbps) Health
Port IPspace Broadcast Domain Link MTU Admin/Oper Status
--------- ------------ ---------------- ---- ---- ----------- --------
e0a Cluster Cluster up 9000 auto/10000 healthy
e0b Cluster Cluster up 9000 auto/10000 healthy
4 entries were displayed. - 验证是否所有集群 LIF 均为 up 状态并正常运行:network interface show -vserver Cluster每个集群 LIF 的 Is Home 应显示为 true,Status Admin/Oper 应显示为 up/up
cluster1::*> network interface show -vserver Cluster
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- -----
Cluster
node1_clus1 up/up 169.254.209.69/16 node1 e0a true
node1_clus2 up/up 169.254.49.125/16 node1 e0b true
node2_clus1 up/up 169.254.47.194/16 node2 e0a true
node2_clus2 up/up 169.254.19.183/16 node2 e0b true
4 entries were displayed. - 验证是否已在所有集群 LIF 上启用 auto-revert:network interface show -vserver Cluster -fields auto-revert
cluster1::*> network interface show -vserver Cluster -fields auto-revert
Logical
Vserver Interface Auto-revert
--------- ------------- ------------
Cluster
node1_clus1 true
node1_clus2 true
node2_clus1 true
node2_clus2 true
4 entries were displayed. - 断开 node1 上的集群端口 e0a 的线缆连接,然后使用 BES-53248 交换机支持的适当布线将 e0a 连接到集群交换机 cs1 上的端口 1。Lenovo Press 中包含了有关布线的更多信息。
- 断开 node2 上的集群端口 e0a 的线缆连接,然后使用 BES-53248 交换机支持的适当布线将 e0a 连接到集群交换机 cs1 上的端口 2。
- 在集群交换机 cs1 上启用所有面向节点的端口。
以下示例显示在交换机 cs1 上启用了端口 1 至 2:
(cs1)# configure
(cs1)(Config)# interface 0/1-0/2
(cs1)(Interface 0/1-0/2)# no shutdown
(cs1)(Interface 0/1-0/2)# exit
(cs1)(Config)# exit - 验证是否所有集群 LIF 均为 up 状态、处于正常运行,并且 Is Home 显示为 true:network interface show -vserver Cluster
以下示例显示 node1 和 node2 上的所有 LIF 均为 up 状态,并且 Is Home 结果为 true:
cluster1::*> network interface show -vserver Cluster
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
-------- ------------ ---------- ------------------ ----------- ------- ----
Cluster
node1_clus1 up/up 169.254.209.69/16 node1 e0a true
node1_clus2 up/up 169.254.49.125/16 node1 e0b true
node2_clus1 up/up 169.254.47.194/16 node2 e0a true
node2_clus2 up/up 169.254.19.183/16 node2 e0b true
4 entries were displayed. - 显示集群中节点的状态信息:cluster show
以下示例显示了集群中节点的运行状况和资格状态信息。在此示例中,Health 结果为 true,Epsilon 结果为 false。
cluster1::*> cluster show
Node Health Eligibility Epsilon
-------------------- ------- ------------ ------------
node1 true true false
node2 true true false
2 entries were displayed.验证是否每个节点都与每个交换机之间有一个连接:show isdp neighbors
(cs1) #show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform Port ID
------------------------ --------- --------- ---------- ---------------- ---------
node1 0/1 175 H FAS2750 e0a
node2 0/2 157 H FAS2750 e0a
cs2 0/55 178 R BES-53248 0/56
cs2 0/56 178 R BES-53248 0/55
(cs2) #show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform Port ID
------------------------ --------- --------- ---------- ---------------- ---------
cs1 0/55 175 R BES-53248 0/56
cs1 0/56 175 R BES-53248 0/55 - 断开 node1 上的集群端口 e0b 的线缆连接,然后使用 BES-53248 交换机支持的适当布线将 e0b 连接到集群交换机 cs2 上的端口 1。
- 断开 node2 上的集群端口 e0b 的线缆连接,然后使用 BES-53248 交换机支持的适当布线将 e0b 连接到集群交换机 cs2 上的端口 2。
- 在集群交换机 cs2 上启用所有面向节点的端口。
以下示例显示在交换机 cs2 上启用了端口 1 至 2:
(cs2)# configure
(cs2)(Config)# interface 0/1-0/2
(cs2)(Interface 0/1-0/2)# no shutdown
(cs2)(Interface 0/1-0/2)# exit
(cs2)(Config)# exit - 验证是否所有集群端口均为 up 状态:network port show -ipspace Cluster
以下示例显示 node1 和 node2 上所有集群端口均为 up 状态:
cluster1::*> network port show -ipspace Cluster
Node: node1
Ignore
Speed(Mbps) Health Health
Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status
--------- ------------ ---------------- ---- ---- ----------- -------- ------
e0a Cluster Cluster up 9000 auto/10000 healthy false
e0b Cluster Cluster up 9000 auto/10000 healthy false
Node: node2
Ignore
Speed(Mbps) Health Health
Port IPspace Broadcast Domain Link MTU Admin/Oper Status Status
--------- ------------ ---------------- ---- ---- ----------- -------- ------
e0a Cluster Cluster up 9000 auto/10000 healthy false
e0b Cluster Cluster up 9000 auto/10000 healthy false
4 entries were displayed. - 验证是否所有接口的 Is Home 都显示为 true:network interface show -vserver Cluster注这可能需要几分钟才能完成。
以下示例显示 node1 和 node2 上的所有 LIF 均为 up 状态,并且 Is Home 结果为 true:
cluster1::*> network interface show -vserver Cluster
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
--------- ------------ ---------- ------------------ ---------- ------- ----
Cluster
node1_clus1 up/up 169.254.209.69/16 node1 e0a true
node1_clus2 up/up 169.254.49.125/16 node1 e0b true
node2_clus1 up/up 169.254.47.194/16 node2 e0a true
node2_clus2 up/up 169.254.19.183/16 node2 e0b true
4 entries were displayed. - 验证是否两个节点分别都与每个交换机之间有一个连接:show isdp neighbors
以下示例显示了两台交换机的相应结果:
(cs1)# show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform -- Port ID
-------------- ------------ --------- ------------ ----------- ----------
node1 0/1 175 H FAS2750 e0a
node2 0/2 157 H FAS2750 e0a
cs2 0/55 178 R BES-53248 0/55
cs2 0/56 178 R BES-53248 0/56
(cs2)# show isdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge,
S - Switch, H - Host, I - IGMP, r - Repeater
Device ID Intf Holdtime Capability Platform Port ID
-------------- ------------ --------- ------------ ----------- ------------
node1 0/1 137 H FAS2750 e0b
node2 0/2 179 H FAS2750 e0b
cs1 0/55 175 R BES-53248 0/55
cs1 0/56 175 R BES-53248 0/56 - 显示有关在集群中发现的网络设备的信息:network device-discovery show -protocol cdp
cluster1::*> network device-discovery show -protocol cdp
Node/ Local Discovered
Protocol Port Device (LLDP: ChassisID) Interface Platform
----------- ------ ------------------------- ---------------- ----------------
node2 /cdp
e0a cs1 0/2 BES-53248
e0b cs2 0/2 BES-53248
node1 /cdp
e0a cs1 0/1 BES-53248
e0b cs2 0/1 BES-53248
4 entries were displayed. - 验证是否已禁用设置:network options switchless-cluster show注该命令可能需要几分钟才能完成。请等待“3 分钟有效期到期”通知。
以下示例中的 false 输出显示已禁用配置设置:
cluster1::*> network options switchless-cluster show
Enable Switchless Cluster: false - 验证集群中的节点成员的状态:cluster show
以下示例显示了集群中节点的运行状况和资格状态信息:
cluster1::*> cluster show
Node Health Eligibility Epsilon
-------------------- ------- ------------ --------
node1 true true false
node2 true true false - 使用以下命令确保集群网络具有完整连接性:cluster ping-cluster -node node-name
cluster1::*> cluster ping-cluster -node local
Host is node2
Getting addresses from network interface table...
Cluster node1_clus1 192.168.168.26 node1 e0a
Cluster node1_clus2 192.168.168.27 node1 e0b
Cluster node2_clus1 192.168.168.28 node2 e0a
Cluster node2_clus2 192.168.168.29 node2 e0b
Local = 192.168.168.28 192.168.168.29
Remote = 192.168.168.26 192.168.168.27
Cluster Vserver Id = 4294967293
Ping status:
....
Basic connectivity succeeds on 4 path(s)
Basic connectivity fails on 0 path(s)
................
Detected 1500 byte MTU on 4 path(s):
Local 192.168.168.28 to Remote 192.168.168.26
Local 192.168.168.28 to Remote 192.168.168.27
Local 192.168.168.29 to Remote 192.168.168.26
Local 192.168.168.29 to Remote 192.168.168.27
Larger than PMTU communication succeeds on 4 path(s)
RPC status:
2 paths up, 0 paths down (tcp check)
2 paths up, 0 paths down (udp check) - 保存正在运行的配置,以使其成为运行以下命令重新启动 cs1 和 cs2 交换机时的启动配置:write memory
(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!
(cs2) # 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! - 如果已禁止自动创建案例,请通过调用自动支持消息来重新启用它:system node autosupport invoke -node * -type all -message MAINT=END
cluster1::*> system node autosupport invoke -node * -type all -message MAINT=END
- 改回管理员权限级别:set -privilege admin