遷移到雙節點交換集群
如果您已有雙節點無交換器叢集環境,則可以使用Cisco Nexus 9336C-FX2 和 9336C-FX2-T 交換器遷移到雙節點有交換器叢集環境。
遷移過程適用於所有使用光纖或 Twinax 連接埠的節點,但如果節點使用板載 10Gb BASE-T RJ45 連接埠作為叢集網路端口,則此交換器不支援遷移。
審查要求
-
對於雙節點無交換器配置:
-
雙節點無交換器配置已正確設定並運作正常。
-
叢集所有連接埠均處於*開啟*狀態。
-
所有群集邏輯介面(LIF)均處於 up 狀態,並位於其主連接埠上。
-
看 "Hardware Universe"適用於所有支援的ONTAP版本。
-
-
對於Cisco Nexus 9336C-FX2 交換器配置:
-
兩台交換器都具備管理網路連線功能。
-
可以透過控制台存取叢集交換器。
-
Nexus 9336C-FX2 節點到節點交換器和交換器到交換器連接使用 Twinax 或光纖電纜。
看 "Hardware Universe"有關佈線的更多資訊。
-
-
交換器間連結 (ISL) 電纜連接到兩個 9336C-FX2 交換器上的連接埠 1/35 和 1/36。
-
兩台 9336C-FX2 交換器的初始自訂已完成,因此:
-
9336C-FX2 交換器運作的是最新版本的軟體。
-
參考設定檔(RCF)應用於交換器。任何站點定制,如 SMTP、SNMP 和 SSH,都在新交換器上進行設定。
-
本流程中的範例使用下列叢集交換器和節點命名規則:
-
9336C-FX2 交換器的名稱是 cs1 和 cs2。
-
聚類SVM的名稱分別為node1和node2。
-
節點 1 上的 LIF 名稱分別為 node1_clus1 和 node1_clus2,節點 2 上的 LIF 名稱分別為 node2_clus1 和 node2_clus2。
-
這 `cluster1::*>`prompt 指示叢集名稱。
-
此過程中使用的叢集連接埠為 e0a 和 e0b。
看 "Hardware Universe"有關您平台集群連接埠的資訊。
遷移交換機
步驟 1:準備遷移
-
如果此叢集上啟用了AutoSupport ,則透過呼叫AutoSupport訊息來抑制自動建立案例:
system node autosupport invoke -node * -type all -message MAINT=xh其中 x 為維護窗口的持續時間(小時)。
AutoSupport訊息會通知技術支援此維護任務,以便在維護視窗期間抑制自動建立案例。 -
將權限級別變更為高級,輸入 `y`當系統提示繼續:
set -privilege advanced進階提示(`*>`出現。
步驟二:設定埠和線纜
-
停用新叢集交換器 cs1 和 cs2 上所有面向節點的連接埠(非 ISL 連接埠)。
請勿禁用ISL連接埠。
顯示範例
以下範例顯示交換器 cs1 上面向節點的連接埠 1 到 34 已停用:
cs1# config Enter configuration commands, one per line. End with CNTL/Z. cs1(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34 cs1(config-if-range)# shutdown
-
驗證兩個 9336C-FX2 交換器 cs1 和 cs2 之間的 ISL 以及 ISL 上的實體連接埠在連接埠 1/35 和 1/36 上是否處於啟動狀態:
show port-channel summary顯示範例
以下範例表示交換器 cs1 上的 ISL 連接埠已啟動:
cs1# 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 b - BFD Session Wait S - Switched R - Routed U - Up (port-channel) p - Up in delay-lacp mode (member) M - Not in use. Min-links not met -------------------------------------------------------------------------------- Group Port- Type Protocol Member Ports Channel -------------------------------------------------------------------------------- 1 Po1(SU) Eth LACP Eth1/35(P) Eth1/36(P)以下範例表示交換器 cs2 上的 ISL 連接埠已啟動:
(cs2)# 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 b - BFD Session Wait S - Switched R - Routed U - Up (port-channel) p - Up in delay-lacp mode (member) M - Not in use. Min-links not met -------------------------------------------------------------------------------- Group Port- Type Protocol Member Ports Channel -------------------------------------------------------------------------------- 1 Po1(SU) Eth LACP Eth1/35(P) Eth1/36(P) -
顯示相鄰設備清單:
show cdp neighbors此命令提供有關連接到系統的設備的資訊。
顯示範例
以下範例列出了交換器 cs1 上的相鄰設備:
cs1# show cdp neighbors Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID cs2 Eth1/35 175 R S I s N9K-C9336C Eth1/35 cs2 Eth1/36 175 R S I s N9K-C9336C Eth1/36 Total entries displayed: 2以下範例列出了交換器 cs2 上的相鄰設備:
cs2# show cdp neighbors Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID cs1 Eth1/35 177 R S I s N9K-C9336C Eth1/35 cs1 Eth1/36 177 R S I s N9K-C9336C Eth1/36 Total entries displayed: 2 -
請確認叢集所有連接埠均已啟動:
network port show -ipspace Cluster每個連接埠都應該顯示出來。
Link`而且對身體有益 `Health Status。顯示範例
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 都已啟動並正常運作:
network interface show -vserver Cluster每個集群 LIF 應顯示 `true`為了 `Is Home`並且擁有 `Status Admin/Oper`向上/向上。
顯示範例
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 都已啟用自動回滾功能:
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. -
斷開節點 1 上的叢集連接埠 e0a 的電纜,然後使用 9336C-FX2 交換器支援的適當電纜將 e0a 連接到叢集交換器 cs1 上的連接埠 1。
這 "Hardware Universe- 交換機"包含更多關於佈線的資訊。
-
斷開節點 2 上的叢集連接埠 e0a 的電纜,然後使用 9336C-FX2 交換器支援的適當電纜將 e0a 連接到叢集交換器 cs1 上的連接埠 2。
-
啟用叢集交換器 cs1 上所有面向節點的連接埠。
顯示範例
以下範例顯示交換器 cs1 上的連接埠 1/1 到 1/34 已啟用:
cs1# config Enter configuration commands, one per line. End with CNTL/Z. cs1(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34 cs1(config-if-range)# no shutdown
-
確認所有叢集 LIF 均已啟動、運作正常並顯示為:
true`為了 `Is Home:network interface show -vserver Cluster顯示範例
以下範例表明,節點 1 和節點 2 上的所有 LIF 都已啟動。 `Is Home`結果屬實:
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顯示範例
以下範例顯示了叢集中節點的健康狀況和資格資訊:
cluster1::*> cluster show Node Health Eligibility Epsilon -------------------- ------- ------------ ------------ node1 true true false node2 true true false 2 entries were displayed.
-
斷開節點 1 上的叢集連接埠 e0b 的電纜,然後使用 9336C-FX2 交換器支援的適當電纜將 e0b 連接到叢集交換器 cs2 上的連接埠 1。
-
斷開節點 2 上的叢集連接埠 e0b 的電纜,然後使用 9336C-FX2 交換器支援的適當電纜將 e0b 連接到叢集交換器 cs2 上的連接埠 2。
-
啟用叢集交換器 cs2 上所有面向節點的連接埠。
顯示範例
以下範例顯示交換器 cs2 上的連接埠 1/1 到 1/34 已啟用:
cs2# config Enter configuration commands, one per line. End with CNTL/Z. cs2(config)# interface e1/1/1-4, e1/2/1-4, e1/3/1-4, e1/4/1-4, e1/5/1-4, e1/6/1-4, e1/7-34 cs2(config-if-range)# no shutdown
-
請確認叢集所有連接埠均已啟動:
network port show -ipspace Cluster顯示範例
以下範例顯示節點 1 和節點 2 上的所有叢集連接埠均已啟動:
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.
步驟 3:驗證配置
-
驗證所有介面是否都顯示為 true
Is Home:network interface show -vserver Cluster這可能需要幾分鐘才能完成。 顯示範例
以下範例顯示節點 1 和節點 2 上的所有 LIF 都已啟動,並且 `Is Home`結果屬實:
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 cdp neighbors顯示範例
以下範例顯示了兩種開關的正確結果:
(cs1)# show cdp neighbors Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID node1 Eth1/1 133 H FAS2980 e0a node2 Eth1/2 133 H FAS2980 e0a cs2 Eth1/35 175 R S I s N9K-C9336C Eth1/35 cs2 Eth1/36 175 R S I s N9K-C9336C Eth1/36 Total entries displayed: 4 (cs2)# show cdp neighbors Capability Codes: R - Router, T - Trans-Bridge, B - Source-Route-Bridge S - Switch, H - Host, I - IGMP, r - Repeater, V - VoIP-Phone, D - Remotely-Managed-Device, s - Supports-STP-Dispute Device-ID Local Intrfce Hldtme Capability Platform Port ID node1 Eth1/1 133 H FAS2980 e0b node2 Eth1/2 133 H FAS2980 e0b cs1 Eth1/35 175 R S I s N9K-C9336C Eth1/35 cs1 Eth1/36 175 R S I s N9K-C9336C Eth1/36 Total entries displayed: 4 -
顯示集群中已發現的網路設備資訊:
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 N9K-C9336C e0b cs2 0/2 N9K-C9336C node1 /cdp e0a cs1 0/1 N9K-C9336C e0b cs2 0/1 N9K-C9336C 4 entries were displayed. -
請確認這些設定已停用:
network options switchless-cluster show命令可能需要幾分鐘才能完成。等待「3分鐘生命即將結束」的公告。 顯示範例
以下範例中的錯誤輸出表示組態設定已停用:
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
-
驗證遠端集群介面的連接性:
你可以使用 `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
------ -------------------------- ---------------- ---------------- -----------
node1
3/5/2022 19:21:18 -06:00 node1_clus2 node2-clus1 none
3/5/2022 19:21:20 -06:00 node1_clus2 node2_clus2 none
node2
3/5/2022 19:21:18 -06:00 node2_clus2 node1_clus1 none
3/5/2022 19:21:20 -06:00 node2_clus2 node1_clus2 none
對於所有ONTAP版本,您也可以使用 `cluster ping-cluster -node <name>`檢查連接性的命令:
cluster ping-cluster -node <name>
cluster1::*> cluster ping-cluster -node local Host is node2 Getting addresses from network interface table... Cluster node1_clus1 169.254.209.69 node1 e0a Cluster node1_clus2 169.254.49.125 node1 e0b Cluster node2_clus1 169.254.47.194 node2 e0a Cluster node2_clus2 169.254.19.183 node2 e0b Local = 169.254.47.194 169.254.19.183 Remote = 169.254.209.69 169.254.49.125 Cluster Vserver Id = 4294967293 Ping status: Basic connectivity succeeds on 4 path(s) Basic connectivity fails on 0 path(s) Detected 9000 byte MTU on 4 path(s): Local 169.254.47.194 to Remote 169.254.209.69 Local 169.254.47.194 to Remote 169.254.49.125 Local 169.254.19.183 to Remote 169.254.209.69 Local 169.254.19.183 to Remote 169.254.49.125 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)
-
步驟7:將權限等級改回管理員:
set -privilege admin -
如果您已停用自動建立案例功能,請透過呼叫AutoSupport訊息重新啟用該功能:
system node autosupport invoke -node * -type all -message MAINT=END
交換器遷移完成後,您可以… "配置交換器健康監控"。