Glusterfs-server无法在良好状态下停止。
我一直在尝试以下步骤来安装glusterfs并启动服务。
yum install centos-release-gluster
yum install glusterfs-server
systemctl start glusterd别再这样了。
systemctl stop glusterd然后显示以下状态:“活动:失败”。
glusterd.service - GlusterFS, a clustered file-system server
Loaded: loaded (/usr/lib/systemd/system/glusterd.service; disabled)
Active: failed (Result: exit-code) since 火 2017-01-24 18:23:55 JST; 4s ago
Process: 2523 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 2524 (code=exited, status=15)
1月 24 18:23:52 ds009 systemd[1]: Started GlusterFS, a clustered file-system server.
1月 24 18:23:55 ds009 systemd[1]: Stopping GlusterFS, a clustered file-system server...
1月 24 18:23:55 ds009 systemd[1]: glusterd.service: main process exited, code=exited, status=15/n/a
1月 24 18:23:55 ds009 systemd[1]: Stopped GlusterFS, a clustered file-system server.
1月 24 18:23:55 ds009 systemd[1]: Unit glusterd.service entered failed state.
Hint: Some lines were ellipsized, use -l to show in full.使用环境是“CentOS Linux版本7.2.1511 (核心)”
并安装了glusterfs-server版本为3.8.8-1.el7。
有没有人知道问题出在哪里并解决这个问题。
发布于 2017-01-27 08:25:34
我已经找到了一种解决方法。
编辑/usr/lib/systemd/system/lusterd.service文件,如下所示。
[Service]
Type=forking
PIDFile=/var/run/glusterd.pid
LimitNOFILE=65536
Environment="LOG_LEVEL=INFO"
EnvironmentFile=-/etc/sysconfig/glusterd
ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS
ExecStopPost=/usr/bin/systemctl reset-failed glusterd # Add this
KillMode=process当GlusterFS服务停止时,failed状态会被清除。
https://stackoverflow.com/questions/41824657
复制相似问题