Home / Platform management / Storage / Local Storage / Create a storage cluster

Create a storage cluster

Local storage is a software-defined server local storage solution that provides simple, easy-to-maintain, and high-performance local storage service capabilities. Based on the community’s TopoLVM solution, local storage persistent volume orchestration management is implemented through the system’s LVM method.

Prerequisites

The lvm2 software package must be installed on each node of the storage cluster. If it is not installed, run the yum install -y lvm2 command on the node.

Procedure

  1. In the left navigation bar, click Storage > Local Storage.

  2. Click Configure Now.

  3. On the Install Operator wizard page, click Deploying.

    • If the page automatically proceeds to the next step, the Operator deployment is successful.

    • If the deployment fails, follow the prompts on the interface. Then click cleanup and redeploy the Operator.

  4. On the Create Cluster wizard page, add devices.

    Parameter Description
    Choose Node Refers to a node with at least one bare disk.
    Device Class Each device class corresponds to a set of storage devices with the same characteristics. It is recommended to name them according to the disk properties, such as hdd or ssd.
    Device Type Only disk types are supported.
    Storage Device For example, /dev/sda. If there are multiple disks, you can add them one by one.
    Snapshots When enabled, it supports creating PVC snapshots and using snapshot configurations to quickly back up and restore business data for PVCs.
    If snapshots are not enabled when creating storage, you can still enable them as needed in the Actions on the storage cluster details page.
    Caution: Before using this feature, make sure that the volume snapshot plugin has been deployed for the current cluster.
  1. In the Create StorageClass wizard page, configure the relevant parameters.

    Parameter Description
    Name The name of the storage class. It must be unique within the current cluster.
    Display name A name that can help you identify or filter the storage class, such as a Chinese description of the storage class.
    Device Class The device class is a way to classify storage devices in TopoLVM. Each device class corresponds to a set of storage devices with the same characteristics. If there are no special requirements, you can use the device class assigned by the cluster automatically.
    File system - XFS is a high-performance journaling file system that excels at handling parallel I/O workloads, supports large files, and enables smooth data transfer.
    - EXT4 is a journaling file system for Linux that provides extent-based file storage and supports 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 is also deleted.
    - Retain: Even if the persistent volume claim is deleted, the bound persistent volume will still be retained.
    Access mode ReadWriteOnce (RWO): Can be mounted by one node for read and write access.
    Allocate Project This type of persistent volume claim can only be created in a specific project.
    If no project is assigned, it can be updated later using Update project.
  2. Click Next and wait for the resource to be created.