Skip to content

doc/cephadm: document manually deploying an OSD - #74429

Open
anthonyeleven wants to merge 1 commit into
ceph:mainfrom
anthonyeleven:wip-46691-manual-osd
Open

anthonyeleven wants to merge 1 commit into
ceph:mainfrom
anthonyeleven:wip-46691-manual-osd

Conversation

@anthonyeleven

@anthonyeleven anthonyeleven commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

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 osd and OSD service specifications for the normal path,
and to ceph cephadm osd activate after the ceph-volume step when the
orchestrator 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.conf and the client.bootstrap-osd keyring to
cephadm ceph-volume, which lvm batch needs in order to register the OSDs,
the same way the orchestrator does. It passes each OSD's ceph.conf and
keyring to cephadm deploy with --config and --keyring instead of a
hand-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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You 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

@anthonyeleven
anthonyeleven marked this pull request as ready for review November 28, 2026 03:14
@anthonyeleven
anthonyeleven requested review from a team as code owners November 28, 2026 03:14

@eameh-LF eameh-LF left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
@anthonyeleven

Copy link
Copy Markdown
Contributor Author

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.

@anthonyeleven

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard cephadm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants