Adding multiple hosts
You can use the Ceph Orchestrator to add multiple hosts to an IBM Storage Ceph cluster at the same time using the service specification in YAML file format.
Prerequisites
-
A running IBM Storage Ceph .
Procedure
-
Create the
hosts.yamlfile:Example
[root@host01 ~]# touch hosts.yaml -
Edit the
hosts.yamlfile to include the following details:Example
service_type: host addr: host01 hostname: host01 labels: - mon - osd - mgr --- service_type: host addr: host02 hostname: host02 labels: - mon - osd - mgr --- service_type: host addr: host03 hostname: host03 labels: - mon - osd -
Mount the YAML file under a directory in the container:
Example
[root@host01 ~]# cephadm shell --mount hosts.yaml:/var/lib/ceph/hosts.yaml -
Navigate to the directory:
Example
[ceph: root@host01 /]# cd /var/lib/ceph/ -
Deploy the hosts using service specification:
Syntax
ceph orch apply -i FILE_NAME.yamlExample
[ceph: root@host01 hosts]# ceph orch apply -i hosts.yaml
Verification
-
List the hosts:
Example
[ceph: root@host01 /]# ceph orch host ls