【虛擬化實戰】存儲設計之三MultiPathing

Multipathing 在存儲設計中是必須的,因爲有多條路徑可以訪問LUN,它不僅保證了高可用性,同時也有負載均衡的作用。

PSA (PluggableStorage Architecture)

 

 

上圖是瞭解Multipathing底層機制的概念。詳情參考此文

存儲類型

Active-Passive:

在某一時刻僅有一個Storage Processor(SP)擁有對某個LUN訪問的專有權。從其他SP對該LUN發起的訪問會被拒絕。只有當該主SP失敗時,其他的SP對該LUN的訪問纔會被接受

Active-Active:

沒有主SP的概念,某個LUN可以接受任何SP的訪問。

MultiPathing策略

基於存儲類型,可以參考本文選擇相應的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) 的情況。如果使用第三方的方案,請參考該提供商的資料。

實例

下面是VCDX Boot Camp - Preparing for the VCDX panel defense一書給出的排錯的例子。

問題描述:

 

 

當前的架構設計

 

 

具體分析:

因爲以上設計的缺陷,有兩種情況下會出現path thrashing的情況。

情況一:下圖所示的兩條路徑失敗。

 

 

Screen clipping taken:18/05/2013 4:15 PM

情況二:採用不恰當的Multipathing策略。在Active-passive的存儲設備使用了Fixed

 

 

這兩種情況都可以導致的後果是:

SPA1和SPB1不斷的爭奪對LUN1的讀寫控制,從而導致LUN的主控制器頻繁在SPA1和SPB1之間切換。我們稱這種情況爲PathTrashing

下圖的改良後的設計,同一個光線交換機連到了陣列的不同控制器上,這樣就不會出現我們上面提到的情況了。

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章