常见查看多路径状态命令:
RHEL自带多路径软件(Multipath)查看多路径状态:multipath -ll
EMC多路径软件(PowerPath)查看多路径状态:powermt display dev=all
华为多路径(UltraPath)查看多路径状态:upadmin show vlun
日立多路径软件(HDLM)查看多路径状态:dlnkmgr view -path
#查看存储供应商参数及型号
lsblk -S #rhel7 以上
或
cat /sys/block/sdb/device/vendor
cat /sys/block/sdb/device/model
Linux 6.5下安装EMC powerpath多路径软件安装
安装软件
rpm -ivh EMCPower.LINUX-6.0.1.00.00-043.RHEL6.x86_64.rpm
注册license
emcpreg -add key A3DF-3BDD-UHYT-CD6F-EV74-KJUT
查看服务
ps -ef |grep power
重启主机
reboot
用emc存储管理命令显示设备
powermt display dev=all
显示设备
ls -l /dev/emcpower*
参考:
https://blog.csdn.net/lk_db/article/details/51444624
oracle 绑定emc设备方法:
cat >> /etc/udev/rules.d/99-oracle-asmdevices.rules
SUBSYSTEM=="block", KERNEL=="emcpowerb", GROUP="asmadmin", OWNER="grid", MODE="0660"
EOF
/sbin/udevadm control --reload-rules
/sbin/udevadm trigger --type=devices --action=change
ls -ltr /dev/emc*
ASM 磁盘搜索路径需要改为/dev/emc*
linux操作系统自带的多路径软件安装及配置示例
yum install device-mapper*
第一次执行
multipath -ll
Jul 26 09:32:35 | DM multipath kernel driver not loaded
Jul 26 09:32:35 | /etc/multipath.conf does not exist, blacklisting all devices. #/etc下缺少配置文件
Jul 26 09:32:35 | A default multipath.conf file is located at
Jul 26 09:32:35 | /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
Jul 26 09:32:35 | You can run /sbin/mpathconf --enable to create
Jul 26 09:32:35 | /etc/multipath.conf. See man mpathconf(8) for more details
Jul 26 09:32:35 | DM multipath kernel driver not loaded #模块没有加载
复制一份过去
cp /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf /etc
第二次执行
[root@ora11 ~]# multipath -ll
Jul 26 09:33:56 | DM multipath kernel driver not loaded #模块还是没有加载
Jul 26 09:33:56 | DM multipath kernel driver not loaded
启动服务
systemctl start multipathd.service
检查模块加载情况
lsmod |grep dm_multipath
dm_multipath 27792 0
dm_mod 124501 3 dm_multipath,dm_log,dm_mirror
第三次执行
multipath -ll
什么也没有,正常,因为还没有编辑这个conf文件,下面有例子。
https://access.redhat.com/documentation/zh-cn/red_hat_enterprise_linux/7/html/dm_multipath/index
真实 multipath.conf 示例:
multipath.txt