Help Center/ Cloud Container Engine/ User Guide/ Storage/ Ephemeral Volumes/ Importing an EV to a Storage Pool
Updated on 2024-11-12 GMT+08:00

Importing an EV to a Storage Pool

CCE allows you to use LVM to combine data volumes on nodes into a storage pool (VolumeGroup) and create LVs for containers to mount. Before creating a local EV, import the data disk of the node to the storage pool.

Notes and Constraints

  • Local EVs are supported only when the cluster version is v1.21.2-r0 or later and the Everest add-on version is 1.2.29 or later.
  • The first data disk (used by container runtime and the kubelet component) on a node cannot be imported as a storage pool.
  • Storage pools in striped mode do not support scale-out. After scale-out, fragmented space may be generated and the storage pool cannot be used.
  • Storage pools cannot be scaled in or deleted.
  • If disks in a storage pool on a node are deleted, the storage pool will malfunction.

Importing a Storage Pool

Imported during node creation

When creating a node, you can add a data disk to the node in Storage Settings and import the data disk to the storage pool as an EV. For details, see Creating a Node.

Figure 1 Importing as an EV

Imported manually

If no EV is imported during node creation, or the capacity of the current storage volume is insufficient, you can manually import an EV.

  1. Go to the ECS console and add a SCSI disk to the node. For details, see Adding a Disk.
  2. Log in to the CCE console and click the cluster name to access the cluster console.
  3. Choose Storage in the navigation pane. In the right pane, click the Storage Pool tab.
  4. View the node to which the disk has been added and select Import as EV. You can select a write mode during the import.

    If the manually attached disk is not displayed in the storage pool, wait for 1 minute and refresh the list.

    • Linear: A linear logical volume integrates one or more physical volumes. Data is written to the next physical volume when the previous one is used up.
    • Striped: A striped logical volume stripes data into blocks of the same size and stores them in multiple physical volumes in sequence. This allows data to be concurrently read and written. Select this option only when there are multiple volumes.

Expanding a Storage Pool

The capacity of a storage pool can be expanded in either of the following ways:

  1. Add more large-capacity disks to the pool using the preceding manual import method.
  2. Increase the size of the existing disks on the ECS console. Then, the storage pool capacity will be automatically expanded.

Either of these methods will work.