查询哪个OSD报错:
root@ceph01:~# ceph orch ps
NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID CONTAINER ID
..........................................................................................................................................
osd.0 ceph01 error 94s ago 11w - 4096M <unknown> <unknown> <unknown>
..........................................................................................................................................
移除osd.0
ceph osd out osd.0
ceph osd crush remove osd.0
ceph auth del osd.0
ceph osd rm osd.0
ceph orch daemon rm osd.0 --force
清除osd.0的磁盘格式
wipefs -a -f /dev/sdb
重启机器进行查验
查验
root@ceph01:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
..............................................................
sdb 8:16 0 500G 0 disk
..............................................................
sdb没有任何格式
修改/var/lib/ceph/目录属主,
chown -R 167:167 /var/lib/ceph/
新增硬盘
root@ceph01:~# ceph orch daemon add osd ceph01:/dev/sdb
仅登录用户可评论,点击 登录