Skip to content

vmstorge disk expansion

This page describes the method of vmstorge disk expansion, Please refer to vmstorage disk capacity planning for vmstorge disk specifications.

Steps

Enable storage pool expansion

  1. Log in to the DCE 5.0 platform with the administrator privilege of the global service cluster, and enter the kpanda-global-cluster cluster details.
  2. Select Container Storage -> Data Volume Declaration (PVC) in the left navigation, and find the data volume declaration bound to vmstorage.

  3. Click a vmstorage PVC to enter the vmstorage data volume declaration details, and confirm the storage pool bound to the PVC.

  4. Select the left navigation Container Storage -> Storage Pool (SC), find local-path, click on the right side of the target, and select Edit from the pop-up menu.

  5. Enable Expansion and click OK.

Change the disk capacity of vmstorage

  1. Log in to the DCE 5.0 platform with the administrator privilege of the global service cluster, and enter the kpanda-global-cluster cluster details.
  2. Select Custom Resources in the left navigation, and find vmcluster custom resources.

  3. Click the vmcluster custom resource to enter the details page, switch to the insight-system namespace, and select Edit YAML from the right menu of insight-victoria-metrics-k8s-stack.

  4. After modifying according to the legend, click OK.

  5. Select Container Storage -> Data Volume Declaration (PVC) in the left navigation again, find the data volume declaration bound to vmstorage and confirm that the modification has taken effect. On a PVC details page, click the associated storage source (PV).

  6. Open the data volume details page, and click the Update button in the upper right corner.

  7. After modifying Capacity, click OK, and wait for a while until the expansion is successful.

Clone storage volume

If the expansion of the storage volume fails, you can refer to the following methods to clone the storage volume.

  1. Log in to the DCE 5.0 platform with the administrator privilege of the global service cluster, and enter the kpanda-global-cluster cluster details.
  2. Select Workload -> Stateful Load in the left navigation, find vmstorage stateful load, click on the right side of the target, and select Status -> Stop -> from the pop-up menu OK.

  3. After logging in to the master node of the kpanda-global-cluster cluster on the command line, run the following command to copy the vm-data directory in the vmstorage container to store the metric information locally:

    kubectl cp -n insight-system vmstorage-insight-victoria-metrics-k8s-stack-1:vm-data ./vm-data
    
  4. Log in to the DCE 5.0 platform and enter kpanda-global-cluster cluster details, select Container Storage -> Data Volume (PV) in the left navigation, click Clone in the upper right corner, and modify the capacity of the data volume.

  5. Delete the previous data volume of vmstorage.

  6. Wait for a while, after the storage volume declaration is bound to the cloned data volume, run the following command to import the data exported in step 3 into the corresponding container, and then start the previously suspended vmstorage.

    kubectl cp -n insight-system ./vm-data vmstorage-insight-victoria-metrics-k8s-stack-1:vm-data
    

Comments