]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: restructure lvm_volumes variable for more flexiblity
authorAndrew Schoen <aschoen@redhat.com>
Wed, 23 Aug 2017 13:59:57 +0000 (08:59 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 23 Aug 2017 15:14:14 +0000 (10:14 -0500)
commit594d5e017a09c7fc69cbb347833e35aa5f461b61
treeeac4bc0e9baf6928193a1fafe42c0e6844ddaf89
parentdaca49cdb13766b26436283a42420ad660c6ad36
ceph-osd: restructure lvm_volumes variable for more flexiblity

The lvm_volumes variable is now a list of dictionaries that represent
each OSD you'd like to deploy using ceph-volume. Each dictionary must
have the following keys: data, journal and data_vg. Each dictionary also
can optionaly provide a journal_vg key.

The 'data' key represents the lv name used for the OSD and the 'data_vg'
key is the vg name that the given lv resides on. The 'journal' key is
either an lv, device or partition. The 'journal_vg' key is optional and
must be the vg name for the journal lv if given. This key is mainly used
for purging of the journal lv if purge-cluster.yml is run.

For example:

  lvm_volumes:
    - data: data_lv1
      journal: journal_lv1
      data_vg: vg1
      journal_vg: vg2
    - data: data_lv2
      journal: /dev/sdc
      data_vg: vg1

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
docs/source/osds/scenarios.rst
roles/ceph-osd/defaults/main.yml
roles/ceph-osd/tasks/check_mandatory_vars.yml
roles/ceph-osd/tasks/scenarios/lvm.yml
tests/functional/centos/7/lvm-osds/group_vars/all