# 1、性能查看
[root@node1 ceph-deploy]# ceph osd perf
osd commit_latency(ms) apply_latency(ms)
0 0 0
2 0 0
1 0 0
# 2、模拟某块盘GG了
[root@node3 ~]# systemctl stop ceph-osd@2
# 3、out
[root@node1 ~]# ceph osd out osd.2
# 4、crush rm
[root@node1 ~]# ceph osd crush rm osd.2
# 5、rm
[root@node1 ~]# ceph osd rm osd.2
# 6、auth rm
[root@node1 ~]# ceph osd auth rm osd.2
Ceph守护服务进程
# 1、管理所有守护进程
systemctl start ceph.target
systemctl start ceph-osd@1
# 2、服务类型分类
systemctl start ceph-osd.target
systemctl start ceph-mon.target
systemctl start ceph-mds.target
# 3、根据id区分、主机名区分
systemctl start ceph-osd@1
systemctl start ceph-mon@node1
systemctl start ceph-mds@node2
Ceph服务日志分析
# 1、日志目录、每个守护进程对应一个log
[root@node1 ceph]# cd /var/log/ceph/
[root@node1 ceph]# ll
total 9852
-rw------- 1 ceph ceph 121188 Jan 24 20:40 ceph.audit.log
-rw-r--r-- 1 ceph ceph 32009 Jan 24 18:44 ceph-client.rgw.node1.log
-rw------- 1 ceph ceph 2612353 Jan 24 20:53 ceph.log
-rw-r--r-- 1 ceph ceph 2403 Jan 24 19:31 ceph-mds.node1.log
-rw-r--r-- 1 ceph ceph 69137 Jan 24 20:41 ceph-mgr.node1.log
-rw-r--r-- 1 ceph ceph 2996628 Jan 24 20:53 ceph-mon.node1.log
-rw-r--r-- 1 ceph ceph 3835428 Jan 24 20:44 ceph-osd.1.log
-rw-r--r-- 1 root ceph 271058 Jan 24 19:57 ceph-volume.log
-rw-r--r-- 1 root ceph 49821 Jan 24 18:38 ceph-volume-systemd.log