cephadm will not deploy daemons on hosts with the ``_no_schedule`` label; see :ref:`cephadm-special-host-labels`.
- .. note::
- The **apply** command can be confusing. For this reason, we recommend using
- YAML specifications.
+.. note::
+ The **apply** command can be confusing. For this reason, we recommend using
+ YAML specifications.
- Each ``ceph orch apply <service-name>`` command supersedes the one before it.
- If you do not use the proper syntax, you will clobber your work
- as you go.
+ Each ``ceph orch apply <service-name>`` command supersedes the one before it.
+ If you do not use the proper syntax, you will clobber your work
+ as you go.
- For example:
+ For example:
- .. prompt:: bash #
+ .. prompt:: bash #
- ceph orch apply mon host1
- ceph orch apply mon host2
- ceph orch apply mon host3
+ ceph orch apply mon host1
+ ceph orch apply mon host2
+ ceph orch apply mon host3
- This results in only one host having a monitor applied to it: host 3.
+ This results in only one host having a monitor applied to it: host 3.
- (The first command creates a monitor on host1. Then the second command
- clobbers the monitor on host1 and creates a monitor on host2. Then the
- third command clobbers the monitor on host2 and creates a monitor on
- host3. In this scenario, at this point, there is a monitor ONLY on
- host3.)
+ (The first command creates a monitor on host1. Then the second command
+ clobbers the monitor on host1 and creates a monitor on host2. Then the
+ third command clobbers the monitor on host2 and creates a monitor on
+ host3. In this scenario, at this point, there is a monitor ONLY on
+ host3.)
- To make certain that a monitor is applied to each of these three hosts,
- run a command like this:
+ To make certain that a monitor is applied to each of these three hosts,
+ run a command like this:
- .. prompt:: bash #
+ .. prompt:: bash #
- ceph orch apply mon "host1,host2,host3"
+ ceph orch apply mon "host1,host2,host3"
- There is another way to apply monitors to multiple hosts: a ``yaml`` file
- can be used. Instead of using the "ceph orch apply mon" commands, run a
- command of this form:
+ There is another way to apply monitors to multiple hosts: a ``yaml`` file
+ can be used. Instead of using the "ceph orch apply mon" commands, run a
+ command of this form:
+
+ .. prompt:: bash #
- .. prompt:: bash #
+ ceph orch apply -i file.yaml
- ceph orch apply -i file.yaml
+ Here is a sample **file.yaml** file
- Here is a sample **file.yaml** file::
+ .. code-block:: yaml
- service_type: mon
- placement:
- hosts:
- - host1
- - host2
- - host3
+ service_type: mon
+ placement:
+ hosts:
+ - host1
+ - host2
+ - host3
Explicit placements
-------------------