【虚拟化实战】存储设计之三MultiPathing

云计算 虚拟化
Multipathing 在存储设计中是必须的,因为有多条路径可以访问LUN,它不仅保证了高可用性,同时也有负载均衡的作用。

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 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一书给出的排错的例子。

问题描述:

 

 

当前的架构设计

 

 

具体分析:

因为以上设计的缺陷,有两种情况下会出现path thrashing的情况。

情况一:下图所示的两条路径失败。

 

 

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

情况二:采用不恰当的Multipathing策略。在Active-passive的存储设备使用了Fixed

 

 

这两种情况都可以导致的后果是:

SPA1和SPB1不断的争夺对LUN1的读写控制,从而导致LUN的主控制器频繁在SPA1和SPB1之间切换。我们称这种情况为PathTrashing

下图的改良后的设计,同一个光线交换机连到了阵列的不同控制器上,这样就不会出现我们上面提到的情况了。

 

原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://frankfan.blog.51cto.com/6402282/1210642

责任编辑:老门 来源: 51cto博客
相关推荐

2013-05-28 09:33:47

虚拟化虚拟化存储

2013-12-11 10:40:31

虚拟化实战Cluster

2013-05-21 09:47:45

虚拟化存储虚拟化

2018-03-28 15:21:52

虚拟化类型

2013-05-27 09:52:26

虚拟化存储虚拟化应用

2013-06-21 10:33:02

虚拟化应用存储虚拟化

2013-06-24 10:44:57

虚拟化网络设计

2013-12-02 10:34:32

虚拟化实战Cluster

2012-02-15 10:37:38

JavaJava Socket

2013-06-25 11:46:36

虚拟化实战IP Storage

2013-11-29 10:24:52

Cluster设计资源池

2012-05-03 11:35:56

ApacheCXFJava

2012-05-21 10:37:16

服务器存储虚拟化

2012-05-24 09:25:29

虚拟化SAN存储架构

2011-08-12 11:20:30

网络虚拟化存储

2013-04-28 10:35:26

2013-03-18 10:12:25

存储虚拟化虚拟化技术

2022-09-01 09:42:48

SDS软件定义存储存储虚拟化

2013-08-01 11:31:50

存储虚拟化虚拟化

2021-07-07 15:29:52

存储RocketMQ体系
点赞
收藏

51CTO技术栈公众号