zoukankan      html  css  js  c++  java
  • rhel 7 multipath服务启动报错

    配置多路径服务,启动多路径multipathd.service的时候出现下面报错:

    [root@rac2 ~]# systemctl status multipathd.service
    multipathd.service - Device-Mapper Multipath Device Controller
    Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled)
    Active: inactive (dead)
    start condition failed at Wed 2019-11-27 10:51:20 CST; 12s ago
    ConditionPathExists=/etc/multipath.conf was not met

    Nov 26 18:39:35 rac2.example.com systemd[1]: Started Device-Mapper Multipath Device Controller.
    Nov 26 19:03:34 rac2.example.com systemd[1]: Started Device-Mapper Multipath Device Controller.
    Nov 27 10:51:05 rac2.example.com systemd[1]: Started Device-Mapper Multipath Device Controller.
    Nov 27 10:51:20 rac2.example.com systemd[1]: Started Device-Mapper Multipath Device Controller.

    查看报错信息提示未找到/etc/multipath.conf这个文件。

    解决:

    通过mpathconf命令生成conf文件

    [root@rac2 ~]#mpathconf --enable

    [root@rac2 ~]# systemctl restart multipathd.service 

    [root@rac2 ~]# systemctl status multipathd.service
    multipathd.service - Device-Mapper Multipath Device Controller
    Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled)
    Active: active (running) since Wed 2019-11-27 11:04:50 CST; 6s ago
    Process: 8564 ExecStart=/sbin/multipathd (code=exited, status=0/SUCCESS)
    Process: 8561 ExecStartPre=/sbin/multipath -A (code=exited, status=0/SUCCESS)
    Process: 8557 ExecStartPre=/sbin/modprobe dm-multipath (code=exited, status=0/SUCCESS)
    Main PID: 8568 (multipathd)
    CGroup: /system.slice/multipathd.service
    └─8568 /sbin/multipathd

    Nov 27 11:04:50 rac2.example.com systemd[1]: Starting Device-Mapper Multipath Device Controller...
    Nov 27 11:04:50 rac2.example.com systemd[1]: PID file /var/run/multipathd/multipathd.pid not readable (yet?) after start.
    Nov 27 11:04:50 rac2.example.com systemd[1]: Started Device-Mapper Multipath Device Controller.
    Nov 27 11:04:50 rac2.example.com multipathd[8568]: path checkers start up

  • 相关阅读:
    现在这些“创业”的人都是什么心态?
    普及什么是“国家队”,国家队“黑阔”,安全公司“黑客”
    浅谈C++源码的过国内杀软的免杀
    十大谷歌Google搜索技巧分享
    寻找被黑金毁掉的黑客精神
    黑客偷你的密码干什么?
    七个高效的文本编辑习惯(以Vim为例)
    HTTPS是如何保证连接安全,你知道吗?
    分析与提取QQ木马盗号技术
    leetcode304
  • 原文地址:https://www.cnblogs.com/orcl-2018/p/11940823.html
Copyright © 2011-2022 走看看