Centos7 Glusterfs服务器可以';不要在良好的状态下停止
Glusterfs服务器无法在良好状态下停止 我一直在尝试以下步骤来安装glusterfs并启动服务Centos7 Glusterfs服务器可以';不要在良好的状态下停止,centos7,systemd,glusterfs,Centos7,Systemd,Glusterfs,Glusterfs服务器无法在良好状态下停止 我一直在尝试以下步骤来安装glusterfs并启动服务 yum install centos-release-gluster yum install glusterfs-server systemctl start glusterd 停下来 systemctl stop glusterd 然后显示以下状态“活动:失败” 使用环境为“CentOS Linux 7.2.1511版(核心)” 安装的glusterfs服务器版本为3.8.8-1.el7
yum install centos-release-gluster
yum install glusterfs-server
systemctl start glusterd
停下来
systemctl stop glusterd
然后显示以下状态“活动:失败”
使用环境为“CentOS Linux 7.2.1511版(核心)”
安装的glusterfs服务器版本为3.8.8-1.el7
有没有人知道问题出在哪里,并想办法解决这个问题。我找到了一个解决办法 编辑/usr/lib/systemd/system/glusterd.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服务停止时,故障状态为清除 我找到了一个解决办法 编辑/usr/lib/systemd/system/glusterd.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服务停止时,故障状态为清除 我认为RedHat的这个问题可能相关:我认为RedHat的这个问题可能相关: