重启后 multipathd 不工作

重启后 multipathd 不工作

Multipathd 无法在 CentOS 6.5 x86_64 上运行:

    device-mapper-multipath-libs-0.4.9-87.el6.x86_64
    device-mapper-multipath-0.4.9-87.el6.x86_64

重新启动多路径服务时出现以下错误:

    ux_socket_connect: Connection refused
    Stopping multipathd daemon:                                [FAILED]
    Starting multipathd daemon:                                [  OK  ]
    [root@localhost ~]# /etc/init.d/multipathd start
    Starting multipathd daemon:                                [  OK  ]
    [root@localhost ~]# /etc/init.d/multipathd status
    multipathd dead but pid file exists

/etc/multipath.conf的内容:

            udev_dir                /dev
            polling_interval        10
            path_selector           "round-robin 0"
            path_grouping_policy    multibus
            getuid_callout          "/lib/udev/scsi_id --replace-whitespace --whitelisted --device=/dev/%n"
            prio                    const
            path_checker            readsector0
            rr_min_io               100
            max_fds                 8192
            rr_weight               priorities
            failback                immediate
            no_path_retry           fail
            user_friendly_names     no
    }
    
    blacklist {
    #       wwid 26353900f02796769
            devnode "^(ram|raw|loop|fd|md|dm-|sr|scd|st)[0-9]*"
    #       devnode "^hd[a-z]"
            devnode "/dev/sda"
    }

答案1

在我的计算机上也遇到了同样的问题

# /etc/init.d/multipathd start
Starting multipathd daemon: [ OK ]

# /etc/init.d/multipathd status
multipathd dead but pid file exists

实际上有两个问题
1.dm_round_robin内核模块未加载
2.device-mapper软件包太旧,与软件包 glibc不兼容multipath

分辨率
1. /etc/init.d/multipathd stop
2. rm /var/run/multipat*
3. /sbin/modprob -i dm_round_robin
4.yum update device-mapper yum update glibc

相关内容