Manage persistent volumes (PVs)
You can use the LHC console to manage persistent volumes (PVs). You can perform operations such as creating and deleting PVs.
Create a persistent volume
Prerequisites
A StorageClass has been created.
Procedure
Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.
Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.
In the navigation pane on the left, select Persistent Volume (PV) and then click Persistent Volume.
Enter the YAML content in the editor and click Submit.
Example:
apiVersion: v1 kind: PersistentVolume metadata: name: pv-nas spec: capacity: storage: 5 Gi storageClassName: nas accessModes: - ReadWriteMany
Update a persistent volume
Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.
Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.
In the left-side menu, choose Persistent Volumes (PVs). Then, in the Actions column, click View/Edit.
In the YAML editor, modify the configuration and click Submit.
The persistent volume is automatically updated based on the new YAML file.
Delete a persistent volume
Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.
Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.
In the left-side menu, choose Persistent Volumes (PVs).
In the Actions column for the persistent volume that you want to delete, click the more icon and choose Delete.
In the dialog box that appears, click OK.