linux 多路径配置
#软件安装
yum install device-mapper-multipath
systemctl enable multipathd.service
#配置文件生成
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc/multipath.conf
#磁盘聚合
systemctl restart multipathd.service
systemctl reload multipathd.service
multipath -F
multipath –v3
multipath –ll
#默认配置文件信息:
服务器启动之后设备的wwid会自动添加到/etc/multipath/wwids
绑定文件/etc/multipath/bindings,该文件里面的映射关系是自动生成的,不需要进行手工编辑
然后进行重新加载配置
删除后进行加载
[root@localhost multipath]# multipath -F
[root@localhost multipath]# multipath -r
[root@localhost multipath]# multipath -ll
99-oracle-asmdevices.rules
文件文件内容如下:
ENV{DM_NAME}=="ocrdisk01", OWNER:="grid", GROUP:="asmadmin", MODE:="660"
ENV{DM_NAME}=="ocrdisk02", OWNER:="grid", GROUP:="asmadmin", MODE:="660"
ENV{DM_NAME}=="ocrdisk03", OWNER:="grid", GROUP:="asmadmin", MODE:="660"
ENV{DM_NAME}=="datadisk01", OWNER:="grid", GROUP:="asmadmin", MODE:="660"
ENV{DM_NAME}=="datadisk02", OWNER:="grid", GROUP:="asmadmin", MODE:="660"
[root@localhost ~]#/sbin/udevadm control --reload
[root@localhost ~]# /sbin/udevadm trigger --type=devices --action=change
[root@localhost bin]# udevadm trigger
- 点赞
- 收藏
- 关注作者
评论(0)