Home > Workload Solutions > Container Platforms > Red Hat OpenShift Container Platform > Archive > Deployment Guide--Dell Ready Stack for Red Hat OpenShift Container Platform 4.3 CSI Attached Storage > Provisioning PowerMax storage
Dell EMC PowerMax delivers new levels of performance and efficiency with an integrated machine learning engine. For more information, see Dell EMC PowerMax.
Prerequisites include:
To provision Dell EMC PowerMax storage:
[core@csah ~]$ oc new-project powermax
[core@csah pmax]$ cat pmax-secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: powermax-creds
namespace: powermax
type: Opaque
data:
username: ZGVsbA==
password: ZGVsbA==
Notes:
As shown in the example, specify the secret name as powermax-creds.
username and password are in base64 format; for example, echo -n ‘content’ | base64.
[core@csah pmax]$ oc create -f pmax-secret.yaml
Notes:
Obtain required information such as the Unisphere management IP address and specify additional parameters for the storage class as needed. For a sample FC driver YAML file, see PowerMax FC driver configuration file.
PowerMax supports either the FC or iSCSI protocol using Dell CSI drivers. However, it does not support both FC and iSCSI storage provisioning simultaneously.
[core@csah pmax]$ oc get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
powermax-controller-0 3/3 Running 0 33s 10.128.2.18 worker-1.example.lab <none> <none>
powermax-node-lmlm6 2/2 Running 0 33s 100.82.46.25 worker-1.example.lab <none> <none>
powermax-node-qffmg 2/2 Running 0 33s 100.82.46.24 worker-0.example.lab <none> <none>
powermax-node-vtlpg 2/2 Running 0 33s 100.82.46.26 worker-2.example.lab <none> <none>
[core@csah pmax]$ oc get sc
NAME PROVISIONER AGE
test-powermax-fc csi-powermax.dellemc.com 9m35s
Note: Obtain the volume handle for the volume that you create. Generally, the volume handle is <Volume name><Symm ID><Volume ID>.
[core@csah pmax]$ cat stfcpv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: static-pv-powermax-fc
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 14Gi
csi:
driver: csi-powermax.dellemc.com
fsType: ext4
volumeAttributes:
CapacityGB: "14.00"
SRP: SRP_1
ServiceLevel: Bronze
volumeHandle: static_pv_fc-000197900896-00042
persistentVolumeReclaimPolicy: Delete
storageClassName: test-powermax-fc
volumeMode: Filesystem
[core@csah pmax] $ oc create -f stfcpv.yaml
Note: Ensure that the storage class name designates an FC configuration. This guide uses test-powermax-fc as the FC storage class name.
[core@csah pmax]$ cat stfcpvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: static-pvc-powermax-fc
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 14Gi
volumeName: static-pv-powermax-fc
storageClassName: test-powermax-fc
[core@csah pmax] $ oc create -f stfcpvc.yaml
It is not necessary to create a volume manually when you use a dynamic volume. The PV is created automatically and is attached to the PVC by using a YAML file.
[core@csah pmax]$ cat dyfcpmax.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dynamic-fc-powermax-pvc
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 9Gi
storageClassName: test-powermax-fc
[core@csah pmax] $ oc create -f dyfcpmax.yaml
Note: Ensure that the storage class name designates an FC configuration. This guide uses test-powermax-fc as the FC storage class name.
Notes:
You can use the PowerMax CSI driver to create volumes using either the iSCSI or FC protocols, but not both simultaneously. If there is a CSI driver for PowerMax already installed, delete it from the OpenShift console.
If an FC CSI PowerMax driver is installed, remove it. To remove the CSI driver, log in to the OpenShift console. Go to Installed Operators > CSI Operator > CSI Driver > PowerMax Instance and click Delete.
[core@csah pmax]$ oc get sc
NAME PROVISIONER AGE
test-powermax-iscsi csi-powermax.dellemc.com 67s
[core@csah pmax]$ oc get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
powermax-controller-0 3/3 Running 0 16s 10.128.2.24 worker-1.example.lab <none> <none>
powermax-node-dlmm2 2/2 Running 0 16s 100.82.46.25 worker-1.example.lab <none> <none>
powermax-node-jsxj2 2/2 Running 0 16s 100.82.46.26 worker-2.example.lab <none> <none>
powermax-node-r9lbn 2/2 Running 0 16s 100.82.46.24 worker-0.example.lab <none> <none>
[core@csah pmax]$ cat stiscsipv.yaml
apiVersion: v1
kind: PersistentVolume
metadata:
name: static-pv-powermax-iscsi
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 16Gi
csi:
driver: csi-powermax.dellemc.com
fsType: ext4
volumeHandle: static_pv_iscsi-000197900896-00044
persistentVolumeReclaimPolicy: Delete
storageClassName: test-powermax-iscsi
volumeMode: Filesystem
Note: The volumeHandle name is <volume name>-<Symmetrix ID>-<Symmetrix Vol ID>.
[core@csah ~]$ oc create -f stiscsipv.yaml
[core@csah pmax]$ cat stiscsipvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: static-pvc-powermax-iscsi
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 16Gi
volumeName: static-pv-powermax-iscsi
storageClassName: test-powermax-iscsi
Note: Ensure that volumeName matches the static iSCSI volume created manually.
[core@csah ~]$ oc create -f stiscsipvc.yaml
Note: You can use the PowerMax CSI driver to create volumes by using either the iSCSI or FC protocols, but not both simultaneously. If there is an FC CSI driver for PowerMax already installed, delete it from the OpenShift console.
[core@csah pmax]$ cat dyiscsipvc.yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: dynamic-iscsi-powermax-pvc
namespace: powermax
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 15Gi
storageClassName: test-powermax-iscsi
[core@csah ~]$ oc create -f stiscsipvc.yaml