]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Documentation changes for 'ceph orch osd set-spec-affinity' command
authorShweta Bhosale <Shweta.Bhosale1@ibm.com>
Thu, 14 Nov 2024 09:38:56 +0000 (15:08 +0530)
committerShweta Bhosale <Shweta.Bhosale1@ibm.com>
Thu, 5 Dec 2024 06:59:19 +0000 (12:29 +0530)
Fixes: https://tracker.ceph.com/issues/68695
Signed-off-by: Shweta Bhosale <Shweta.Bhosale1@ibm.com>
doc/cephadm/services/osd.rst
doc/man/8/cephadm.rst

index 831bd238c79660dfc38c47246cc5b156e3429a51..90ebd86f897f923431a3c55e83b85ac2b52a9753 100644 (file)
@@ -198,6 +198,18 @@ There are a few ways to create new OSDs:
 
 .. warning:: When deploying new OSDs with ``cephadm``, ensure that the ``ceph-osd`` package is not already installed on the target host. If it is installed, conflicts may arise in the management and control of the OSD that may lead to errors or unexpected behavior.
 
+* OSDs created via ``ceph orch daemon add`` are by default not added to the orchestrator's OSD service, they get added to 'osd' service. To attach an OSD to a different, existing OSD service, issue a command of the following form:
+
+  .. prompt:: bash *
+
+    ceph orch osd set-spec-affinity <service_name> <osd_id(s)>
+
+  For example:
+
+  .. prompt:: bash #
+
+    ceph orch osd set-spec-affinity osd.default_drive_group 0 1
+
 Dry Run
 -------
 
index b2cad6cb5059f87e5f73c9d1ea7498da0accfadc..3c23a9867f7bc56288f2af58eecba384ae2e697d 100644 (file)
@@ -13,7 +13,7 @@ Synopsis
 |               [--log-dir LOG_DIR] [--logrotate-dir LOGROTATE_DIR]
 |               [--unit-dir UNIT_DIR] [--verbose] [--timeout TIMEOUT]
 |               [--retry RETRY] [--no-container-init]
-|               {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install,list-images}
+|               {version,pull,inspect-image,ls,list-networks,adopt,rm-daemon,rm-cluster,run,shell,enter,ceph-volume,unit,logs,bootstrap,deploy,check-host,prepare-host,add-repo,rm-repo,install,list-images,update-osd-service}
 |               ...
 
 
@@ -106,6 +106,7 @@ Synopsis
 
 | **cephadm** **list-images**
 
+| **cephadm** **update-osd-service** [-h] [--fsid FSID] --osd-ids OSD_IDS --service-name SERVICE_NAME
 
 
 Description
@@ -535,6 +536,18 @@ list-images
 List the default container images for all services in ini format. The output can be modified with custom images and passed to --config flag during bootstrap.
 
 
+update-osd-service
+------------------
+
+Update the OSD service for specific OSDs
+
+Arguments:
+
+* [--fsid FSID]                 cluster FSID
+* --osd-ids OSD_IDS             Comma-separated OSD IDs
+* --service-name SERVICE_NAME   OSD service name
+
+
 Availability
 ============