Ubuntu 的存储多路径配置和redhat基本类似,大体如下

  1. 安装multipath-tool
     apt-get install multipath-tools

  2. 编辑multipath.conf
    vim  /etc/multipath.conf

修改内容如下
defaults {polling_interval    30failback            immediateno_path_retry       5rr_min_io           100path_checker        turuser_friendly_names yes}
3.重启服务

/etc/init.d/multipath-tools restart

  1. 查看路径

  2. -l

如下
IBM-2145 (360050768019101ca2800000000000031) dm-4 IBM,2145size=2.0T[hwhandler=0]_ round-robin 0 prio=0_ 3:0:0:0 sdb 8:16  failed_ round-robin 0 prio=0_ 3:0:1:0 sdc 8:32  failed

  1. 以上完成,就可以在/dev/目录发现dm-0类似的设备,然后就可以使用fdisk或者parted进行分区操作了。