This section describes how to create a persistent volume claim from a volume snapshot. In addition to creating a persistent volume claim on the Volume Snapshots page, you can also choose to create it from a volume snapshot when creating a persistent volume claim.

For other methods of creating a persistent volume claim, refer to Create a Persistent Volume Claim.

Prerequisites

You need to join a cluster or project and have the Persistent Volume Claim Management permission in the cluster or project. For more information, please refer to Cluster Roles and Project Roles.

Steps

  1. Log in to the KubeSphere web console as a user with Persistent Volume Claim Management permissions and go to your cluster or workspace.

  2. Click Storage > Persistent Volume Claims in the left navigation pane.

  3. Click Create on the page.

  4. On the Basic Information tab, set the basic information for the PersistentVolumeClaim, then click Next.

    Parameter Description

    Name

    The name of the PersistentVolumeClaim. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and is up to 253 characters long.

    Project

    The project to which the PersistentVolumeClaim belongs.

    Alias

    An alias for the PersistentVolumeClaim. Different PersistentVolumeClaims can have the same alias.

    Description

    Descriptive information for the PersistentVolumeClaim. The description can contain any characters and is up to 256 characters long.

  5. On the Storage Settings tab, set the storage requirements, then click Next.

    • Creation Method > Create via VolumeSnapshot

      Parameter Description

      VolumeSnapshot

      The VolumeSnapshot used to create the PersistentVolumeClaim.

      Access Mode

      Read and Write Modes for Persistent Volumes.

      • RWO (ReadWriteOnce): Allows a single node to read data from and write data to the persistent volume.

      • ROX (ReadOnlyMany): Allows multiple nodes to read data from the persistent volume.

      • RWX (ReadWriteMany): Allows multiple nodes to read data from and write data to the persistent volume.

      Depending on the backend storage system, some access mode types may not be available.

  6. On the Advanced Settings tab, set the labels and annotations for the PersistentVolumeClaim, then click Create.

    • Click Add to set multiple labels or annotations.

    • Click trash-light on the right side of a created label or annotation to delete it.

    Once created, the PersistentVolumeClaim will appear in the PersistentVolumeClaim list.