You can manage PersistentVolumeClaims (PVCs) with ease in the LDC Hybrid Cloud (LHC) console, for example, creating or deleting a PVC.
Create a PVC
Log on to the LHC console and choose Manage Clusters > Cluster Details in the left-side navigation pane to go to the Clusters page.
Click the name of the target cluster to go to the Cluster Details page and click the Storage tab.
In the left-side menu, click PVC, and then click Create PVC.
In the input box that appears, enter the YAML content, and then click Submit.
Example:
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: test-pvc namespace: default spec: accessModes: - ReadWriteOnce resources: requests: storage: 25Gi storageClassName: csi-disk-efficiency # The name of the corresponding storage class.ImportantFor a storage class whose disk type is set to cloud_efficiency or cloud_ssd, the minimum storage space is 20 GiB. If the storage space size specified in the PVC is less than 20 GiB, a PV cannot be created and the PVC stays in pending state.
After you click Submit, you can view the creation status by checking the status field in the YAML file. After the PVC is created, the corresponding PersistentVolume (PV) appears on the PV page.
Update a PVC
Log on to the LHC console and choose Manage Clusters > Cluster Details in the left-side navigation pane to go to the Clusters page.
Click the name of the target cluster to go to the Cluster Details page and click the Storage tab.
In the left-side menu, click PVC, and then click View/Edit in the Actions column of the target PVC.
Modify the information in the YAML edit box, and then click Submit.
After the YAML file is updated, the system automatically updates the PVC based on the updated YAML file.
Delete a PVC
Log on to the LHC console and choose Manage Clusters > Cluster Details in the left-side navigation pane to go to the Clusters page.
Click the name of the target cluster to go to the Cluster Details page and click the Storage tab.
In the left-side menu, click PVC.
In the Actions column of the target PVC, choose More > Delete.
In the dialog box that appears, click OK.