Manage persistent volumes (PVs)

Updated at:

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

  1. Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.

  2. Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.

  3. In the navigation pane on the left, select Persistent Volume (PV) and then click Persistent Volume.

  4. 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

  1. Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.

  2. Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.

  3. In the left-side menu, choose Persistent Volumes (PVs). Then, in the Actions column, click View/Edit.

  4. 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

  1. Log on to the LHC console. In the navigation pane on the left, click Cluster Management > Cluster Details.

  2. Click the name of a cluster to open its Cluster Details page. Then, click the Storage tab.

  3. In the left-side menu, choose Persistent Volumes (PVs).

  4. In the Actions column for the persistent volume that you want to delete, click the more icon and choose Delete.

  5. In the dialog box that appears, click OK.