ceph osd down <X>
ceph osd out <X>
ceph osd rm <X>
ceph auth del <osd.X>
ceph osd crush rm <osd.X>
例
ceph osd down 0
ceph osd out 0
ceph osd rm 0
ceph auth del osd.0
ceph osd crush rm osd.0
修改等级
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'
通过ceph-conf查看配置项的值
ceph-conf --show-config | egrep "osd_max_backfills|osd_recovery_max_active|osd_recovery_max_single_start"
通过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"
ceph osd crush remove <hostname>
例
ceph osd crush remove node48
ceph osd crush move <hostname> root=<bucket-name>
例
ceph osd crush move node48 root=ssd