Local file systems
File system
When a local file system custom resource is deleted, the operator deletes the actual file system running in the IBM Storage Scale container native cluster. All file system data will be erased.
Make sure that no Persistent Volumes use storage of this file system.
Complete the following steps:
-
To prevent deletion of a file system by mistake, a label must be added to the
Filesystem
custom resource to confirm deletion. Enter the following command to label the file system for deletion.kubectl label filesystem local-sample -n ibm-spectrum-scale scale.spectrum.ibm.com/allowDelete=
-
Enter the following command to delete the file system from Red Hat OpenShift and erase the data.
kubectl delete filesystem local-sample -n ibm-spectrum-scale
Local disks
The disks can be either re-used for another filesystem, or deleted if they are no longer needed.
The delete the disks, complete the following steps:
-
The disk to delete must not be used by a file system. A
LocalDisk
custom resource indicates that it is not used by a file system with valueFalse
in theUSED
column.$ kubectl get localdisk disk0 -n ibm-spectrum-scale NAME TYPE READY USED AVAILABLE FILESYSTEM SIZE AGE disk0 shared True False True 3.5 TiB 16h disk1 shared True True True local-sample 3.5 TiB 16h
-
If the disk is not used by any file system, enter the following command to delete it.
kubectl delete localdisk disk0 -n ibm-spectrum-scale
-
If all local disks are deleted, enter the following command to delete the related node labels:
kubectl label node --all scale.spectrum.ibm.com/nsdFailureGroup- scale.spectrum.ibm.com/nsdFailureGroupMappingType-