Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Implementation Guide—Red Hat OpenShift Container Platform 4.10 on AMD-powered Dell Infrastructure > Provisioning PowerStore storage
The PowerStore storage system delivers high levels of performance and efficiency with an integrated machine learning (ML) engine. For more information, see Dell PowerStore.
PowerStore supports FC, ISCSI, and NFS protocols using Dell CSI drivers. Setting the driver X-CSI_TRANSPORT_PROTOCOL to auto ensures that FC is used if FC ports are available in the compute node and that iSCSI is used otherwise.
Note: Modify the IP address and NAS server name appropriately.
[core@csah-pri ~]$ sed "s/CONFIG_YAML/`cat <config file name created in step 1> | base64 -w0`/g" <secret file name created in step 2> | kubectl apply -f –
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$ oc get pods -n powerstore
NAME READY STATUS RESTARTS AGE
powerstore-controller-d8fbc8868-s65xq 5/5 Running 0 6s
powerstore-controller-d8fbc8868-zdx7f 5/5 Running 0 6s
powerstore-node-4nhld 2/2 Running 0 6s
powerstore-node-4x9tl 2/2 Running 0 6s
powerstore-node-76wzl 2/2 Running 0 6s
powerstore-node-gcjbc 2/2 Running 0 6s
powerstore-node-hdqxd 2/2 Running 0 6s
powerstore-node-jn9c6 2/2 Running 0 6s
To create the storage class, run:
[core@csah-pri ~]$ oc create -f <YAML file>
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
dellcsi-powerstore-sc-fc csi-powerstore.dellemc.com Delete Immediate false 2s
To create the storage class, run:
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$ oc get sc
NAME PROVISIONER RECLAIMPOLICY VOLUMEBINDINGMODE ALLOWVOLUMEEXPANSION AGE
powerstore-sc-nfs csi-powerstore.dellemc.com Delete Immediate false 3s
Note: The configuration for this cluster has FC ports available, ensuring that only the FC protocol is used for all compute nodes.
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$ oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
powerstore-pvc-iscsi Bound csi-pstore-4011c12e07 20Gi RWO dellcsi-powerstore-sc 14s
[core@csah-pri ~]$ oc rsh test-pod
sh-4.4#
sh-4.4# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 1.5T 73G 1.4T 5% /
tmpfs 64M 0 64M 0% /dev
tmpfs 189G 0 189G 0% /sys/fs/cgroup
shm 64M 0 64M 0% /dev/shm
tmpfs 189G 96M 189G 1% /etc/hostname
/var/lib/kubelet/plugins/kubernetes.io/csi/pv/csi-pstore-4011c12e07/globalmount/78ce62c4-293d-49ff-8197-a7b556c6182a 5.0G 33M 5.0G 1% /mnt
/dev/nvme0n1p4 1.5T 73G 1.4T 5% /tmp
tmpfs 376G 20K 376G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 189G 0 189G 0% /proc/acpi
tmpfs 189G 0 189G 0% /proc/scsi
tmpfs
To create NFS volumes:
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
powerstore-nfs-pvc Bound csi-pstore-1a2aa86f17 2Gi RWO powerstore-sc-nfs 4s
[core@csah-pri ~]$ oc rsh powerstore-nfs-pod
sh-4.4# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 1.5T 55G 1.5T 4% /
tmpfs 64M 0 64M 0% /dev
tmpfs 252G 0 252G 0% /sys/fs/cgroup
shm 64M 0 64M 0% /dev/shm
tmpfs 252G 87M 252G 1% /etc/hostname
192.168.31.15:/csi-pstore-1a2aa86f17/common_folder 3.5G 1.6G 2.0G 44% /mnt
/dev/nvme0n1p4 1.5T 55G 1.5T 4% /tmp
tmpfs 503G 20K 503G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 252G 0 252G 0% /proc/acpi
tmpfs 252G 0 252G 0% /proc/scsi
tmpfs 252G 0 252G 0% /sys/firmware
PowerStore CSI drivers support snapshots of volumes. Create snapshots to back up either the iSCSI, FC, or NFS volume that you created, and then use the snapshots to create a volume and attach it to the pod.
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$ oc get volumesnapshotclass
NAME DRIVER DELETIONPOLICY AGE
powerstore-snap-class csi-powerstore.dellemc.com Delete 8s
[core@csah-pri ~]$ oc create -f <YAML file>
[core@csah-pri ~]$ oc get volumesnapshot
NAME READYTOUSE SOURCEPVC SOURCESNAPSHOTCONTENT RESTORESIZE SNAPSHOTCLASS SNAPSHOTCONTENT CREATIONTIME AGE
powerstore-snapshot true powerstore-pvc-iscsi 20Gi powerstore-snap-class snapcontent-77c02d0b-242b-48e6-8360-cfe3528c5494 4s 4s
[core@csah-pri ~]$ oc get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
powerstore-pvc-iscsi Bound csi-pstore-4a210d0de9 20Gi RWO dellcsi-powerstore-sc 11m
powerstore-restore Bound csi-pstore-18ee1dc637 20Gi RWO dellcsi-powerstore-sc 9s
[core@csah-pri ~]$ oc rsh restore-pod
sh-4.4# df -h
Filesystem Size Used Avail Use% Mounted on
overlay 1.5T 78G 1.4T 6% /
tmpfs 64M 0 64M 0% /dev
tmpfs 252G 0 252G 0% /sys/fs/cgroup
shm 64M 0 64M 0% /dev/shm
tmpfs 252G 92M 252G 1% /etc/hostname
/var/lib/kubelet/plugins/kubernetes.io/csi/pv/csi-pstore-18ee1dc637/globalmount/42b9ec49-d64b-4a48-ab51-fa212eb4b903 20G 33M 20G 1% /home
/dev/nvme0n1p4 1.5T 78G 1.4T 6% /etc/hosts
tmpfs 503G 20K 503G 1% /run/secrets/kubernetes.io/serviceaccount
tmpfs 252G 0 252G 0% /proc/acpi
tmpfs 252G 0 252G 0% /proc/scsi
tmpfs 252G 0 252G 0% /sys/firmware