Enabling metadata on RBD and CephFS volumes
Before you begin
-
Ensure to install
ocs_operator
and create astoragecluster
for the operator. -
Ensure that the
storagecluster
is inReady
state.oc get storagecluster
NAME AGE PHASE EXTERNAL CREATED AT VERSION ocs-storagecluster 57m Ready 2022-08-30T06:52:58Z 4.12.0
About this task
You can set the persistent volume claim (PVC), persistent volume (PV), and Namespace names in the RADOS block device (RBD) and CephFS volumes for monitoring purposes. This enables you to read the RBD and CephFS metadata to identify the mapping between the OpenShift Container Platform and RBD and CephFS volumes.
To enable RADOS block device (RBD) and CephFS volume metadata feature, you need to set the
CSI_ENABLE_METADATA
variable in the
rook-ceph-operator-config
configmap
. By default, this feature is
disabled. If you enable the feature after upgrading from a previous version, the existing PVCs will
not contain the metadata. Also, when you enable the metadata feature, the PVCs that were created
before enabling will not have the metadata.