Purging the Ceph storage cluster clears any data or connections that remain from previous deployments on your server.
Before you begin
Before you begin, be sure that you have a running IBM Storage Ceph.
About this task
For Red Hat Enterprise Linux 9, use the cephadm rm-cluster command, since Ansible is not supported.
Procedure
-
Disable
cephadm to stop all the orchestration operations to avoid deploying new daemons.
ceph mgr module disable cephadm
For example,
[ceph: root#host01 /]# ceph mgr module disable cephadm
-
Get the FSID of the cluster.
For example,
[ceph: root#host01 /]# ceph fsid
-
Exit the
cephadm shell.
For example,
[ceph: root@host01 /]# exit
-
Purge the Ceph daemons from all hosts in the cluster.
cephadm rm-cluster --force --zap-osds --fsid FSID
For example,
[root@host01 ~]# cephadm rm-cluster --force --zap-osds --fsid 2d2fd136-6df1-11ea-ae74-002590e526e8