From: Peter Jenkins Date: Wed, 14 Jun 2017 07:44:13 +0000 (+0300) Subject: Bluestore: Omit "osd mkfs type" etc from ceph.conf X-Git-Tag: v2.3.0rc2~27^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1607%2Fhead;p=ceph-ansible.git Bluestore: Omit "osd mkfs type" etc from ceph.conf Remove "osd mkfs type" and the other pre-Bluestore parameters from the generated ceph.conf so that disk activation on OSDs will work. The current default xfs config results in a failed deployment and incorrect partition metadata. --- diff --git a/roles/ceph-common/templates/ceph.conf.j2 b/roles/ceph-common/templates/ceph.conf.j2 index 59ff882e9..400baa268 100644 --- a/roles/ceph-common/templates/ceph.conf.j2 +++ b/roles/ceph-common/templates/ceph.conf.j2 @@ -85,10 +85,12 @@ admin socket = {{ rbd_client_admin_socket_path }}/$cluster-$type.$id.$pid.$cctid log file = {{ rbd_client_log_file }} # must be writable by QEMU and allowed by SELinux or AppArmor [osd] +{% if osd_objectstore != 'bluestore' %} osd mkfs type = {{ osd_mkfs_type }} osd mkfs options xfs = {{ osd_mkfs_options_xfs }} osd mount options xfs = {{ osd_mount_options_xfs }} osd journal size = {{ journal_size }} +{% endif %} {% if filestore_xattr_use_omap != None %} filestore xattr use omap = {{ filestore_xattr_use_omap }} {% elif osd_mkfs_type == "ext4" %}