Clone Persistent Volumes

This section explains how to clone a Persistent Volume.

After creating a Persistent Volume Claim and Persistent Volume, you can create identical copies by cloning them.

Prerequisites

  • You should join a cluster and have the Persistent Volume Claim Management permission within the cluster. For more information, refer to “Cluster Members” and “Cluster Roles”.

  • Ensure that the system has created a Persistent Volume for the Persistent Volume Claim.

  • Ensure that the backend storage system supports volume cloning, and the storage class corresponding to the Persistent Volume Claim has enabled volume cloning. For more information, please refer to Enable and Disable Volume Operations.

Steps

  1. Log in to the KubeSphere web console with a user who has the Persistent Volume Claim Management permission, and access your cluster.

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

  3. Click the name of a Persistent Volume Claim in the list to open its details page.

  4. In the top-left corner of the details page, select More > Clone.

  5. In the Clone Volume dialog, set the name for the new Persistent Volume Claim, and then click OK.

    The system will create identical copies for the Persistent Volume Claim and the corresponding Persistent Volume.