强行删除桶(会导致数据残留)
radosgw-admin bucket rm --bucket=bucket1 --purge-objects
临时修改组件参数 ,重启复原
#后接任意参数,osd可以改成mon,mgr
ceph tell osd.* injectargs --osd_max_backfills=100
查看集群pool详细信息
ceph osd pool ls detail
转移osd上的pg
#转移
ceph osd pg-upmap-items <pg> <from-osd> <to-osd>
#回退
ceph osd rm-pg-upmap-items <pg>
查询故障
#grep后可以更换对应的故障报错
ceph health detail | grep inconsistent
查询所有pg
ceph pg ls
关闭pg_autoscale_mode
ceph osd pool set .rgw.control pg_autoscale_mode off
#关闭所有pool
rados lspools | xargs -i ceph osd pool set {} pg_autoscale_mode off