【虛擬化實(shí)戰(zhàn)】存儲(chǔ)設(shè)計(jì)之三MultiPathing
Multipathing 在存儲(chǔ)設(shè)計(jì)中是必須的,因?yàn)橛卸鄺l路徑可以訪問LUN,它不僅保證了高可用性,同時(shí)也有負(fù)載均衡的作用。
PSA (PluggableStorage Architecture)

上圖是了解Multipathing底層機(jī)制的概念。詳情參考此文
存儲(chǔ)類型
Active-Passive:
在某一時(shí)刻僅有一個(gè)Storage Processor(SP)擁有對(duì)某個(gè)LUN訪問的專有權(quán)。從其他SP對(duì)該LUN發(fā)起的訪問會(huì)被拒絕。只有當(dāng)該主SP失敗時(shí),其他的SP對(duì)該LUN的訪問才會(huì)被接受
Active-Active:
沒有主SP的概念,某個(gè)LUN可以接受任何SP的訪問。
MultiPathing策略
基于存儲(chǔ)類型,可以參考本文選擇相應(yīng)的Multipathing策略
Policy/ControllerActive/ActiveActive/Passive
Most Recently UsedAdministrator action is required to fail back after path failure.Administrator action is required to fail back after path failure.
FixedVMkernel resumes using the preferred path when connectivity is restored.VMkernel attempts to resume using the preferred path. This can cause path thrashing or failure when another SP now owns the LUN.
Round RobinNo fail back.Next path in round robin scheduling is selected.
Fixed with Array PreferenceFor ALUA arrays, VMkernel picks the path set to be the preferred path.
For both A/A and A/P and ALUA arrays, VMkernel resumes using the preferred path, but only if the path-thrashing avoidance algorithm allows the fail-back.
注意:以上策略及說明適用VMwareNative Multipathing (NMP) Path Selection Plug-ins (PSP) 的情況。如果使用第三方的方案,請(qǐng)參考該提供商的資料。
實(shí)例
下面是VCDX Boot Camp - Preparing for the VCDX panel defense一書給出的排錯(cuò)的例子。
問題描述:

當(dāng)前的架構(gòu)設(shè)計(jì)

具體分析:
因?yàn)橐陨显O(shè)計(jì)的缺陷,有兩種情況下會(huì)出現(xiàn)path thrashing的情況。
情況一:下圖所示的兩條路徑失敗。

Screen clipping taken:18/05/2013 4:15 PM
情況二:采用不恰當(dāng)?shù)腗ultipathing策略。在Active-passive的存儲(chǔ)設(shè)備使用了Fixed

這兩種情況都可以導(dǎo)致的后果是:
SPA1和SPB1不斷的爭奪對(duì)LUN1的讀寫控制,從而導(dǎo)致LUN的主控制器頻繁在SPA1和SPB1之間切換。我們稱這種情況為PathTrashing
下圖的改良后的設(shè)計(jì),同一個(gè)光線交換機(jī)連到了陣列的不同控制器上,這樣就不會(huì)出現(xiàn)我們上面提到的情況了。

本文出自 “坐看云起” 博客,請(qǐng)務(wù)必保留此出處http://frankfan.blog.51cto.com/6402282/1210642?! ≡瓌?chuàng)作品,允許轉(zhuǎn)載,轉(zhuǎn)載時(shí)請(qǐng)務(wù)必以超鏈接形式標(biāo)明文章 原始出處 、作者信息和本聲明。