This section describes how to clone a PersistentVolumeClaim.

After a PersistentVolumeClaim and a PersistentVolume are created, you can create identical copies for the PersistentVolumeClaim and the PersistentVolume respectively by cloning.

Prerequisites

  • You need to join a project and have the Persistent Volume Claim Management permission in the project. For more information, see Project Members and Project Roles.

  • Ensure that the system has created a persistent volume for the persistent volume claim.

  • The cloning operation is ultimately performed by the backend storage system. Ensure that your backend storage system supports volume cloning and that the storage class associated with the Persistent Volume Claim has the volume cloning feature enabled.

Steps

  1. Log in to the KubeSphere web console with a user who has Persistent Volume Claim Management permissions and enter your workspace.

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

  3. Select a project from the drop-down list in the upper left corner of the page.

  4. In the Persistent Volume Claims list, click the name of a Persistent Volume Claim to open its details page.

  5. On the Persistent Volume Claim details page, click Operation > Clone.

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

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