You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-how-fs-overhead-affects-space-vm-disks.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@
8
8
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:
9
9
10
10
* The virtual machine disk.
11
-
* The space that the Containerized Data Importer (CDI) reserves for file system overhead, such as metadata.
11
+
* The space reserved for file system overhead, such as metadata
12
12
13
-
By default, CDI reserves 5.5% of the PVC space for overhead, reducing the space available for virtual machine disks by that amount.
13
+
By default, {VirtProductName} reserves 5.5% of the PVC space for overhead, reducing the space available for virtual machine disks by that amount.
14
14
15
-
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.
15
+
You can configure a different overhead value by editing the `HCO` object. You can change the value globally and you can specify values for specific storage classes.
= Overriding the default file system overhead value
8
8
9
-
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 `CDI` object.
9
+
Change the amount of persistent volume claim (PVC) space that the {VirtProductName}reserves for file system overhead by editing the `spec.config.filesystemOverhead` attribute of the `HCO` object.
10
10
11
11
.Prerequisites
12
12
13
13
* Install the OpenShift CLI (`oc`).
14
14
15
15
.Procedure
16
16
17
-
. Open the `CDI` object for editing by running the following command:
17
+
. Open the `HCO` object for editing by running the following command:
<1> The file system overhead percentage that CDI uses across the cluster. For example, `global: "0.07"` reserves 7% of the PVC for file system overhead.
36
+
<1> The default file system overhead percentage used for any storage classes that do not already have a set value. For example, `global: "0.07"` reserves 7% of the PVC for file system overhead.
37
37
<2> The file system overhead percentage for the specified storage class. For example, `mystorageclass: "0.04"` changes the default overhead value for PVCs in the `mystorageclass` storage class to 4%.
38
38
39
-
. Save and exit the editor to update the `CDI` object.
39
+
. Save and exit the editor to update the `HCO` object.
40
40
41
41
.Verification
42
42
43
-
* View the `CDI` status and verify your changes by running the following command:
43
+
* View the `CDIConfig` status and verify your changes by running one of the following commands:
44
+
+
45
+
To generally verify changes to `CDIConfig`:
46
+
+
47
+
[source,terminal]
48
+
----
49
+
$ oc get cdiconfig -o yaml
50
+
----
51
+
+
52
+
To view your specific changes to `CDIConfig`:
44
53
+
45
54
[source,terminal]
46
55
----
47
-
$ oc get cdi -o yaml
56
+
$ oc get cdiconfig -o jsonpath='{.items..status.filesystemOverhead}'
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.
9
+
By default, the {VirtProductName}reserves space for file system overhead data in persistent volume claims (PVCs) that use the `Filesystem` volume mode. You can set the percentage to reserve space for this purpose globally and for specific storage classes.
0 commit comments