InfoScale™ 9.0 Support for Containers - Linux
- Overview
- System requirements
- Preparing to install InfoScale on Containers
- Installing Arctera InfoScale™ on OpenShift
- Installing Arctera InfoScale™ on Kubernetes
- InfoScale CSI deployment in Container environment
- Dynamic provisioning
- Snapshot provisioning (Creating volume snapshots)
- Managing InfoScale volume snapshots with Velero
- Volume cloning
- Installing InfoScale DR on OpenShift
- Installing InfoScale DR on Kubernetes
- TECHNOLOGY PREVIEW: Disaster Recovery scenarios
- Configuring InfoScale
- Troubleshooting
Resizing Persistent Volumes (CSI volume expansion)
Using the persistent volume expansion feature, you can easily expand the storage capacity of a persistent volume by just updating the Persistent Volume Claim storage specification. However, to use this feature, you must set the allowVolumeExpansion attribute to true in their StorageClass object. Only the PVCs created by using such Storage Class allow volume expansion. When the storage attribute of such a PVC object is updated, Container Orchestrator interprets it as a change request and triggers automatic volume resizing.
The following sample Storage Class yaml shows the allowVolumeExpansion attribute definition.
--- apiVersion: storage.k8s.io/v1 kind: StorageClass metadata: name: csi-infoscale-sc annotations: storageclass.kubernetes.io/is-default-class: "false" provisioner: org.veritas.infoscale reclaimPolicy: Delete allowVolumeExpansion: true parameters: fstype: vxfs
While performing the volume expansion operation, you must note the following:
Ensure that the PVC is in use by some application pod while performing resize operation. InfoScale supports dynamic volume expansion in 'Online' mode.
Do not perform the volume expansion operation from InfoScale driver-container pods. In such case, OpenShift is not aware of these changes and updated volume size is not reflected in the PV and PVC objects.
InfoScale does not support the shrinking of persistent volume as OpenShift does not support it.
When a volume is used in any InfoScale configuration, make sure that you use only InfoScale commands to resize it. Do not use any other methods - like OS-specific commands - to resize such volumes. Doing so may disrupt the functioning of your InfoScale configuration.
After the volume is provisioned, create the container application pod, run the application, and access the volume. If the volume is full and must be resized, use one of the following ways:
Edit the Persistent Volume Claim
Use the oc patch pvc command
Note:
Resize operation on volume is not supported when it is provisioned in ReadOnlyMany mode.
Resizing a Persistent Volume by editing the Persistent Volume Claim
- Find the Persistent Volume Claim to resize.
oc get pvc
Output similar to this is displayed:
NAME STATUS VOLUME CAPACITY csi-infoscale-pvc Bound pvc-<id> 5Gi
ACCESS MODES STORAGECLASS AGE RWX csi-infoscale-sc 32m
- To resize the storage capacity, edit the PVC.
oc edit pvc csi-infoscale-pvc
- From your text editor, change the storage capacity to the required larger value. For example, from 5Gi to 10Gi .
- Check the status of the Persistent Volume Claim and Persistent Volume to verify if the size is updated.
oc get pvc
Output similar to this is displayed:
NAME STATUS VOLUME csi-infoscale-pvc Bound pvc-<id>
CAPACITY ACCESS MODES STORAGECLASS AGE 10Gi RWX csi-infoscale-sc 32m
Resizing a Persistent Volume using the 'patch pvc' command
- Find the Persistent Volume Claim to resize.
oc get pvc
Output similar to this is displayed:
NAME STATUS VOLUME CAPACITY csi-infoscale-pvc Bound pvc-<id> 5Gi
ACCESS MODES STORAGECLASS AGE RWX csi-infoscale-sc 32m
- To resize the storage capacity to the required larger value, for example, from 5Gi to 10Gi, run the following command.
oc patch pvc csi-infoscale-pvc --patch '{"spec": {"resources": {"requests": {"storage": "10Gi"}}}}'
- Check the status of the Persistent Volume Claim and Persistent Volume to verify if the size is updated.
oc get pvc
Output similar to this is displayed:
NAME STATUS VOLUME csi-infoscale-pvc Bound pvc-<id>
CAPACITY ACCESS MODES STORAGECLASS AGE 10Gi RWX csi-infoscale-sc 32m