ODF-4.14 | Enabling resize for encrypted RADOS Block Device persistent volume claim - Developer Preview

Updated

Important: A developer preview feature is subject to Developer preview support limitations. Developer preview features are not intended to be run in production environments. The clusters deployed with the developer preview features are considered to be development clusters and are not supported through the Red Hat Customer Portal case management system. Development Preview features are meant for customers who are willing to evaluate new products or releases of products in an early stage of product development. If you need assistance with developer preview features, reach out to the ocs-devpreview@redhat.com mailing list and a member of the Red Hat Development Team will assist you as quickly as possible based on availability and work schedules. To know more about the support scope refer to the This content is not included.KCS.

Enabling resize for encrypted RBD PVC - OpenShift Data Foundation 4.14 - Developer Preview

OpenShift Data Foundation now supports enabling resize for encrypted RADOS Block Device persistent volume claim (RBD PVC). This article contains procedure to enable resize capability of existing encrypted RBD storageclasses and modify existing encrypted RBD PVC to support resize.

Procedure

Updating the encrypted RBD StorageClass:

  1. Identify the RBD storageclass which need to be modified.
oc get storageclass | grep "openshift-storage.rbd.csi.ceph.com"

Encrypted RBD storageclass will have parameter encrypted: true.
2. Take a backup of the StorageClass which has allowVolumeExpansion: false.

oc get sc <storageclass-name> -o yaml > sc.yaml
  1. Edit sc.yaml to set allowVolumeExpansion: true.
  2. Delete the StorageClass.
oc delete sc <storageclass-name>
  1. Recreate the StorageClass.
oc create -f sc.yaml

NOTE: Ensure to modify the storageclass using the above procedure before moving to the next steps.

Updating the existing encrypted RBD PVCs:

Perform the following steps to update the existing encrypted RBD PVCs that were created from the above modified storageclass:

  1. Identify the existing PVCs created using the above modified storageclass.
oc get pvc | grep <storageclass-name>
  1. Identify corresponding PersistentVolume (PV) for each PVC.
oc get pvc <pvc-name> -o jsonpath='{.spec.volumeName}
  1. Run following command to enable resize capability.
oc patch pv <pv-name> -p '{"spec": { "csi": {"controllerExpandSecretRef": { "name": "rook-csi-rbd-provisioner", "namespace": "openshift-storage" }}}}
SBR
Category
Article Type