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

上圖是了解Multipathing底層機(jī)制的概念。詳情參考此文
存儲類型
Active-Passive:
在某一時刻僅有一個Storage Processor(SP)擁有對某個LUN訪問的專有權(quán)。從其他SP對該LUN發(fā)起的訪問會被拒絕。只有當(dāng)該主SP失敗時,其他的SP對該LUN的訪問才會被接受
Active-Active:
沒有主SP的概念,某個LUN可以接受任何SP的訪問。
MultiPathing策略
基于存儲類型,可以參考本文選擇相應(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 thrashingor failure when another SP now owns the LUN.
Round RobinNo fail back.Next path in round robin scheduling is selected.
Fixed with ArrayPreferenceFor 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) 的情況。如果使用第三方的方案,請參考該提供商的資料。
實例
下面是VCDX Boot Camp - Preparing for the VCDX panel defense一書給出的排錯的例子。
問題描述:

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

具體分析:
因為以上設(shè)計的缺陷,有兩種情況下會出現(xiàn)path thrashing的情況。
情況一:下圖所示的兩條路徑失敗。

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

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

原創(chuàng)作品,允許轉(zhuǎn)載,轉(zhuǎn)載時請務(wù)必以超鏈接形式標(biāo)明文章 原始出處 、作者信息和本聲明。否則將追究法律責(zé)任。http://frankfan.blog.51cto.com/6402282/1210642