Home / Platform management / Storage / StorageClasses / Create a StorageClass: CephRBD Block Storage

Create a StorageClass: CephRBD Block Storage

CephRBD block storage is a built-in Ceph block storage that provides storage access based on the Container Storage Interface (CSI) for high IOPS, low latency storage services suitable for scenarios such as databases and virtualization. Before this, you need to create a CephRBD block storage class.

After binding the storage class in the PersistentVolumeClaim (PVC), the platform dynamically creates a persistent volume on the node for business applications to use.

Deployment volume plugin

Click Create Storage Service or Access Storage Service in the Distributed Storage page after clicking Deployments.

Create a StorageClass

  1. Click Storage > StorageClass in the left navigation bar.

  2. Click Create StorageClass.

    Note: The following content is an example in the form of a form. You can also choose > Create in YAML to complete the operation.

  3. Select CephRBD Block Storage and click Next.

  4. Configure the parameters as required.

    Parameter Description
    File system Default to EXT4, a journaling file system for Linux that provides extent-based file storage and supports handling large files. The file system capacity can reach 1 EiB, and the supported file size can reach 16 TiB.
    Recycle Strategy The recycling strategy for persistent volumes.
    - Delete: When the persistent volume claim is deleted, the bound persistent volume will also be deleted.
    - Retain: Even if the persistent volume claim is deleted, the bound persistent volume will still be retained.
    Access mode Only supports single-node read/write (RWO): Can be mounted by one node in read/write mode.
    Allocate Project Please allocate the project that can use this type of storage.
    If there are no projects that need to use this type of storage temporarily, you can also not allocate projects first and update them later.

    Tip: The following parameters need to be set in the distributed storage and will be directly applied here.

    • Storage cluster: The built-in Ceph storage cluster in the current cluster.

    • Storage pool: The logical partition used to store data in the storage cluster.

  5. Click Create.