Generating static provisioning manifests
To generate static provisioning manifests (PV and
PVC), run the following
script:
generate_static_provisioning_yamls.sh
For CSI 2.10.x, you can issue the following command to download the
script:
curl -O https://raw.githubusercontent.com/IBM/ibm-spectrum-scale-csi/v2.10.2/tools/generate_static_provisioning_yamls.sh
Note: This script must be run on the IBM
Storage Scale
cluster node.
Usage of the script is as follows:
Usage: ./generate_static_provisioning_yamls.sh
-f|--filesystem <Name of Volume's Source Filesystem>
-l|--path <full Path of Volume in Primary Filesystem>
-F|--fileset <name of source fileset>
-s|--size <size in GB>
-u|--username <Username of IBM Storage Scale GUI user account>
-p|--password <Password of IBM Storage Scale GUI user account>
-r|--guihost <HostName(or route) used to access IBM Storage Scale GUI service running on Primary Cluster>
[-P|--pvname <name for pv>]
[-c|--storageclass <StorageClass for pv>]
[-a|--accessmode <AccessMode for pv>]
[-h|--help]
Note: --path and --fileset options are mutually exclusive. At least one of the
options must be specified.
- Example 1: Directory based static volume
- The following example illustrates how to create a volume from a directory
/mnt/fs1/staticpv within the file system
'fs1'.
./generate_static_provisioning_yamls.sh --filesystem fs1 --path /mnt/fs1/staticpv --size 10 --pvname mystaticpv --guihost ibm-spectrum-scale-gui-ibm-spectrum-scale.apps.cluster.cp.fyre.ibm.com
- Example 2: Fileset based volume
- The following example illustrates how to create a volume from a fileset 'fileset1' within the
file system
'fs1'.
./generate_static_provisioning_yamls.sh --filesystem fs1 --fileset f1 --size 10 --pvname mystaticpv --guihost ibm-spectrum-scale-gui-ibm-spectrum-scale.apps.cluster.cp.fyre.ibm.com
Note: The Path specified for option --path must be valid a gpfs path from the
primary file system.