From 7d7bc26638705955a2643d472969d3dd905dbb62 Mon Sep 17 00:00:00 2001 From: Lisa Pettyjohn Date: Thu, 14 Apr 2022 15:48:25 -0400 Subject: [PATCH] OSDOCS-3523: Expanding local volumes --- modules/storage-expanding-local-volumes.adoc | 21 ++++++++++++++++++++ storage/expanding-persistent-volumes.adoc | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 modules/storage-expanding-local-volumes.adoc diff --git a/modules/storage-expanding-local-volumes.adoc b/modules/storage-expanding-local-volumes.adoc new file mode 100644 index 0000000000..9ffc94f01b --- /dev/null +++ b/modules/storage-expanding-local-volumes.adoc @@ -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. diff --git a/storage/expanding-persistent-volumes.adoc b/storage/expanding-persistent-volumes.adoc index c77df84860..7d26d0bb16 100644 --- a/storage/expanding-persistent-volumes.adoc +++ b/storage/expanding-persistent-volumes.adoc @@ -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]