This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.此内容没有您所选择的语言版本。
Chapter 16. Uninstalling Containerized Red Hat Gluster Storage
This chapter outlines the details for uninstalling containerized Red Hat Gluster Storage.
Perform the following steps for uninstalling:
- Cleanup Red Hat Gluster Storage using Heketi
- Remove any containers using the persistent volume claim from Red Hat Gluster Storage.
- Remove the appropriate persistent volume claim and persistent volume:
oc delete pvc <pvc_name> oc delete pv <pv_name>
# oc delete pvc <pvc_name> # oc delete pv <pv_name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Remove all OpenShift objects
- Delete all project specific pods, services, routes, and deployment configurations:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Wait until all the pods have been terminated. - Check and delete the gluster service and endpoints from the projects that required a persistent storage:
oc get endpoints,service oc delete endpoints <glusterfs-endpoint-name> oc delete service <glusterfs-service-name>
# oc get endpoints,service # oc delete endpoints <glusterfs-endpoint-name> # oc delete service <glusterfs-service-name>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Cleanup the persistent directories
- To cleanup the persistent directories execute the following command on each node as a root user:
rm -rf /var/lib/heketi \ /etc/glusterfs \ /var/lib/glusterd \ /var/log/glusterfs
# rm -rf /var/lib/heketi \ /etc/glusterfs \ /var/lib/glusterd \ /var/log/glusterfs
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Force cleanup the disks
- Execute the following command to cleanup the disks:
wipefs -a -f /dev/<disk-id>
# wipefs -a -f /dev/<disk-id>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow