From 804b0eef243f1ed44c167e396b7fcc424e26dd54 Mon Sep 17 00:00:00 2001 From: Peter Jenkins Date: Wed, 14 Jun 2017 10:44:13 +0300 Subject: [PATCH] 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. --- roles/ceph-common/templates/ceph.conf.j2 | 2 ++ 1 file changed, 2 insertions(+) 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" %}