How to determine if ODF cluster has storage in internal or external mode

Solution Verified - Updated

Environment

  • Openshift Data Foundation 4

Issue

  • It is required to determine whether an ODF cluster has storage configured in internal mode (where the ODF data is stored within the Openshift cluster) or external mode (where the ODF data is stored in an external Ceph cluster).

Resolution

  • To determine whether the ODF storage cluster has been deployed internally or externally, run the oc get storagecluster -n openshift-storage command. The EXTERNAL field shows whether the cluster is external or not.

  • For example, for an ODF cluster whose storage is configured internally, the output will look similar to this:

    NAME                 AGE   PHASE   EXTERNAL   CREATED AT             VERSION
    ocs-storagecluster   56d   Ready              2022-08-30T03:55:25Z   4.10.0
    

    In the example above, the EXTERNAL field is blank. This indicates that the storage cluster is not external, hence, internal.

  • For an example of an ODF storage cluster that is configured externally, the output will look similar to this:

    $ oc get storagecluster -n openshift-storage
    NAME                        AGE      PHASE EXTERNAL  CREATED AT              VERSION
    ocs-external-storagecluster 31m15s   Ready true      2021-02-29T20:43:04Z    4.8.0
    

    In the example above, the EXTERNAL field is defined as true. Hence, this is an external storage cluster.

SBR
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.