2017-01-24 7 views
1

Glusterfs-serverは良好な状態で停止できません。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. 

し、インストールglusterfs・サーバのバージョン3.8.8-1.el7ある "CentOSのLinuxは1511年7月2日(コア)が解放" です。

誰に何が間違っているのかを知っているか、これを修正してください。

+0

RedHatのこの問題は関連している可能性があります:https://bugzilla.redhat.com/show_bug.cgi?id=1384762 – Pascal

答えて

0

回避策が見つかりました。

/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サービスが停止すると、失敗したステータスがクリアされます。

関連する問題