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.
Category:
cephadm (binary)
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
- Description updated (diff)
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.
- Tracker changed from Feature to Documentation
- Description updated (diff)
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.
- Tags set to low-hanging-fruit
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?>
- Status changed from New to Fix Under Review
- Pull request ID set to 34909
- Status changed from Fix Under Review to Pending Backport
- Status changed from Pending Backport to Resolved
- Target version set to v15.2.4
Note, given we have also:
Also available in: Atom
PDF