How to change the RECLAIMPOLICY to 'Retain' in the StorageClasses created by ODF?
Issue
-
When ODF is installed, it creates three or four storage classes, depending on the platform where it's deployed. The example below comes from a bare-metal installation, where four ODF storage classes are available:
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE ocs-storagecluster-ceph-rbd openshift-storage.rbd.csi.ceph.com Delete Immediate true 15m ocs-storagecluster-ceph-rgw openshift-storage.ceph.rook.io/bucket Delete Immediate false 2d3h ocs-storagecluster-cephfs openshift-storage.cephfs.csi.ceph.com Delete Immediate true 2d3h openshift-storage.noobaa.io openshift-storage.noobaa.io/obc Delete Immediate false 2d3h -
As seem above, the 'Reclaim policy' set is 'Delete' by default. How to change this property to 'Retain', after the installation?
Environment
- Red Hat Openshift Data Foundation (RHODF)
- 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.