GlusterFs教程第10章:GlusterFs服务管理
概述
我们在安装GlusterFS之后,必然会启动一个glusterd服务。
glusterd服务是GlusterFs系统的管理器,监督GlusterFs进程,并协调动态卷操作。
例如:无中断地跨多个存储服务器添加和删除卷。
本节介绍如何通过以下方式启动glusterd服务:
- 使用systemd系统命令手动启动或者停止glusterd服务
- 使用systemd系统命令自动启动glusterd服务
- 手动启动和停止glusterd服务
- 自动启动glusterd服务
注意:您必须在所有安装了GlusterFs的服务器上启动glusterd服务
使用systemd系统命令
手动启动或停止glusterd服务
- 手动启动glusterd服务
systemctl start glusterd
- 手动停止glusterd服务
systemctl stop glusterd
自动启动glusterd服务
- 配置glusterd服务自启动
systemctl enable --now glusterd
- 关闭glusterd服务自启动
systemctl disable --now glusterd
不使用systemd系统命令
手动启动和停止glusterd服务
- 手动启动glusterd服务
# /etc/init.d/glusterd start
- 手动停止glusterd服务
# /etc/init.d/glusterd stop
自动启动glusterd服务
- 红帽和Fedora发行版系统
# chkconfig glusterd on
- Ubuntu系统
# update-rc.d glusterd defaults
- 其他系统
# echo "glusterd" >> /etc/rc.local