Documentation #44284
closedcephadm: provide a way to modify the initial crushmap
0%
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
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.
Updated by Sebastian Wagner about 4 years ago
- Tracker changed from Feature to Documentation
- Description updated (diff)
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.
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?>
Updated by Sebastian Wagner almost 4 years ago
- Status changed from New to Fix Under Review
- Pull request ID set to 34909
Updated by Sebastian Wagner almost 4 years ago
- Status changed from Fix Under Review to Pending Backport
Updated by Sebastian Wagner almost 4 years ago
- Status changed from Pending Backport to Resolved
- Target version set to v15.2.4
Updated by Sebastian Wagner over 2 years ago
Note, given we have also:
- https://docs.ceph.com/en/latest/cephadm/host-management/#setting-the-initial-crush-location-of-host
- https://docs.ceph.com/en/latest/cephadm/install/#id2
- plus the example in the ticket description