Project

General

Profile

Actions

Documentation #44284

closed

cephadm: provide a way to modify the initial crushmap

Added by Sebastian Wagner about 4 years ago. Updated over 2 years 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

Actions #1

Updated by Sebastian Wagner about 4 years ago

  • Description updated (diff)
Actions #2

Updated by Nathan Cutler about 4 years 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.

Actions #3

Updated by Sebastian Wagner about 4 years ago

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

Updated by Ricardo Marques about 4 years 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.

Actions #5

Updated by Sebastian Wagner about 4 years ago

  • Tags set to low-hanging-fruit
Actions #6

Updated by Sebastian Wagner almost 4 years 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?>

Actions #7

Updated by Sebastian Wagner almost 4 years ago

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

Updated by Sebastian Wagner almost 4 years ago

  • Status changed from Fix Under Review to Pending Backport
Actions #9

Updated by Sebastian Wagner almost 4 years ago

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

Also available in: Atom PDF