storage R&D guy.
全部博文(1000)
分类: 服务器与存储
2016-07-02 18:53:28
原文地址:获取某个Pool上pg在各个OSD上的分布 作者:Bean_lee
root@host1:~/bean# ceph osd getmap -o omgot osdmap epoch 142
root@host1:~/bean# osdmaptool om --export-crush crushosdmaptool: osdmap file 'om'osdmaptool: exported crush map to crush
ceph osd getcrushmap -o cm
root@host1:~/bean# osdmaptool om --import-crush cm --test-map-pgs --pool 2osdmaptool: osdmap file 'om'osdmaptool: imported 669 byte crush map from cmpool 2 pg_num 1024#osd count first primary c wt wtosd.0 224 138 138 0.00563049 1osd.1 304 139 139 0.00563049 1osd.2 302 137 137 0.00563049 1osd.3 223 121 121 0.00563049 1osd.4 315 131 131 0.00563049 1osd.5 317 140 140 0.00563049 1osd.6 363 218 218 0.00947571 1in 7avg 292 stddev 47.5455 (0.162827x) (expected 15.8359 0.0542325x))min osd.3 223max osd.6 363size 0 0size 1 0size 2 1024size 3 0osdmaptool: writing epoch 144 to om