[VPLEX]Metro winner掉線時手動從對端恢復(fù)IO
注:非專業(yè)人士勿自行操作,請咨詢DellEMC客服服務(wù)團(tuán)隊。
Metro winner掉線時手動從對端恢復(fù)IO
說明:
當(dāng)VPLEX Metro因無第三機(jī)房沒有配置Witness時,winner集群宕機(jī)時且無法及時恢復(fù)時,需手動從對端拉起業(yè)務(wù),恢復(fù)I/O。
?
場景描述:
假定客戶業(yè)務(wù)在VPLEX Cluster-1,分布式卷的一致性組設(shè)置winner為cluster-1,業(yè)務(wù)服務(wù)器由VPLEX cluster-1前端口提供存儲。
此時VPLEX cluster-1 及其連接主機(jī)和存儲宕機(jī),暫時無法恢復(fù)業(yè)務(wù),需要從VPLEX cluster-2及其后端存儲和前端服務(wù)器恢復(fù)業(yè)務(wù)。
?
VPLEX端操作:
登陸VPLEX cluster-2的CLI管理界面,用戶名密碼為service/P@ssw0rd,切換到vplexcli模式下。
service@vplex02:~> vplexcli
Trying ::1...
Connected to localhost.
Escape character is '^]'.
將目錄切換到所需要恢復(fù)的一致性組下,并使用ll查看此一致性組狀態(tài)
VPlexcli:/>cd /cluster/cluster-2/consistency-groups/UNITY500_25T
VPlexcli: /cluster/cluster-2/consistency-groups/UNITY500_25T>ll
Attributes:
Name????????????????? Value
--------------------? ---------------------------------------------------------
active-clusters?????? []
cache-mode?????? ?????synchronous
detach-rule?????????? winner cluster-1 after 5s
operational-status??? [(cluster-1, { summary:: degraded,details:: [member-volumes-unreachable] }), (cluster-2, { summary:: suspended, details:: [cluster-departure] })]
passive-clusters????? []
read-only???????????? false
recoverpoint-enabled? false
storage-at-clusters?? [cluster-1, cluster-2]
virtual-volumes?????? [UNITY500_25T]
visibility??????????? [cluster-1, cluster-2]
Contexts:
Name????????? Description
------------? -----------
advanced????? -
recoverpoint? -
?
查看operation-status,顯示cluster-1的卷已經(jīng)不可達(dá),此時需要從cluster-2恢復(fù)I/O,則需要手動設(shè)置cluster-2為臨時winner。
VPlexcli:/clusters/cluster-1/consistency-groups/UNITY500_25T> choose-winner cluster-2
?????????????????????????????????????????????????????????? ??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
WARNING: This can cause data divergence and lead to data loss. Ensure the other cluster is not serving I/O for this consistency group before continuing. Continue?? (Yes/No) yes
?
此時VPLEX cluster-2已恢復(fù)I/O,cluster-2前端服務(wù)器可訪問存儲,此時可進(jìn)行主機(jī)操作恢復(fù)業(yè)務(wù)。
?
主機(jī)端操作:
??????? 1)當(dāng)主機(jī)環(huán)境為Metro兩端主機(jī)Oracle RAC時,只需VPLEX恢復(fù)I/O后拉起服務(wù)即可。
2)當(dāng)主機(jī)環(huán)境為Metro兩端為VMware虛擬化開啟HA且兩端主機(jī)在同一集群內(nèi)時,只需VPLEX恢復(fù)I/O后重啟虛擬機(jī)即可。
3)當(dāng)Metro兩端為獨(dú)立服務(wù)器時,VPLEX恢復(fù)I/O后,需重新識別存儲后再拉起服務(wù)。
4)當(dāng)Metro兩端為VMware兩個集群,VPLEX恢復(fù)I/O后,需要從原有集群中關(guān)閉虛擬機(jī)并從清單中刪除,對端VMware集群重新識別存儲后,從儲存內(nèi)找到虛擬機(jī)xms文件,右鍵添加到清單中,然后即可打開虛擬機(jī)。
?
恢復(fù)Cluster-1后解決沖突分離
當(dāng)VPLEX cluster-1從災(zāi)難中恢復(fù)后,VPLEX兩個集群會恢復(fù)連接,此時查看一致性組狀態(tài)如下:
Plexcli:/clusters/cluster-1/consistency-groups/UNITY500_500G> ll??????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
?
Attributes:
Name????????????????? Value
--------------------? ---------------------------------------------------------
active-clusters?????? []
cache-mode??????????? synchronous
detach-rule?????????? winner cluster-1 after 5s
operational-status??? [(cluster-1, {summary:: degraded, details::[requires-resolve-conflicting-detach] }), (cluster-2, { summary:: degraded, details::[requires-resolve-conflicting-detach] })]
passive-clusters????? []
read-only???????????? false
recoverpoint-enabled? false
storage-at-clusters?? [cluster-1, cluster-2]
virtual-volumes?????? [UNITY500_25T]
visibility??????????? [cluster-1, cluster-2]
Contexts:
Name????????? Description
------------? -----------
advanced????? -
recoverpoint? -
查看operation-status,顯示cluster-1和cluster-2,顯示需要解決沖突分離
?
使用命令“resolve-conflicting-detach”解決沖突分離
VPlexcli:/clusters/cluster-1/consistency-groups/UNITY500_25T>resolve-conflicting-detach -c cluster-2?????????????????????????????????
?
This will cause I/O to suspend at clusters in conflict with cluster cluster-2, allowing you to stop applications at those clusters. Continue?? (Yes/No) yes
?
注:此命令將作用在兩個集群上重新同步數(shù)據(jù)映像,-c后的參數(shù)為要保留的源的集群,此時cluster-2已經(jīng)有業(yè)務(wù)運(yùn)行,所以要保留cluster-2的數(shù)據(jù),所以參數(shù)為cluster-2
?
再次查看一致性組狀態(tài),VPLEX 兩端集群狀態(tài)恢復(fù)。
VPlexcli:/clusters/cluster-1/consistency-groups/UNITY500_500G> ll?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? ????????????
?
Attributes:
Name????????????????? Value
--------------------? ---------------------------------------------------------
active-clusters?????? []
cache-mode??????????? synchronous
detach-rule?????????? winner cluster-2 after 5s
operational-status??? [(cluster-1,{ summary:: ok, details:: [] }), (cluster-2,{summary:: ok, details:: [] })]
passive-clusters????? []
read-only???????????? false
recoverpoint-enabled? false
storage-at-clusters?? [cluster-1, cluster-2]
virtual-volumes???? ??[UNITY500_500G]
visibility??????????? [cluster-1, cluster-2]
Contexts:
Name????????? Description
------------? -----------
advanced????? -
recoverpoint? -????????
?
此時即可通過主機(jī)層在線遷移數(shù)據(jù)回需要的一端。