Migrate a CephFS PVC to a CephRBD (CephBlockPool) PVC - OpenShift Data Foundation (ODF)
Issue
In some instances, it may be necessary to migrate PVCs using the cephfs storageclass to ceph-rbd. There are certain scenarios where this could be true, but the highlighted scenario for this solution will be OCS / ODF Database Workloads Must Not Use CephFS PVs/PVCs (RDBMSs, NoSQL, PostgreSQL, Mongo DBs, etc.).
This particular issue is not specific to Ceph. Database workloads should be stored on block storage as shown in the OpenShift Container Platform Docuemtation as well:
"Databases: Databases (RDBMSs, NoSQL DBs, etc.) tend to perform best with dedicated block storage," not a shared filesystem.
OCP v4.18 - Other specific application storage recommendations
Environment
Red Hat OpenShift Container Storage (RHOCS) 4.x
Red Hat OpenShift Data Foundations (RHODF) 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.