1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00

Merge pull request #45152 from openshift-cherrypick-robot/cherry-pick-44634-to-enterprise-4.11

[enterprise-4.11] OSDOCS-3523: Expanding local volumes
This commit is contained in:
Lisa Pettyjohn
2022-04-29 08:34:19 -04:00
committed by GitHub
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// Module included in the following assemblies
//
// * storage/expanding-persistent-volumes.adoc
:_content-type: PROCEDURE
[id="expanding-local-volumes_{context}"]
= Expanding local volumes
You can manually expand persistent volumes (PVs) and persistent volume claims (PVCs) created by using the local storage operator (LSO).
.Procedure
. Expand the underlying devices, and ensure that appropriate capacity is available on theses devices.
. Update the corresponding PV objects to match the new device sizes by editing the `.spec.capacity` field of the PV.
. For the storage class that is used for binding the PVC to PVet, set `allowVolumeExpansion:true`.
. For the PVC, set `.spec.resources.requests.storage` to match the new size.
Kubelet should automatically expand the underlying file system on the volume, if necessary, and update the status field of the PVC to reflect the new size.

View File

@@ -17,6 +17,8 @@ include::snippets/technology-preview.adoc[leveloffset=+1]
include::modules/storage-expanding-flexvolume.adoc[leveloffset=+1]
include::modules/storage-expanding-local-volumes.adoc[leveloffset=+1]
include::modules/storage-expanding-filesystem-pvc.adoc[leveloffset=+1]
include::modules/storage-expanding-recovering-failure.adoc[leveloffset=+1]