Repository navigation
doc/cephadm: document manually deploying an OSD - #74429
anthonyeleven wants to merge 1 commit into
Conversation
eameh-LF
left a comment
There was a problem hiding this comment.
Thank you for this. The description still says:
The steps have not been run end to end yet. This PR stays a draft until they have been run on a test cluster.
Have they now been run on a test cluster? I am happy to approve once they have. In the meantime, there is one optional point inline.
| OSD on that host. See :ref:`cephadm-osd-activate`. Before step 2, set any OSD | ||
| service specification that could claim the same devices to unmanaged, so that | ||
| the orchestrator does not create OSDs on them first. See | ||
| :ref:`cephadm-osd-declarative`. |
There was a problem hiding this comment.
Optional: in this path the reader sets a matching OSD spec to unmanaged and copies the bootstrap-osd keyring to the host, but nothing tells them to undo either. This path skips step 7, which deletes the keyring, and no step sets the spec back to managed. A spec left unmanaged creates no OSDs on drives added later (src/pybind/mgr/cephadm/serve.py:834-836 on main).
This could go after line 648:
After ``ceph cephadm osd activate`` has deployed the OSDs, set any OSD service
specification that you set to unmanaged back to managed with
``ceph orch set-managed <service_name>``, and delete ``bootstrap-osd.keyring``
from the OSD host as in step 7.There was a problem hiding this comment.
good point, added a paragraph after that one: set the spec back to managed with ceph orch set-managed and delete bootstrap-osd.keyring as in step 7. used to match the rest of the page.
The cephadm troubleshooting page shows how to deploy a Manager by hand but not an OSD. Add a section after the Manager procedure for when the orchestrator cannot create OSDs: no Manager is running, the cephadm module is disabled, a bug blocks OSD deployment, or OSDs are being recovered by hand. It points to ceph orch daemon add osd and OSD service specifications for the normal path, and to ceph cephadm osd activate for when the orchestrator runs but no specification can express the device layout. The steps follow Sebastian Wagner's note on the tracker issue, checked against the current cephadm and ceph-volume code. They pass the minimal ceph.conf and the client.bootstrap-osd keyring to cephadm ceph-volume, which lvm batch needs in order to register the OSDs and which the note left out. They pass each OSD's ceph.conf and keyring to cephadm deploy with --config and --keyring instead of a hand-built config JSON, and they mention the JSON form as an alternative. Fixes: https://tracker.ceph.com/issues/46691 Signed-off-by: Anthony D'Atri <[email protected]> Assisted-by: Claude Opus-5.5
c0956b5 to
e4971ab
Compare
|
ran it end to end on a reef 18.2.8 lab cluster today, worked as written. the osd came up on the right host and cephadm picked it up on its next refresh. |
|
jenkins test dashboard cephadm |
Fixes: https://tracker.ceph.com/issues/46691
The cephadm troubleshooting page explains how to deploy a Manager by hand, but
it has no matching procedure for an OSD. This adds "Manually deploying an OSD
daemon" right after the Manager section. The section says when to use it: no
Manager is running, the cephadm module is disabled, a bug blocks OSD
deployment, or a host's OSDs are being recovered by hand. It points to
ceph orch daemon add osdand OSD service specifications for the normal path,and to
ceph cephadm osd activateafter theceph-volumestep when theorchestrator is running but no specification can express the device layout.
The recipe comes from Sebastian Wagner's 2021-02-11 note on the tracker issue.
Each command and flag was checked against current main. The procedure now
passes the minimal
ceph.confand theclient.bootstrap-osdkeyring tocephadm ceph-volume, whichlvm batchneeds in order to register the OSDs,the same way the orchestrator does. It passes each OSD's
ceph.confandkeyring to
cephadm deploywith--configand--keyringinstead of ahand-built config JSON, and mentions the JSON form as an alternative.
The steps were run end to end on a Reef 18.2.8 lab cluster on 2026-11-30.
Reef has no
ceph orch osd set-spec-affinity; it is in Tentacle and later.The commit picks cleanly to umbrella with the same line counts. On tentacle it
conflicts only on the surrounding headings, because
#66858 changed the section levels on main.
Every command and flag in the section exists on both branches.
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.
Signed-off-by: Anthony D'Atri [email protected]
Assisted-by: Claude Opus-5.5