Ceph实验室:第三课:Ceph服务管理
本次课程演示在centos 7下对ceph各个服务进程的管理。主要包括monitor和OSD进程。
Monitor服务
- 检查状态
[root@ceph-node1 ceph]# systemctl status ceph-mon@ceph-node1.service
- 停止服务
[root@ceph-node1 ceph]# systemctl stop ceph-mon@ceph-node1.service
- 启动服务
[root@ceph-node1 ceph]# systemctl start ceph-mon@ceph-node1.service
OSD服务
- 检查状态
[root@ceph-node2 vagrant]# systemctl status ceph-osd@3.service
- 起停服务
# ceph osd stat
osdmap e26: 6 osds: 6 up, 6 in
flags sortbitwise,require_jewel_osds
# systemctl stop ceph-osd@3.service
# ceph osd stat
osdmap e27: 6 osds: 5 up, 6 in
flags sortbitwise,require_jewel_osds
# systemctl start ceph-osd@3.service
# ceph osd stat
osdmap e28: 6 osds: 6 up, 6 in
flags sortbitwise,require_jewel_osds