linux多路径配置
程序员文章站
2022-06-01 10:26:22
...
multipath -v3可以看到UUID
或
[[email protected] ~]# multipath -ll
uuid hcil dev dev_t pri dm_st chk_st vend/prod
3600605b009c7ed401ce896501cadebb8 0:2:0:0 sda 8:0 1 undef ready LSI,MR926
360060e80105ed170057075a700000001 5:0:0:1 sdc 8:32 1 undef ready HITACHI,D
360060e80105ed170057075a700000007 5:0:0:4 sdf 8:80 1 undef ready HITACHI,D
360060e80105ed170057075a700000001 7:0:0:1 sdi 8:128 0 undef ready HITACHI,D
360060e80105ed170057075a700000000 5:0:0:0 sdb 8:16 0 undef ready HITACHI,D
360060e80105ed170057075a700000006 5:0:0:3 sde 8:64 0 undef ready HITACHI,D
360060e80105ed170057075a700000002 5:0:0:2 sdd 8:48 0 undef ready HITACHI,D
360060e80105ed170057075a700000007 7:0:0:4 sdl 8:176 0 undef ready HITACHI,D
360060e80105ed170057075a700000000 7:0:0:0 sdh 8:112 1 undef ready HITACHI,D
360060e80105ed170057075a700000008 5:0:0:5 sdg 8:96 0 undef ready HITACHI,D
360060e80105ed170057075a700000002 7:0:0:2 sdj 8:144 1 undef ready HITACHI,D
360060e80105ed170057075a700000006 7:0:0:3 sdk 8:160 1 undef ready HITACHI,D
360060e80105ed170057075a700000008 7:0:0:5 sdm 8:192 1 undef ready HITACHI,D
创建配置文件
[root@node2 ~]# cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/multipath.conf
编辑配,创建磁盘别名
vi /etc/multipath.conf
multipaths {
multipath {
wwid 360060e80105ed170057075a700000001
alias data01
}
multipath {
wwid 360060e80105ed170057075a700000000
alias data02
}
multipath {
wwid 360060e80105ed170057075a700000002
alias data03
}
multipath {
wwid 360060e80105ed170057075a700000007
alias ocrvote1
}
multipath {
wwid 360060e80105ed170057075a700000006
alias ocrvote2
}
multipath {
wwid 360060e80105ed170057075a700000008
alias ocrvote3
}
}
启动服务
[root@node2 ~]# service multipathd restart
[root@node2 ~]# chkconfig multipathd on
下一篇: sftp配置