[ceph-ansible] create EC pools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Cephers,

I use ceph-ansible v3.1.5 to build a new Mimic CEph Cluster for OpenStack.
I want to use Erasure Coding for certain pools (images, cinder backups, cinder 
for one additional backend, rgw data...).

The examples in group_vars/all.yml.sample don't show how to specify an erasure 
coded pool.

I know I have to create two pool one little replicated one and an EC one used 
as default datapool for specific Ceph users.

Does someone has an example to create such a pool ?

Here is the definition of a replicated pool :

openstack_cinder_backup_pool:
  name: "backups"
  pg_num: "8"
  pgp_num: "16"
  rule_name: "replicated_rule"
  type: 1
  erasure_profile: ""
  expected_num_objects: ""
  application: "rbd"

What is that type number ?

I tried to read the Ansible role here : roles/ceph-osd/tasks/
openstack_config.yml
But quiet hard to read / understand (always wonder what is that type thing I 
can't find in the docs : http://docs.ceph.com/docs/mimic/rados/operations/
pools/):

- name: create openstack pool(s)
  command: >
    {{ hostvars[groups[mon_group_name][0]]['docker_exec_cmd'] | default('') }} 
ceph --cluster {{ cluster }}
    osd pool create {{ item.0.name }}
    {{ item.0.pg_num }}
    {{ item.0.pgp_num | default(item.0.pg_num) }}
    {{ rule_name if item.0.rule_name | default(rule_name) == '' else item.
0.rule_name | default(rule_name) }}
    {{ 1 if item.0.type|default(1) == 'replicated' else 3 if item.0.type|
default(1) == 'erasure' else item.0.type|default(1) }}
    {%- if (item.0.type | default("1") == '3' or item.0.type | default("1") == 
'erasure') and item.0.erasure_profile != '' %}
    {{ item.0.erasure_profile }}
    {%- endif %}
    {{ item.0.expected_num_objects | default('') }}



_______________________________________________
ceph-users mailing list
ceph-users@xxxxxxxxxxxxxx
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux