The driver deployment creates storage-classes that correspond to each of the NVMesh default VPGs.

The Following storage classes will appear under namespace “nvmesh-csi”

  • nvmesh-concatenated
  • nvmesh-raid0
  • nvmesh-raid1
  • nvmesh-raid10
  • nvmesh-ec

Create a PersistentVolumeClaim of RAID1 type:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nvmesh-raid1
  namespace: nvmesh-csi-testing
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 3Gi
  storageClassName: nvmesh-raid1
  • This will default to a FileSystem Volume with ext4

Create a Storage-Class for volumes with xfs FileSystem:

kind: StorageClass
apiVersion: storage.k8s.io/v1
metadata:
  name: nvmesh-xfs-class
  namespace: nvmesh-csi-testing
provisioner: nvmesh-csi.excelero.com
allowVolumeExpansion: true
volumeBindingMode: Immediate
parameters:
  vpg: DEFAULT_CONCATENATED_VPG
  fsType: xfs

Create a volume from the xfs Storage-Class we just created:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nvmesh-xfs-volume
  namespace: nvmesh-csi-testing
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 3Gi
  storageClassName: nvmesh-xfs-class

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment