Project

General

Profile

Documentation #44284

cephadm: provide a way to modify the initial crushmap

Added by Sebastian Wagner about 1 year ago. Updated 11 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
cephadm (binary)
Target version:
% Done:

0%

Tags:
low-hanging-fruit
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

If we don't edit the map when bootstrapping, the CRUSH map has to be edited at runtime, which is non-trivial.

However, there is a way by modifying the initial ceph.conf like so:

echo -en "[global]\n        osd crush chooseleaf type = 0\n" > /root/ceph.conf
cephadm bootstrap -c /root/ceph.conf

details: https://github.com/ceph/ceph-salt/issues/100

History

#1 Updated by Sebastian Wagner about 1 year ago

  • Description updated (diff)

#2 Updated by Nathan Cutler about 1 year ago

Actually, when this workaround is used, the option ends up being set in the MON store, and is reflected in the initial CRUSH map. It does not end up in the initial ceph.conf.

#3 Updated by Sebastian Wagner about 1 year ago

  • Tracker changed from Feature to Documentation
  • Description updated (diff)

#4 Updated by Ricardo Marques about 1 year ago

Per our discussion today, using `cephadm bootstrap -c /root/ceph.conf` is the correct way to set initial crushmap or any other required config, so there's nothing to do other than improving documentation.

#5 Updated by Sebastian Wagner about 1 year ago

  • Tags set to low-hanging-fruit

#6 Updated by Sebastian Wagner about 1 year ago

also:

I just deployed a new cluster with cephadm instead of ceph-deploy. In tyhe past, If i
change ceph.conf for tweaking, i was able to copy them and apply to all servers. But i
cannot find this on new cephadm tool.

I did few changes on ceph.conf but ceph is unaware of those changes. How can i apply them?>

#7 Updated by Sebastian Wagner about 1 year ago

  • Status changed from New to Fix Under Review
  • Pull request ID set to 34909

#8 Updated by Sebastian Wagner about 1 year ago

  • Status changed from Fix Under Review to Pending Backport

#9 Updated by Sebastian Wagner 11 months ago

  • Status changed from Pending Backport to Resolved
  • Target version set to v15.2.4

Also available in: Atom PDF