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 type RAID1

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nvmesh-raid1
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 the XFS FileSystem

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

Create a volume from the XFS Storage-Class

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: nvmesh-xfs-volume
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