Static provisioning of Persistent Volume in filesystem

Persistent Volume storage that is statically provisioned by an administrator.

  1. Configure Persistent Volume manifest file with a volumeHandle as 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: Available

    Here, the name is ibm-spectrum-fusion-pv-images2. The storage capacity is 10Gi. The volumeHandle value is 14544310586575975773;096E4651:61DFAFB3;path=/mnt/ibm-spectrum-scale-fs-mcgpfs3-14544310586575975773/images.

  2. Run the following apply command to create a Persistent Volume:
    kubectl apply -f pv.yaml
Note:
  • IBM Storage Fusion creates static Persistent Volume templates for each filesystem.
  • For IBM Storage 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.

It is not applicable for IBM Storage Fusion HCI System.