$ oc edit cdi
By default, the Containerized Data Importer (CDI) reserves space for file system overhead data in persistent volume claims (PVCs) that use the
Filesystem volume mode. You can set the percentage that CDI reserves for this purpose globally and for specific storage classes.
When you add a virtual machine disk to a persistent volume claim (PVC) that uses the
Filesystem volume mode, you must ensure that there is enough space on the PVC for:
The virtual machine disk.
The space that the Containerized Data Importer (CDI) reserves for file system overhead, such as metadata.
By default, CDI reserves 5.5% of the PVC space for overhead, reducing the space available for virtual machine disks by that amount.
If a different value works better for your use case, you can configure the overhead value by editing the
CDI object. You can change the value globally and you can specify values for specific storage classes.
Change the amount of persistent volume claim (PVC) space that the Containerized Data Importer (CDI) reserves for file system overhead by editing the
spec.config.filesystemOverhead attribute of the
Install the OpenShift CLI (
CDI object for editing by running the following command:
$ oc edit cdi
spec.config.filesystemOverhead fields, populating them with your chosen values:
... spec: config: filesystemOverhead: global: "<new_global_value>" (1) storageClass: <storage_class_name>: "<new_value_for_this_storage_class>" (2)
|1||The file system overhead percentage that CDI uses across the cluster. For example,
|2||The file system overhead percentage for the specified storage class. For example,
Save and exit the editor to update the
CDI status and verify your changes by running the following command:
$ oc get cdi -o yaml