查询哪个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
最后修改:2024 年 07 月 08 日
如果觉得我的文章对你有用,请随意赞赏