mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
// Module included in the following assemblies
|
|
//
|
|
// * storage/expanding-persistent-volumes.adoc
|
|
//* microshift_storage/expanding-persistent-volumes-microshift.adoc
|
|
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="expanding-csi-volumes_{context}"]
|
|
= Expanding CSI volumes
|
|
|
|
You can use the Container Storage Interface (CSI) to expand storage volumes after they have already been created.
|
|
|
|
Shrinking persistent volumes (PVs) is _not_ supported.
|
|
|
|
.Prerequisites
|
|
|
|
* The underlying CSI driver supports resize. See "CSI drivers supported by {product-title}" in the "Additional resources" section.
|
|
|
|
* Dynamic provisioning is used.
|
|
|
|
* The controlling `StorageClass` object has `allowVolumeExpansion` set to `true`. For more information, see "Enabling volume expansion support."
|
|
|
|
.Procedure
|
|
|
|
. For the persistent volume claim (PVC), set `.spec.resources.requests.storage` to the desired new size.
|
|
|
|
. Watch the `status.conditions` field of the PVC to see if the resize has completed. {product-title} adds the `Resizing` condition to the PVC during expansion, which is removed after expansion completes.
|