從MetroCluster配置中刪除 DR 群組
從ONTAP 9.8 開始,您可以從八節點MetroCluster配置中刪除災難復原 (DR) 群組,以建立四節點MetroCluster配置。
|
您可以在過渡和系統刷新工作流程期間使用這些步驟。 |
啟用主控台記錄
NetApp 強烈建議您在使用的裝置上啟用主控台記錄功能、並在執行此程序時採取下列動作:
-
在維護期間保持啟用 AutoSupport 。
-
在維護之前和之後觸發維護 AutoSupport 訊息、以在維護活動期間停用案例建立。
請參閱知識庫文章 "如何在排程的維護期間、隱藏自動建立個案"。
-
啟用任何 CLI 工作階段的工作階段記錄。有關如何啓用會話日誌記錄的說明,請查看知識庫文章中的“日誌記錄會話輸出”部分 "如何設定 Putty 以最佳化連線至 ONTAP 系統"。
從每個叢集中刪除 DR 群組節點
從ONTAP 9.8 開始支援此流程。對於運行ONTAP 9.7 或更早版本的系統,請參閱知識庫文章:"如何從MetroCluster 功能不完善的組態中移除DR群組" 。
八節點組態包含八個節點、以兩個四節點DR群組形式組織。

刪除 DR 群組時,配置中仍保留四個節點。

-
您必須在兩個叢集上執行此步驟。
-
僅支援在支援的版本僅在支援的版本僅有支援使用「MetroCluster 支援」ONTAP 功能的指令。
-
如果尚未刪除 DR 群組,請準備刪除該群組。
-
將所有資料磁碟區移至另一個DR群組。
-
如果要移除的 DR 群組具有負載共享鏡像卷,則在另一個 DR 群組中重新建立所有負載共享鏡像卷,並將其從要移除的 DR 群組中刪除。
-
遵循、將所有 MDV_CRS 中繼資料磁碟區移至另一個 DR 群組 "在MetroCluster 不完整的組態中移動中繼資料磁碟區" 程序。
-
刪除要移除之DR群組中可能存在的所有MDV_aud中繼資料磁碟區。
-
刪除要移除的 DR 群組中的所有資料聚合:
ClusterA::> storage aggregate show -node ClusterA-01, ClusterA-02 -fields aggregate ,node ClusterA::> aggr delete -aggregate aggregate_name ClusterB::> storage aggregate show -node ClusterB-01, ClusterB-02 -fields aggregate ,node ClusterB::> aggr delete -aggregate aggregate_name
不會刪除根Aggregate。 -
將用於 NFS 和 CIFS (SMB) 的所有 NAS 資料 LIF 遷移到另一個 DR 群組中的主節點。+
network interface show -home-node <old_node>
network interface migrate -vserver <svm_name> -lif <data_lif> -destination-node <new_node> -destination-port <port>
-
將資料 LIF 移至另一個 DR 群組中的新主節點。
network interface modify -vserver <svm-name> -lif <data-lif> -home-node <new_node> -home-port <port>
-
將叢集管理LIF移轉至另一個DR群組中的主節點。
「網路介面show -role叢集管理」
network interface modify -vserver <svm-name> -lif <cluster_mgmt> -home-node <new_node> -home-port <port-id>
-
節點管理和叢集間 LIF 不會遷移。根據需要在 DR 群組的節點上建立新的節點管理和叢集間 LIF。
-
您無法在節點之間遷移或移動用於區塊存取 (SAN) 的 FCP 介面。根據需要建立新的 FCP 介面。
-
需要先關閉 iSCSI SAN LIF,然後才能更新主節點和主連接埠。
-
必要時、將epsilon傳輸至另一個DR群組中的節點。
ClusterA::> set advanced ClusterA::*> cluster show Move epsilon if needed ClusterA::*> cluster modify -node nodename -epsilon false ClusterA::*> cluster modify -node nodename -epsilon true ClusterB::> set advanced ClusterB::*> cluster show ClusterB::*> cluster modify -node nodename -epsilon false ClusterB::*> cluster modify -node nodename -epsilon true ClusterB::*> set admin
-
-
識別並移除DR群組。
-
識別要移除的正確DR群組:
「不一樣的秀」MetroCluster
-
移除DR群組節點:+「MetroCluster 支援移除- DR-group -DR-group ID 1」
下列範例顯示如何移除叢集A上的DR群組組態
範例
cluster_A::*> Warning: Nodes in the DR group that are removed from the MetroCluster configuration will lose their disaster recovery protection. Local nodes "node_A_1-FC, node_A_2-FC"will be removed from the MetroCluster configuration. You must repeat the operation on the partner cluster "cluster_B"to remove the remote nodes in the DR group. Do you want to continue? {y|n}: y Info: The following preparation steps must be completed on the local and partner clusters before removing a DR group. 1. Move all data volumes to another DR group. 2. Move all MDV_CRS metadata volumes to another DR group. 3. Delete all MDV_aud metadata volumes that may exist in the DR group to be removed. 4. Delete all data aggregates in the DR group to be removed. Root aggregates are not deleted. 5. Migrate all data LIFs to home nodes in another DR group. 6. Migrate the cluster management LIF to a home node in another DR group. Node management and inter-cluster LIFs are not migrated. 7. Transfer epsilon to a node in another DR group. The command is vetoed if the preparation steps are not completed on the local and partner clusters. Do you want to continue? {y|n}: y [Job 513] Job succeeded: Remove DR Group is successful. cluster_A::*>
-
-
在合作夥伴叢集上重複上述步驟。
-
在舊 DR 群組的節點上停用儲存故障轉移:
storage failover modify -node <node-name> -enable false
-
如果您處於MetroCluster IP 配置中,請執行下列步驟刪除根聚合的遠端叢並刪除舊 DR 群組節點上的磁碟所有權。
需要對每個站點的 HA 對中的兩個節點執行這些步驟。
-
顯示要刪除的 DR 群組中節點上的根聚合的遠端叢:
storage aggregate plex show -aggregate <root_aggr_name> -pool 1
-
刪除遠端 plex:
storage aggregate plex delete -aggregate <root_aggr_name> -plex <plex_from_previous_step>
-
識別 DR 群組中節點擁有的遠端磁碟。
您使用的命令取決於您使用的是分割區/共用磁碟還是整個磁碟:
使用逗號分隔列表 `-owner <node_names>`欄位指定要刪除的 DR 群組中的節點名稱。 分割區/共享磁碟:-
將權限層級設為進階:
《進階設定》
-
顯示遠端磁碟:
storage disk show -pool Pool1 -owner <node_names> -partition-ownership
整個磁碟:-
將權限層級設為進階:
《進階設定》
-
顯示遠端磁碟:
storage disk show -pool Pool1 -owner <node_names>
-
-
禁用磁碟自動分配:
disk option modify -node <node_names_in_the_DR_group_to_be_deleted> -autoassign off
-
刪除每個要刪除的 DR 群組節點上的 pool1 磁碟的所有權。在每個要刪除的節點上執行下列步驟。
-
轉到 nodeshell:
run -node <node_name>
-
識別pool1磁碟:
aggr status -s
顯示所有備用磁碟,包括節點擁有的pool0和pool1備用磁碟。
-
刪除每個 pool1 備用磁碟的磁碟所有權:
disk remove_ownership <disk_name>
-
對於分割磁碟,刪除分割區所有權,然後刪除容器磁碟所有權。
-
-
如果您處於MetroCluster IP 設定中,請刪除舊 DR 群組節點上的MetroCluster連線。
這些命令可以從任一集群發出,並適用於跨越兩個集群的整個 DR 組。
-
中斷連線:
metrocluster configuration-settings connection disconnect -dr-group-id <dr_group_id>
範例
cluster_A::*> metrocluster configuration-settings connection disconnect -dr-group-id 1 Warning: For the nodes in the DR group 1, this command will remove the existing connections that are used to mirror NV logs and access remote storage. Do you want to continue? {y|n}: y Warning: Before proceeding with disconnect, you must verify the following: 1. Unmirrored aggregates do not have disks in remote plexes. 2. Aggregates are not mirrored. 3. No disks are assigned in Pool1. 4. Storage failover is not enabled. Follow the "MetroCluster Installation and Configuration guide" for detailed instructions to verify this. Do you want to continue? {y|n}: y
-
刪除MetroCluster 舊DR群組節點上的介面:
必須在 DR 群組的每個節點上重複此步驟。
「刪除組態設定介面」MetroCluster
-
刪除舊DR群組的組態。+ MetroCluster 「不包含組態設定的DR-group刪除」
-
-
取消加入舊DR群組中的節點。
在每個集群上執行此步驟。
-
設定進階權限層級:
"進階權限"
-
退出節點:+
cluster unjoin -node <node-name>
對舊DR群組中的其他本機節點重複此步驟。
-
設定管理員權限等級:
「et -priv. admin」
-
-
檢查新 DR 組中是否啟用了叢集 HA。如果需要,重新啟用叢集 HA:
"cluster ha modify -configured true"
在每個集群上執行此步驟。
-
停止、關機及移除舊的控制器模組和儲存櫃。