- 論壇徽章:
- 0
|
前陣子負(fù)責(zé)深圳一銀行的同城容災(zāi)系統(tǒng)。從環(huán)境調(diào)研到方案設(shè)計(jì)和項(xiàng)目實(shí)施和演練經(jīng)歷了約兩個(gè)月了。
累死累活,事多人雜,心情不好受。也不想在此述了。
記錄下在此次項(xiàng)目中的收獲,分享下。
第一,PVID注意事項(xiàng)
平時(shí)我們在做PPRC數(shù)據(jù)復(fù)制時(shí),源存儲(chǔ)的volume以同步或異步的方式復(fù)制到目標(biāo)存儲(chǔ)系統(tǒng),因?yàn)槭窃诖鎯?chǔ)級做volume的復(fù)制,所以源卷和目標(biāo)卷會(huì)是一模一樣。包括PVID等信息。(AIX主機(jī)識(shí)別磁盤根據(jù)PVID信息,由于源卷和目標(biāo)卷通過PPRC復(fù)制所以PVID會(huì)是一樣的。所以在做切換時(shí),請注意:同一時(shí)間只允許一組卷出現(xiàn)。要么就是源卷,要么就是目標(biāo)卷。如不然會(huì)出現(xiàn)不可想象的故障。可以通過chhostconnect -volgrp none 0000來設(shè)置)
第二,SAN ZONE的設(shè)計(jì)
生產(chǎn)端和容災(zāi)端各兩臺(tái)SAN SWITCH。SAN設(shè)計(jì)就可能有兩種情況,是將生產(chǎn)其中一臺(tái)與容災(zāi)端的一臺(tái)SAN SWITCH做一個(gè)SAN網(wǎng)絡(luò),另一對組成另一個(gè)SAN;或是四個(gè)交換機(jī)組成一個(gè)SAN?
就這個(gè)問題,已經(jīng)做了測試。確定了使用前者設(shè)計(jì)方式。主要原因就是fabric manager
第三,freezepprc與unfreezepprc使用。
什么時(shí)候用與怎么使用呢,我想應(yīng)該一般的人都不會(huì)理解,即使是做ESS的行內(nèi)人。發(fā)表在這里造福客戶,方便技術(shù)人員們。
一句話,應(yīng)用系統(tǒng)不停止時(shí)做切換(failoverpprc),將目標(biāo)卷設(shè)置為可用狀態(tài)(通常PPRC目標(biāo)卷的狀態(tài)是不可訪問)的時(shí)候,failover之前務(wù)必freezepprc/unfreezepprc保證數(shù)據(jù)的一致性。
freezepprc,是暫停I/O操作,所以這時(shí)所有的主機(jī)的寫磁盤操作全部掛起,直到解除。那什么時(shí)候 解除,怎么解除呢,就得使用unfreezepprc。所以,操作時(shí)一定要在最短的時(shí)間內(nèi)完成操作和業(yè)務(wù)最不繁忙的時(shí)候,當(dāng)然應(yīng)用要是能停機(jī)當(dāng)然另當(dāng)它論。
通常我都是開多個(gè)窗口,先把命令復(fù)制上去,操作時(shí)只按下enter即可,節(jié)省時(shí)間。
前面說了,做failover前做這個(gè)操作,如果不做這步呢,呵呵,應(yīng)用系統(tǒng)在運(yùn)行的話,I/O嚴(yán)重停止,慢到你簡直受不了。所以如果是停機(jī)的情況切換到容災(zāi)去跑,可以直接failover,當(dāng)然 這情況,你做freezepprc/unfreezepprc也不會(huì)錯(cuò)。
請注意:freezepprc/unfreezepprc執(zhí)行后會(huì)自動(dòng)刪除pprcpath,因?yàn)橄到y(tǒng)會(huì)自動(dòng)認(rèn)為你是要準(zhǔn)備切換到容災(zāi)端運(yùn)行,就不會(huì)再從源存儲(chǔ)到目標(biāo)存儲(chǔ)復(fù)制了,它就把從源到目標(biāo)的PPRCPATH給刪除了。
freezepprc -dev IBM.2107-75LP471 -remotedev IBM.2107-75MA671 02:12 03:13 04:14 05:15 06:16 07:17 08:18 09:19 0A:1A 0B:1B 0C:1C 0D:1D 0E:1E 0F:1F 30:40 31:41
unfreezepprc -dev IBM.2107-75LP471 -remotedev IBM.2107-75MA671 02:12 03:13 04:14 05:15 06:16 07:17 08:18 09:19 0A:1A 0B:1B 0C:1C 0D:1D 0E:1E 0F:1F 30:40 31:41
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 02:12 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 04:14 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 06:16 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 08:18 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0A:1A successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0C:1C successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0E:1E successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 30:40 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 03:13 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 05:15 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 07:17 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 09:19 successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0B:1B successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0D:1D successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 0F:1F successfully created.
CMUC00161I freezepprc: Remote Mirror and Copy consistency group 31:41 successfully created.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 02:12 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 04:14 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 06:16 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 08:18 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0A:1A successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0C:1C successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0E:1E successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 30:40 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 03:13 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 05:15 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 07:17 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 09:19 successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0B:1B successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0D:1D successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 0F:1F successfully thawed.
CMUC00198I unfreezepprc: Remote Mirror and Copy pair 31:41 successfully thawed.
第四,failover操作
前面已經(jīng)提到過failover了。就是為了激活目標(biāo)存儲(chǔ)的卷可讀可寫,能夠正常的被主機(jī)訪問。請注意,PPRC是有方向的。應(yīng)該在哪個(gè)存儲(chǔ)上操作呢,源存儲(chǔ)還是目標(biāo)存儲(chǔ)系統(tǒng)??
還是一句話:哪個(gè)存儲(chǔ)上的卷需要激活為正常被主機(jī)訪問的狀態(tài)就在哪個(gè)存儲(chǔ)上執(zhí)行failover操作。
做了failover后,目標(biāo)卷就可以被主機(jī)訪問,源卷本身就能被主機(jī)訪問。但此時(shí)PPRC復(fù)制的狀態(tài)是暫停的。兩邊的數(shù)據(jù)會(huì)出現(xiàn)不一致。待測試完成后,需要恢復(fù)PPRC復(fù)制,這時(shí)可以執(zhí)行failback或是resumepprc等恢復(fù)PPRC復(fù)制。但時(shí),請一定注意此時(shí)的復(fù)制方向。方向反了的話,,,,,就不說了,都知道了。
本文原創(chuàng),歡迎轉(zhuǎn)載學(xué)習(xí)用,請注明作者和出處。謝謝!
本文來自ChinaUnix博客,如果查看原文請點(diǎn):http://blog.chinaunix.net/u/2984/showart_2036970.html |
|