Updated on 2024-11-18 GMT+08:00

(Optional) Step 3: Attach a Data Disk

This topic describes how to attach a data disk to an ECS.

You need to attach a data disk to the ECS used for the log collector to make sure there is enough space for running the log collector. Skip this step in any of the following scenarios:

  • Scenario 1: You have purchased an ECS and a data disk that meet the requirements by referring to (Optional) Step 1: Buy an ECS and the disk has been attached to the ECS.
  • Scenario 2: You already have an ECS that meets the requirements (not purchased by referring to (Optional) Step 1: Buy an ECS), and a data disk that meets the requirements and is purchased based on (Optional) Step 2: Buy a Data Disk. The data disk has been attached to the ECS during the purchase.

Procedure

  1. If you have an ECS and a data disk that meet the requirements, check whether the data disk has been attached to the ECS.

    1. Log in to the console as the IAM administrator.
    2. Click in the upper left corner of the management console, select a region or project, click in the upper left corner of the page, and choose Compute > Elastic Cloud Server.
    3. On the ECS list page, click the name of the target ECS to go to its details page.
    4. Click the Disks tab and check whether the required data disk has been attached to the ECS.
      Figure 1 Attached data disks

  2. On the Disks tab, click Attach Disk. In the displayed dialog box, select the data disk that meets the conditions and click OK.

    Figure 2 Attaching a disk