CentOS7.6通过multipath多路径软件挂载FC共享存储
1.CentOS7.6安装的时候已经自带了multipath多路径软件,没有的话参照下面的命令安装
2.检查有没有安装多路径软件
rpm -q device-mapper-multipath
3.没有安装的话则通过下面的命令在线安装
yum install -y device-mapper-multipath
4.初次安装需要加载dm模块
modprobe dm-multipath
modprobe dm-round-robin
5.查看有没有加载到内核
lsmod | grep multipath
6.将多路径软件 multipath 设置为开机自启动
chkconfig --level 2345 multipathd on
systemctl enable multipathd
7.重启 multipath 服务
systemctl restart multipathd
8.multipath运行起来需要配置 /etc/multipath.conf 配置文件,默认情况下是不存在这个文件的,需要手动配置,这里我们使用 multipath 命令来自动生成 multipath.conf 配置文件,使它自动识别到对端存储
进入 /sbin 目录
cd /sbin
./mpathconf --enable --find_multipaths y --with_module y
./mpathconf --enable --find_multipaths y --with_chkconfig y
9.自此multipath就部署完成了,接下来就将CentOS识别到的多路径存储挂载即可,由于没有操作环境,后续再补多路径存储挂载操作