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¶
- 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. -
Select
Container Storage -> Data Volume Declaration (PVC)
in the left navigation, and find the data volume declaration bound to vmstorage. -
Click a vmstorage PVC to enter the vmstorage data volume declaration details, and confirm the storage pool bound to the PVC.
-
Select the left navigation
Container Storage -> Storage Pool (SC)
, findlocal-path
, click⋮
on the right side of the target, and selectEdit
from the pop-up menu. -
Enable
Expansion
and clickOK
.
Change the disk capacity of vmstorage¶
- 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. -
Select
Custom Resources
in the left navigation, and findvmcluster
custom resources. -
Click the vmcluster custom resource to enter the details page, switch to the
insight-system
namespace, and selectEdit YAML
from the right menu ofinsight-victoria-metrics-k8s-stack
. -
After modifying according to the legend, click
OK
. -
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). -
Open the data volume details page, and click the
Update
button in the upper right corner. -
After modifying
Capacity
, clickOK
, 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.
- 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. -
Select
Workload -> Stateful Load
in the left navigation, findvmstorage
stateful load, click⋮
on the right side of the target, and selectStatus
->Stop
->from the pop-up menu OK
. -
After logging in to the
master
node of thekpanda-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: -
Log in to the DCE 5.0 platform and enter
kpanda-global-cluster
cluster details, selectContainer Storage -> Data Volume (PV)
in the left navigation, clickClone
in the upper right corner, and modify the capacity of the data volume. -
Delete the previous data volume of vmstorage.
-
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
.