作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (9): 230-232.

• 开发研究与设计技术 • 上一篇    下一篇

一个 Linux 多路径磁盘过滤驱动程序

谭毓安 1,朱立谷2   

  1. 1. 北京理工大学计算机科学与工程系,北京100081;2. 华中科技大学计算机科学学院,武汉430074
  • 出版日期:2006-05-05 发布日期:2006-05-05

A Multi-path Disk Filter Driver for Linux

TAN Yu’an1, ZHU Ligu2   

  1. 1. Dept. of Computer Science and Engineering, Beijing Institute of Technology, Beijing 100081;2. School of Computer Science, Huazhong University of Science & Technology, Wuhan 430074
  • Online:2006-05-05 Published:2006-05-05

摘要: 研究Linux 系统中多路径磁盘过滤驱动程序的设计和实现。驱动程序将物理磁盘的多路径封装为一个虚拟设备。虚拟设备的I/O请求转发到磁盘设备上执行,由路径选择算法将主机的负载均衡地分配到各路径上。当路径发生故障时由驱动程序将失败的I/O 请求切换到其它路径,屏蔽了路径故障。驱动程序利用多路径改善了主机的I/O 性能,提高了系统的可用性。

关键词: 容错;高可用性;负载均衡;Linux

Abstract: A multi-path disk filter driver for Linux is designed and implemented to represent the plurality of data paths to the I/O device as a single virtual device. The I/O requests for the virtual device are redirected to selected disk devices, and the I/O load is distributed among multiple paths by the path selection algorithm. If one path fails, the incomplete I/O requests are redirected to the survival paths so the path failure is isolated. The filter driver increases the data access throughput and availability by using multiple paths.

Key words: Fault tolerance; High availability; Load balance; Linux