Static provisioning of Persistent Volume in filesystem
Persistent Volume storage that is statically provisioned by an administrator.
- Configure Persistent Volume manifest file with a
volumeHandleas described in this example:kind: PersistentVolume apiVersion: v1 metadata: name: ibm-spectrum-fusion-pv-images labels: cns.isf.ibm.com/creator-fusion: '' spec: capacity: storage: 10Gi csi: driver: spectrumscale.csi.ibm.com volumeHandle: 14544310586575975773;096E4651:61DFAFB3;path=/mnt/ibm-spectrum-scale-fs-mcgpfs3-14544310586575975773/images accessModes: - ReadWriteMany persistentVolumeReclaimPolicy: Retain volumeMode: Filesystem status: phase: AvailableHere, the name is
ibm-spectrum-fusion-pv-images2. The storage capacity is 10Gi. ThevolumeHandlevalue is14544310586575975773;096E4651:61DFAFB3;path=/mnt/ibm-spectrum-scale-fs-mcgpfs3-14544310586575975773/images. - Run the following apply command to create a Persistent
Volume:
kubectl apply -f pv.yaml
Note:
- IBM Fusion creates static Persistent Volume templates for each filesystem.
- For IBM Fusion, static Persistent Volume for fileset supports backup but does not support backup for normal file or directory. If backup must be taken for normal file or directory, use dynamic Persistent Volume.