Merge pull request #996 from batrick/multimds

multimds: add commands to enable and set max_mds
pull/1006/head
Leseb 2016-10-04 17:43:29 +02:00 committed by GitHub
commit afd0389361
4 changed files with 33 additions and 1 deletions

View File

@ -109,6 +109,19 @@ dummy:
#ceph_stable_release: jewel # ceph stable release #ceph_stable_release: jewel # ceph stable release
#ceph_stable_repo: "http://download.ceph.com/debian-{{ ceph_stable_release }}" #ceph_stable_repo: "http://download.ceph.com/debian-{{ ceph_stable_release }}"
######################################
# Releases name to number dictionary #
######################################
#ceph_release_num:
# dumpling: 0.67
# emperor: 0.72
# firefly: 0.80
# giant: 0.87
# hammer: 0.94
# infernalis: 9
# jewel: 10
# kraken: 11
# Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions # Use the option below to specify your applicable package tree, eg. when using non-LTS Ubuntu versions
# # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/ # # for a list of available Debian distributions, visit http://download.ceph.com/debian-{{ ceph_stable_release }}/dists/
# for more info read: https://github.com/ceph/ceph-ansible/issues/305 # for more info read: https://github.com/ceph/ceph-ansible/issues/305
@ -260,6 +273,8 @@ dummy:
## MDS options ## MDS options
# #
#mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf #mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
#mds_allow_multimds: false
#mds_max_mds: 3
## Rados Gateway options ## Rados Gateway options
# #

View File

@ -265,6 +265,8 @@ filestore_xattr_use_omap: null
## MDS options ## MDS options
# #
mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf mds_use_fqdn: false # if set to true, the MDS name used will be the fqdn in the ceph.conf
mds_allow_multimds: false
mds_max_mds: 3
## Rados Gateway options ## Rados Gateway options
# #

View File

@ -15,3 +15,18 @@
command: ceph --cluster {{ cluster }} fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }} command: ceph --cluster {{ cluster }} fs new {{ cephfs }} {{ cephfs_metadata }} {{ cephfs_data }}
changed_when: false changed_when: false
when: ceph_release_num.{{ ceph_release }} > ceph_release_num.firefly when: ceph_release_num.{{ ceph_release }} > ceph_release_num.firefly
- name: allow multimds
command: ceph --cluster {{ cluster }} fs set {{ cephfs }} allow_multimds true --yes-i-really-mean-it
changed_when: false
when:
- ceph_release_num.{{ ceph_release }} >= ceph_release_num.jewel
- mds_allow_multimds
- name: set max_mds
command: ceph --cluster {{ cluster }} fs set {{ cephfs }} max_mds {{ mds_max_mds }}
changed_when: false
when:
- ceph_release_num.{{ ceph_release }} >= ceph_release_num.jewel
- mds_allow_multimds
- mds_max_mds > 1

View File

@ -2,7 +2,7 @@
- name: collect all the pools - name: collect all the pools
command: rados --cluster {{ cluster }} lspools command: rados --cluster {{ cluster }} lspools
register: ceph_pools register: ceph_pools
when: "{{ ceph_version | version_compare('0.94.0', '>=') }}" when: ceph_release_num.{{ ceph_release }} >= ceph_release_num.hammer
- name: secure the cluster - name: secure the cluster
command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true command: ceph --cluster {{ cluster }} osd pool set {{ item[0] }} {{ item[1] }} true