Skip to content

Commit 08c478d

Browse files
authored
Merge pull request ceph#62784 from anthonyeleven/osd-restart-warn
doc/cephadm: Add admonition re restarting an OSD service Reviewed-by: Zac Dover <[email protected]>
2 parents 1deacb7 + 524db46 commit 08c478d

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

doc/cephadm/operations.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,23 @@ You can stop, start, or restart a daemon with:
5151

5252
.. prompt:: bash #
5353

54-
ceph orch daemon stop <name>
55-
ceph orch daemon start <name>
56-
ceph orch daemon restart <name>
54+
ceph orch daemon stop <daemonid>
55+
ceph orch daemon start <daemonid>
56+
ceph orch daemon restart <daemonid>
5757

5858
You can also do the same for all daemons for a service with:
5959

6060
.. prompt:: bash #
6161

62-
ceph orch stop <name>
63-
ceph orch start <name>
64-
ceph orch restart <name>
62+
ceph orch stop <serviceid>
63+
ceph orch start <serviceid>
64+
ceph orch restart <serviceid>
65+
66+
.. note::
67+
It is usually not safe to run ``ceph orch restart osd.myosdservice`` on a
68+
running cluster, as attention is not paid to CRUSH failure domains, and
69+
parallel OSD restarts may lead to temporary data unavailability or in rare
70+
cases even data loss.
6571

6672

6773
Redeploying or reconfiguring a daemon

doc/cephadm/services/osd.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,13 @@ This example applies to two hosts: ``ceph01`` and ``ceph04``.
12151215
post pertinent to its development can be seen here:*
12161216
`Eugen Block's "Cephadm: Activate existing OSDs" blog post <https://heiterbiswolkig.blogs.nde.ag/2025/02/06/cephadm-activate-existing-osds/>`_.
12171217

1218+
.. note::
1219+
It is usually not safe to run ``ceph orch restart osd.myosdservice`` on a
1220+
running cluster, as attention is not paid to CRUSH failure domains, and
1221+
parallel OSD restarts may lead to temporary data unavailability or in rare
1222+
cases even data loss.
1223+
1224+
12181225
Further Reading
12191226
===============
12201227

0 commit comments

Comments
 (0)