Table of contents
1. OSD operation related
delete osd
ceph osd down <X>
ceph osd out <X>
ceph osd rm <X>
ceph auth del <osd.X>
ceph osd crush rm <osd.X>
example
ceph osd down 0
ceph osd out 0
ceph osd rm 0
ceph auth del osd.0
ceph osd crush rm osd.0
Adjust OSD recovery level
Modify level
ceph tell osd.* injectargs '--osd-max-backfills 5'
ceph tell osd.* injectargs '--osd-recovery-max-active 5'
ceph tell osd.* injectargs '--osd-recovery-max-single-start 5'
View the values of configuration items through ceph-conf
ceph-conf --show-config | egrep "osd_max_backfills|osd_recovery_max_active|osd_recovery_max_single_start"
View the value of the configuration item through osd.asok
ceph --admin-daemon /var/run/ceph/ceph-osd.<X>.asok config show |grep -E "osd"
# 例
ceph --admin-daemon /var/run/ceph/ceph-osd.18.asok config show |grep -E "osd"
2. Host operation related
Delete the host without osd
ceph osd crush remove <hostname>
example
ceph osd crush remove node48
Move the host to the corresponding bucket
ceph osd crush move <hostname> root=<bucket-name>
example
ceph osd crush move node48 root=ssd