How to change the RECLAIMPOLICY to 'Retain' in the StorageClasses created by ODF?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content