多路径负载均衡
Application Host / Server X
0
A [2]
0
1
2
3
Failover Driver
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
ADT-enabled情况下切换的总结
0
1
2
3
Storage System
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
我们需要解决多路径带来的问题
多路径切换软件类型
– Low level drivers: RDAC – Configurable volume manager software: Veritas Volume Manager with DMP and HP-UX LVM(PVlinks)
IBM Systems and Technology Group
DS4000 多路径负载均衡、失效恢复机制
© 2005 IBM Corporation
IBM eServer and IBM TotalStorage systems
一般的操作系统
CPUs
Application
Operating system
我们为什么需要多路径切换软件?
将只有一份数据被存储!!!
Application Host / Server
0
0 0 abc
1
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
没有多路径切换软件情况下存在的问题
混淆 – 操作系统看到两份真实数量的磁盘 没有多路径切换软件, 没有冗余 – 没有多路径切换软件,操作系统将不知道何时它该使用多 余的路径 多路径导致操作系统认为两份磁盘是独立的, 危险 – 多路径导致操作系统认为两份磁盘是独立的,这将导致数据毁 坏或IO错误 坏或 错误
ADT-disabled 情况下的切换
隐藏了一个事实-- 应用程序使用 LUN 0, RDAC隐藏了一个事பைடு நூலகம்-- 隐藏了一个事实 有两条路径可以访问到这个 LUN
– 020 (当前使用的) and 130 (冗余的)
Application RDAC Host / Server X
0
A [2]
0
1
2
3
1
Memory
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
操作系统怎样标识磁盘
Port 1 + Target 2 + and LUN 0 = disk with id 120
0 Host / Server 1 2 0
© 2004 IBM Corporation
ADT-enabled情况下的切换
RDAC将使用冗余路径来继续 将使用冗余路径来继续IO 将使用冗余路径来继续
– 020 (失效) and 130 (当前使用的)
Application RDAC Host / Server X
0
A [2]
0
1
2
3
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
Application RDAC Host / Server X
0
A [2]
0
1
2
3
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
ADT-disabled情况下的切换
RDAC现在可以使用新的路径进行 IO 了 现在可以使用新的路径进行
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
ADT-enabled情况下的切换
的访问路径坏了的时候, 接到错误报警, 当020的访问路径坏了的时候,Port 0 接到错误报警 这个错误报警会 的访问路径坏了的时候 传送到RDAC 传送到
– 操作系统通过RDAC看到四块真实数量的磁盘,它直接访问X磁盘
Application RDAC Host / Server X
0
A [2]
0
1
2
3
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
Host / Server
Memory
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
一般的操作系统
安装新硬件, 安装新硬件,操作系统可能不知道该如何用
CPUs
Application ??? Host / Server ???
– ADT-enabled mode (ADT, ADT-on)
– Just re-routes I/O
主机上的多路径切换软件可以使用 ADT-enabled 或 ADT-disabled 模 式
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
020 (失效) and 130 (冗余)
Application RDAC Host / Server X
0
X
A [2]
0
1
2
3
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
多路径切换软件的作用是告诉操作系统怎样使用多余的路径, 多路径切换软件的作用是告诉操作系统怎样使用多余的路径,怎样作失 效恢复
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
RDAC
RDAC可以隐藏掉多余的路径 可以隐藏掉多余的路径
多数多路径切换软件将分别对待不同的逻辑盘 DS4000系列存储服务器将相应的改变不同逻辑盘的归属控制器 系列存储服务器将相应的改变不同逻辑盘的归属控制器
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
为什么需要 ADT?
ADT 使DS4000系列可以灵活的与第三方提供的多路径切换软件工作 系列可以灵活的与第三方提供的多路径切换软件工作
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
但是光纤磁盘是多通路的…
实际上只有四块盘
0 Host / Server 1
0 0
1 0
2 0
3 0
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
Storage System 1
B [3]
0
1
2
3
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
ADT-disabled情况下的切换
的访问路径坏了的时候, 接到错误报警, 当020的访问路径坏了的时候,Port 0 接到错误报警 这个错误报警会 的访问路径坏了的时候 传送到RDAC 传送到
IBM eServer and IBM TotalStorage systems
ADT-enabled情况下的切换
逻辑盘LUN 0 的归属权切换到了 控制器上,其它没有 发生的逻辑盘 的归属权切换到了B控制器上 其它没有IO发生的逻辑盘 控制器上, 逻辑盘 没有切换
– 020 (失效) and 130 (当前使用的)
我们为什么需要多路径切换软件?
的磁盘上, 如果两个应用同时把张三的数据存在 id为 000的磁盘上,李四的数据 为 的磁盘上 存在 id 为100的磁盘上 的磁盘上
Application Host / Server
0
abc
0 0
1
xyz
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
© 2004 IBM Corporation
IBM eServer and IBM TotalStorage systems
我们来看一下DS4000是怎样做的
操作系统看到八块独立的磁盘 020, 021, 022, 023, 130, 131, 132, 133
0 Host / Server 1
A [2]
0
1
2
3
Storage System 1