To increase the number of containers or images running on a node, you need to increase its disk size accordingly. You need to mount disks to nodes to provide more storage space for containers.


Your cluster version must be 1.10.4 or later.

Mount disks

You can use one of the following methods to mount disks to nodes in the cluster:
  • If no disk has been mounted to a node before, see Mount a disk to the Docker data directory.
  • If you have purchased a disk for a node and the disk is not mounted on the node, perform the following steps to mount the disk:
  • To ensure data security, we recommend that you take snapshots of volumes or back up data on the node before you perform the following operations.
  • You need to confirm whether the applications in the cluster can be scheduled to other nodes.
  • Perform the following operations during off-peak hours.
  • When you drain a node, Pods on this node will be scheduled to other nodes. Make sure that the cluster has sufficient nodes. If your cluster does not have enough nodes, we recommend that you scale out the cluster first.
To check whether a disk is mounted on a worker node, you can run the df command on the node and see whether /var/lib/docker is mounted on /dev/vdb1. If the /var/lib/docker directory is mounted, no action is required. Otherwise, perform the following steps to mount a disk to the node:Mount disks
  1. Mark the node as unschedulable.
    For more information, see Mark node as unschedulable.
  2. Drain the node.
    For more information, see Safely drain a node.
  3. Remove the node.
    This topic only describes the operations in the Container Service console.
    1. Log on to the Container Service console.
    2. In the left-side navigation pane, choose Nodes.
    3. Select the node you want to remove and click Batch Remove or choose More > Remove in the Actions column.
      Remove a node
    4. In the Remove Node dialog box that appears, click OK.
      Release ECS
      Note Do not select the Release ECS Instance check box.
  4. Add the newly removed node to the cluster.
    1. In the left-side navigation pane, choose Clusters > Clusters.
    2. Select the cluster. Choose More > Add Existing Node in the Actions column.
      Add the node
    3. Select Auto or Manual. This example selects to automatically add the node. Automatically add
    4. Select the newly removed node and click Next Step.
    5. Select Format Data Disk.
      Format the data disk
    6. Follow the instructions to perform the other operations.

After the node is added, log on to the node and run the df command to view the disks mounted on the node.

If the disk is mounted on the node, the output is as follows:Disk is mounted

You can use the preceding methods to mount disks to nodes.