码迷,mamicode.com
首页 > 其他好文 > 详细

GlusterFS无法启动原因及处理方案

时间:2016-01-18 17:23:18      阅读:837      评论:0      收藏:0      [点我收藏+]

标签:

启动结果:

Redirecting to /bin/systemctl status  glusterd.service
glusterd.service - GlusterFS, a clustered file-system server
   Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled)
   Active: failed (Result: exit-code) since Fri 2014-09-26 01:47:54 EDT; 5min ago
  Process: 25116 ExecStart=/usr/sbin/glusterd -p /run/glusterd.pid (code=exited, status=1/FAILURE)

Sep 26 01:47:54 datasvr1 systemd[1]: glusterd.service: control process exited, code=exited status=1
Sep 26 01:47:54 datasvr1 systemd[1]: Failed to start GlusterFS, a clustered file-system server.
Sep 26 01:47:54 datasvr1 systemd[1]: Unit glusterd.service entered failed state.

 

原因:

    glusterfs配置文件(/etc/glusterfs/glusterd.vol)出现问题

   出现问题时的配置信息为:

    volume management
       type mgmt/glusterd

        #working-directory的位置为/var/lib/glusterfsd
        option working-directory /var/lib/glusterfsd

        option transport-type socket,rdma

        option transport.socket.keepalive-time 10
        option transport.socket.keepalive-interval 2
        option transport.socket.read-fail-log off
    end-volume

处理方法:

    将working-directory的位置修改为配置文件所在位置(即为/etc/glusterfs)

    修改后的配置信息为:

volume management
    type mgmt/glusterd
    option working-directory /etc/glusterfs
    option transport-type socket,rdma
    option transport.socket.keepalive-time 10
    option transport.socket.keepalive-interval 2
    option transport.socket.read-fail-log off
#   option base-port 49152
end-volume

GlusterFS无法启动原因及处理方案

标签:

原文地址:http://www.cnblogs.com/langren1992/p/5139700.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!