Expanding the cluster
You can use the dashboard to expand the IBM Storage Ceph cluster for adding hosts, adding
OSDs, and creating services such as Alertmanager, cephadm-exporter, CephFS-mirror, Grafana, ingress,
MDS, node-exporter, Prometheus, RBD-mirror, and Ceph Object Gateway.
Once you bootstrap a new storage cluster, the Ceph Monitor and Ceph Manager daemons are created and the cluster is in HEALTH_WARN state. After creating all the services for the cluster on the dashboard, the health of the cluster changes from HEALTH_WARN to HEALTH_OK status.
Prerequisites
-
Bootstrapped storage cluster. For more information, see Bootstrapping a new storage cluster.
-
At least
cluster-managerrole for the user on the IBM Storage Ceph Dashboard. For more information, see User roles and permissions.
Procedure
-
Copy the admin key from the bootstrapped host to other hosts:
Syntax
ssh-copy-id -f -i /etc/ceph/ceph.pub root@HOST_NAMEExample
[ceph: root@host01 /]# ssh-copy-id -f -i /etc/ceph/ceph.pub root@host02 [ceph: root@host01 /]# ssh-copy-id -f -i /etc/ceph/ceph.pub root@host03 -
Log in to the dashboard with the default credentials provided during bootstrap.
-
Change the password and log in to the dashboard with the new password .
-
On the landing page, click Expand Cluster.
-
Add hosts:
-
In the Add Hosts window, click +Add.
-
Provide the hostname. This is same as the hostname that was provided while copying the key from the bootstrapped host.
Note: You can use the tool tip in the Add Hosts dialog box for more details. -
Optional: Provide the respective IP address of the host.
-
Optional: Select the labels for the hosts on which the services are going to be created.
-
Click Add Host.
-
Follow the above steps for all the hosts in the storage cluster.
-
-
In the Add Hosts window, click Next.
-
Create OSDs:
-
In the Create OSDs window, for Primary devices, Click +Add.
-
In the Primary Devices window, filter for the device and select the device.
-
Click Add.
-
Optional: In the Create OSDs window, if you have any shared devices such as WAL or DB devices, then add the devices.
-
Optional: Click on the check-box Encryption to encrypt the features.
-
In the Create OSDs window, click Next.
-
-
Create services:
-
In the Create Services window, click +Create.
-
In the Create Service dialog box,
-
Select the type of the service from the drop-down.
-
Provide the service ID, a unique name of the service.
-
Provide the placement by hosts or label.
-
Select the hosts.
-
Provide the number of daemons or services that need to be deployed.
-
-
Click Create Service.
-
-
In the Create Service window, Click Next.
-
Review the Cluster Resources, Hosts by Services, Host Details. If you want to edit any parameter, click Back and follow the above steps.
-
Click Expand Cluster.
-
You get a notification that the cluster expansion was successful.
-
The cluster health changes to HEALTH_OK status on the dashboard.
Verification
-
Log in to the
cephadmshell:Example
[root@host01 ~]# cephadm shell -
Run the
ceph -scommand.Example
[ceph: root@host01 /]# ceph -sThe health of the cluster is HEALTH_OK.