2018年11月23日 星期五

Ceph OSD classification.

ceph osd crush rm-device-class 36 37 38 39 40 41 42 43 44
ceph osd crush set-device-class ssd 36 37 38 39 40 41 42 43 44

ceph osd crush class ls

ceph osd crush rule create-replicated ssd  default host ssd
ceph osd crush rule create-replicated hdd  default host hdd

ceph osd pool set default.rgw.meta crush_rule ssd

rados ls -p cephfs_metadata
ceph osd map cephfs_metadata 100.00000000.inode
for obj in $(rados ls -p cephfs_metadata);do echo ceph osd map cephfs_metadata $obj;done