/var目录满导致启动glusterd服务失败
原创
©著作权归作者所有:来自51CTO博客作者党志强的原创作品,请联系作者获取转载授权,否则将追究法律责任
手动启动glusterd服务失败:
[root@k03 ~]# systemctl start glusterd Job for glusterd.service failed because the control process exited with error code. See "systemctl status glusterd.service" and "journalctl -xe" for details. [root@k03 ~]# systemctl status glusterd.service ● glusterd.service - GlusterFS, a clustered file-system server Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Tue 2016-03-08 11:12:41 CST; 8s ago Process: 26284 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid (code=exited, status=1/FAILURE) Main PID: 5182 (code=exited, status=0/SUCCESS) Mar 08 11:12:41 k03 systemd[1]: Starting GlusterFS, a clustered file-system server... Mar 08 11:12:41 k03 systemd[1]: glusterd.service: control process exited, code=exited status=1 Mar 08 11:12:41 k03 systemd[1]: Failed to start GlusterFS, a clustered file-system server. Mar 08 11:12:41 k03 systemd[1]: Unit glusterd.service entered failed state. Mar 08 11:12:41 k03 systemd[1]: glusterd.service failed. |
检查未发现任何日志生成。
为调试,删除/var/lib/glusterd目录和/var/log/glusterfs目录所有文件,启动服务仍然报错。
检查,未产生任何日志。
后发现,原来是/var目录空间已满,无法写入数据导致启动失败。
解决方法:
释放/var目录空间,再次启动glusterd服务即可。