ceph配置文件问题
ceph -s查看集群状态提示错误 Errors while parsing config file!
[root@controller ~]# ceph -s
2023-06-25 22:51:08.141 2b2d436b3700 -1 Errors while parsing config file!
2023-06-25 22:51:08.141 2b2d436b3700 -1 read_conf: ignoring line 31 because it doesn't end with a newline! Please end the config file with a newline.
cluster:
id: 8ad5bacc-b1d6-4954-adb4-8fd0bb9eab35
health: HEALTH_OK
services:
mon: 3 daemons, quorum controller,compute01,compute02 (age 11m)
mgr: compute02(active, since 12m), standbys: compute01, controller
mds: cephfs:1 {0=compute01=up:active} 2 up:standby
osd: 9 osds: 9 up (since 45m), 9 in (since 4d)
rgw: 3 daemons active (compute01.rgw0, compute02.rgw0, controller.rgw0)
task status:
data:
pools: 9 pools, 528 pgs
objects: 249 objects, 12 MiB
usage: 159 GiB used, 441 GiB / 600 GiB avail
pgs: 528 active+clean
看到上面报错,检查ceph.conf配置文件31行是不是末尾行,如果是,需要调整到最后一个字符按回车,增加一个空行。