Uninstall Rook CephΒΆ
About this task
To completely remove Rook Ceph you must remove the app and clear all the environment configurations to prevent an automatic reinstall.
Procedure
Remove the application by running the script:
source /etc/platform/openrc system application-remove rook-ceph --force retry_count=1 retries=200 while [ $retry_count -le $retries ]; do rookstatus=$(system application-list | grep rook-ceph | awk '{print $10}') echo $rookstatus if [[ "$rookstatus" == "uploaded" ]]; then system application-delete rook-ceph --force break fi echo "Retry #" $retry_count let retry_count++ done
Remove the environment configurations completely.
Remove OSDs.
Lock the host.
~(keystone_admin)$ system host-lock <hostname>
List all OSDs to get the uuid of each OSD.
~(keystone_admin)$ system host-stor-list <hostname>
Remove each OSD using the uuid of all OSDs.
~(keystone_admin)$ system host-stor-delete <uuid>
Remove the storage backend ceph-rook.
~(keystone_admin)$ system storage-backend-delete ceph-rook-store --force
Remove
host-fs
.Check
host-fs
status.~(keystone_admin)$ system host-fs-list <hostname>
To remove a
host-fs
, the filesystem needs to be in Ready state. To release an In-Use host-fs, remove all functions from it and reapply the application:~(keystone_admin)$ system host-fs-modify <hostname> ceph --functions= ~(keystone_admin)$ system appliction-apply rook-ceph
When the
host-fs
is in Ready state, remove thehost-fs
:~(keystone_admin)$ system host-fs-delete <hostname> ceph
(AIO-DX Only) Remove
controller-fs
.Check
controller-fs
status.~(keystone_admin)$ system controller-fs-list
To remove a
controller-fs
, the standby controller must be locked and thecontroller-fs
needs to be in Ready state.~(keystone_admin)$ system host-lock <hostname>
To release an In-Use
controller-fs
, remove all functions from it and reapply the application.~(keystone_admin)$ system controllerfs-modify ceph-float --functions= ~(keystone_admin)$ system appliction-apply rook-ceph
When the
controller-fs
is in Ready state, remove thehost-fs
.~(keystone_admin)$ system controller-fs-delete ceph-float