第 25 卷 第 12 期
2005 年 12 月
北 京 理 工 大 学 学 报
T ransactions of Beijing Institute of Technology
Vo l. 25 No. 12
Dec. 2005
文章编号: 100120645
(
2005
)
1221057205
W indows
虚拟磁盘与路径容错
谭毓安, 曹元大, 张雪兰, 王 佐
(
北京理工大学 信息科学技术学院计算机科学工程系, 北京 100081
)
摘 要: 为提高系统的可用性, 在
W indow s
内核中加入冗余路径驱动程序实现路径容错功能Ζ在
W indow s
环境下
构造了虚拟总线及虚拟磁盘设备, 使路径故障后虚拟设备不会被删除, 保障了上层应用的持续运行Ζ 在同一个内核
驱动程序中集成了总线驱动和磁盘过滤两种功能, 节约了驱动程序占用的内核空间Ζ 通过加入虚拟磁盘, 在保持
W indow s
即插即用功能及设备层次的同时实现了设备的持续性Ζ
关键词: 容错; 虚拟磁盘; 总线驱动程序; 过滤驱动程序
中图分类号:
TP
30218 文献标识码:
A
Virtual D isks and Fault Tolerant Paths in W indows
TAN Yu
2
an
,
CAO Yuan
2
da
,
ZHAN G Xue
2
lan
,
WAN G Zuo
(
Departm ent of Computer Science and Engineering
,
School of Info rm ation Science and Technology
,
Beijing Institute
of T echnology
,
Beijing
100081,
China
)
Abstract
:
A redundant path driver fo r W indow s is imp lem ented to to lerate the path failures and
imp rove the system availability
.
V irtual bus device objects and disk device objects are registered
and kep t persistently even w hen the path fails
,
to p revent the upper app lications from being inter2
rup ted
.
The bus device driver and disk filter driver is integrated to simp lify the imp lem entation
and save the consum ed kernel spaces
.
Through the introduction of virtual disks
,
the device per2
sistency is achieved in the p lug and p lay environm ent
,
and the sto rage hierarchical device tree is
not changed
.
Key words
:
fault tolerance
;
virtual disk
;
bus device driver
;
filter driver
收稿日期: 2005 02 05
基金项目: 国家部委预研项目
(
41325081
)
作者简介: 谭毓安
(
1972-
)
, 男, 博士, 副教授,
E
2
m ail
:
victo rtan
@
yeah
.
net
Λ
为提高主机及存储设备的可用性, 采用高可用
性软件、集群软件及磁盘阵列、内存校验纠错等容错
技术
[1~ 3 ]
, 对于连接主机和存储设备的
I
g
O
路径, 在
硬件上实现冗余配置, 在软件上采用了分层结构设
计冗余路径驱动程序Λ通过对磁盘设备的输入g输出
(
I
g
O
)
请求进行过滤处理, 当路径出现故障时,
I
g
O
请求失败后由驱动程序进行
I
g
O
请求的重试实现
路径容错Λ
W indow s
2000,
W indow s
2003 及
XP
操
作系统支持硬件设备的即插即用Λ 当
I
g
O
路径出现
故障时, 即插即用管理器就删除这些“丢失的”磁盘
设备及分区设备, 以及建立在分区设备之上的卷设
备和盘符Λ 这样, 应用程序就不能继续使用这些设
备, 不能实现路径容错的功能Λ 因此,
SPD
驱动程序
必须处理系统的即插即用请求, 在路径故障时维持
应用程序所使用的磁盘设备不被删除, 保障上层应
用的持续运行Λ