# ceph orch device ls HOST PATH TYPE DEVICE ID SIZE AVAILABLE REFRESHED REJECT REASONS ... tj5-s1-v6-tj5-128473-2yqgrsr3.kscn /dev/sdn hdd PERC_H730P_Adp_64cd98f0a4fe92002d9812411cad387a 3725G 44s ago Has a FileSystem, Insufficient space (<10 extents) on vgs, LVM detected ...
# ceph orch device ls HOST PATH TYPE DEVICE ID SIZE AVAILABLE REFRESHED REJECT REASONS ... tj5-s1-v6-tj5-128473-2yqgrsr3.kscn /dev/sdn hdd PERC_H730P_Adp_64cd98f0a4fe92002d9812411cad387a 3725G Yes 10s ago ...
# ceph osd tree ID CLASS WEIGHT TYPE NAME STATUS REWEIGHT PRI-AFF -1 134.61336 root default -3 47.29659 host tj5-s1-v6-tj5-128473-2yqgrsr3 ... 1 hdd 3.63820 osd.1 down 0 1.00000 ... 36 hdd 3.63820 osd.36 up 1.00000 1.00000 ...
到这里坏盘的替换就完成了。
没有复用 osd id 的情况下,可能还需要清一下失效了的 osd daemon,可以先命令看一下:
1 2 3 4 5
# ceph orch ps NAME HOST PORTS STATUS REFRESHED AGE MEM USE MEM LIM VERSION IMAGE ID CONTAINER ID ... osd.1 tj5-s1-v6-tj5-128473-2yqgrsr3.kscn error 6m ago 2w - 5751M <unknown> <unknown> <unknown> ...