You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This experiment verifies the volume resize feature of lvm-localpv. For resize the volume we just need to update the pvc yaml with desired size and apply it. We can directly edit the pvc by ```kubectl edit pvc <pvc_name> -n <namespace>``` command and update the spec.resources.requests.storage field with desired volume size. One thing need to be noted that volume resize can only be done from lower pvc size to higher pvc size. We can not resize the volume from higher pvc size to lower one, in-short volume shrink is not possible. lvm driver supports online volume expansion, so that for using the resized volume, application pod restart is not required. For resize, storage-class which will provision the pvc should have `allowVolumeExpansion: true` field.
4
+
5
+
for e.g.
6
+
```
7
+
apiVersion: storage.k8s.io/v1
8
+
kind: StorageClass
9
+
metadata:
10
+
name: openebs-lvmsc
11
+
allowVolumeExpansion: true
12
+
parameters:
13
+
volgroup: "lvmvg"
14
+
provisioner: local.csi.openebs.io
15
+
```
16
+
17
+
## Supported platforms:
18
+
19
+
K8S : 1.17+
20
+
21
+
OS : Ubuntu
22
+
23
+
LVM version : LVM 2
24
+
25
+
## Entry-criteria
26
+
27
+
- K8s cluster should be in healthy state including all the nodes in ready state.
28
+
- lvm-controller and csi node-agent daemonset pods should be in running state.
29
+
- storage class with `allowVolumeExpansion: true` enable should be present.
30
+
- Application should be deployed succesfully consuming the lvm-localpv storage.
31
+
32
+
## Exit-criteria
33
+
34
+
- Volume should be resized successfully and application should be accessible seamlessly.
35
+
- Application should be able to use the new resize volume space.
36
+
37
+
## How to run
38
+
39
+
- This experiment accepts the parameters in form of kubernetes job environmental variables.
40
+
- For running this experiment of lvm volume resize, clone openens/lvm-localpv[https://github.com/openebs/lvm-localpv] repo and then first apply rbac and crds for e2e-framework.
0 commit comments