Create Persistent Volume Using Volume Snapshot
This section describes how to create a persistent volume using a volume snapshot.
After a volume snapshot is created, you can use it to create a persistent volume claim and a persistent volume.
Prerequisites
KubeSphere Storage should have been installed and enabled.
You should join a cluster or a project and have the Volume Snapshots Management permission within the cluster or the project. For more information, refer to "Cluster Roles" and "Project Roles".
Steps
Log in to the KubeSphere web console with a user who has the Volume Snapshots Management permission, and enter your cluster or project.
Click Storage > Volume Snapshots in the left navigation pane.
Click the name of a volume snapshot in the volume snapshot list to open its details page.
In the upper-left corner of the volume snapshot details page, select More > Create Volume.
On the Basic Information tab, set the basic information for the persistent volume claim, then click Next.
Parameter Description Name
The name of the persistent volume claim. The name can only contain lowercase letters, numbers, and hyphens (-), must start and end with a lowercase letter or number, and can be up to 253 characters long.
Alias
The alias of the persistent volume claim. Different persistent volume claims can have the same alias. The alias can only contain Chinese characters, letters, numbers, and hyphens (-), must not start or end with a hyphen (-), and can be up to 63 characters long.
Description
The description of the persistent volume claim. The description can contain any characters and can be up to 256 characters long.
On the Storage Settings tab, select the access mode for the backend storage region, then click Next.
Parameter Description ReadWriteOnce
Allows a single node to read data from and write data to the backend storage region.
ReadOnlyMany
Allows multiple nodes to read data from the backend storage region.
ReadWriteMany
Allows multiple nodes to read data from and write data to the backend storage region.
On the Advanced Settings tab, set the labels and annotations for the persistent volume claim, then click Create.
Click Add to set multiple labels or annotations.
Click on the right of a created label or annotation to delete it.
The system will create a persistent volume claim based on the parameters set in the above steps, and will also create a corresponding persistent volume based on the snapshot data.
Feedback
Was this page Helpful?
Receive the latest news, articles and updates from KubeSphere
Thanks for the feedback. If you have a specific question about how to use KubeSphere, ask it on Slack. Open an issue in the GitHub repo if you want to report a problem or suggest an improvement.