Node restart results in default CRUSH map again.
This document (7021090) is provided subject to the disclaimer at the end of this document.
Environment
Situation
Resolution
osd crush update on start = falseAlso see the online SUSE Enterprise Storage documentation for details on the above setting and CRUSH map configuration.
Cause
Additional Information
- Edit "/srv/salt/ceph/configuration/files/ceph.conf.j2" and add the line to the bottom of the [global] section for example:[global]
fsid = {{ salt['pillar.get']('fsid') }}
mon_initial_members = {{ salt['pillar.get']('mon_initial_members') | join(', ') }}
mon_host = {{ salt['pillar.get']('mon_host') | join(', ') }}
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
public_network = {{ salt['pillar.get']('public_network') }}
cluster_network = {{ salt['pillar.get']('cluster_network') }}
osd crush update on start = false
{% for config in salt['rgw.configurations']() %}
{% set client = config + "." + grains['host'] %}
{% include "ceph/configuration/files/ceph.conf." + config %}
{% endfor %}
- Re-run salt stage 3:salt-run state.orch ceph.stage.3- Verify the "/etc/ceph/ceph.conf" file was successfully updated on all the minions by running for example something like:salt "*" cmd.run "grep -i 'crush update' /etc/ceph/ceph.conf"The above command should return something similar to the following:ses-node-XX.dns_name:
osd crush update on start = false
ses-node-XX.dns_name:
osd crush update on start = false
ses-node-XX.dns_name:
osd crush update on start = false
ses-node-XX.dns_name:
osd crush update on start = false
ses-node-XX.dns_name:
osd crush update on start = false
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7021090
- Creation Date: 13-Jul-2017
- Modified Date:03-Mar-2020
-
- SUSE Enterprise Storage
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com