Help Center> Cloud Container Engine> Best Practices> Storage> Expanding the Disk Capacity of a Node in a CCE Cluster

Expanding the Disk Capacity of a Node in a CCE Cluster

System Disk

  1. Expand the capacity on the EVS console. For details, see Expansion Overview.
  2. Restart the node on the ECS console.

    Log in to the management console, select the region where the ECS is located, and choose Service List > Computing > Elastic Cloud Server. In the ECS list, locate the target node, and click More > Restart in the Operation column.

Node Data Disk (Dedicated for Docker)

  1. Expand the capacity of the Docker disk on the EVS console.
  2. Log in to the target node.
  3. Run the following commands on the node to add the new disk capacity to the Docker disk:

    pvresize /dev/vdb 
    lvextend -l+100%FREE -n vgpaas/thinpool

Node Kubernetes Disk (emptyDir)

  1. Expand the capacity of the Docker disk on the EVS console.
  2. Log in to the target node.
  3. Run the following commands on the node to add the new disk capacity to the Kubernetes disk:

    pvresize /dev/vdb
    lvextend -l+100%FREE -n vgpaas/kubernetes
    resize2fs /dev/vgpaas/kubernetes

Container Disk Space (10 GB)

Log in to the node, run vi /etc/docker/daemon.json to edit the file, and change the value of dm.basesize as below.

Restart the Docker.

systemctl restart docker

After the container images on the node are deleted, they need to be downloaded again.

The container disk space is determined by the configuration when the container image is downloaded. When deleting an image, you need to clear all layers of the image for the deletion to take effect.