$ oc edit pvc <pvc_name>
You can enlarge the size of a virtual machine’s (VM) disk to provide a greater storage capacity by resizing the disk’s persistent volume claim (PVC).
However, you cannot reduce the size of a VM disk.
VM disk enlargement makes extra space available to the virtual machine. However, it is the responsibility of the VM owner to decide how to consume the storage.
If the disk is a Filesystem
PVC, the matching file expands to the remaining size while reserving some space for file system overhead.
Edit the PersistentVolumeClaim
manifest of the VM disk that you want to expand:
$ oc edit pvc <pvc_name>
Change the value of spec.resource.requests.storage
attribute to a larger size.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vm-disk-expand
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 3Gi (1)
...
1 | The VM disk size that can be increased |