Actions
Create new pool and place new osd » History » Revision 1
Revision 1/14
| Next »
Jin-Guk Kwon, 09/13/2020 02:37 PM
Create new pool and place new osd¶
create pool manual
https://docs.ceph.com/docs/jewel/rados/operations/pools/#create-a-pool
ceph osd pool create {pool-name} {pg-num} [{pgp-num}] [replicated] \ [crush-ruleset-name] [expected-num-objects]
osds are 5~10 --> pg_num 512
osds are 10~50 --> pg_num 4096
osds are more than 50 --> need to calculation(pgcalc)
ceph osd pool create xruk-ssd-pool 128 128
create rule
https://docs.ceph.com/docs/master/rados/operations/crush-map/#creating-a-rule-for-a-replicated-pool
ceph osd crush rule create-replicated <rule-name> <root> <failure-domain> <class>
ceph osd crush rule create-replicated xruk-ssd-rule default host xruk-ssd
set rule on pool
https://docs.ceph.com/docs/master/rados/operations/crush-map/#device-classes
ceph osd pool set <pool-name> crush_rule <rule-name>
ceph osd pool set xruk-ssd-pool crush_rule xruk-ssd-rule
set ceph application enable
ceph osd pool application enable <pool-name> <app-name>', where <app-name> is 'cephfs', 'rbd', 'rgw', or freeform for custom applications
~# ceph osd pool application enable xruk-ssd-pool rbd enabled application 'rbd' on pool 'xruk-ssd-pool'
Updated by Jin-Guk Kwon about 4 years ago · 1 revisions