Skip to content

Commit 19ddee4

Browse files
authored
Merge pull request #44634 from lpettyjo/OSDOCS-3523
OSDOCS-3523: Expanding local volumes
2 parents bdb8232 + 82a412c commit 19ddee4

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Module included in the following assemblies
2+
//
3+
// * storage/expanding-persistent-volumes.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="expanding-local-volumes_{context}"]
7+
= Expanding local volumes
8+
9+
You can manually expand persistent volumes (PVs) and persistent volume claims (PVCs) created by using the local storage operator (LSO).
10+
11+
.Procedure
12+
13+
. Expand the underlying devices, and ensure that appropriate capacity is available on theses devices.
14+
15+
. Update the corresponding PV objects to match the new device sizes by editing the `.spec.capacity` field of the PV.
16+
17+
. For the storage class that is used for binding the PVC to PVet, set `allowVolumeExpansion:true`.
18+
19+
. For the PVC, set `.spec.resources.requests.storage` to match the new size.
20+
21+
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.

storage/expanding-persistent-volumes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ include::snippets/technology-preview.adoc[leveloffset=+1]
1717

1818
include::modules/storage-expanding-flexvolume.adoc[leveloffset=+1]
1919

20+
include::modules/storage-expanding-local-volumes.adoc[leveloffset=+1]
21+
2022
include::modules/storage-expanding-filesystem-pvc.adoc[leveloffset=+1]
2123

2224
include::modules/storage-expanding-recovering-failure.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)