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

Partitioning a Disk

To keep collectors healthy for you to collect security data, there are some limitations and constraints.

  • Only non-administrator IAM users can be used for installing isap-agent.
  • Make sure the /opt/cloud directory where you install isap-agent and use the collector has at least 100 GB of free disk space.

When you install the isap-agent in the /opt directory on an ECS, if the message shown in Figure 1 is displayed, the space of the /opt directory is insufficient.

Figure 1 Insufficient disk space error

To ensure at least 100 GB space is available in the directory where the component controller isap-agent is installed, you may need to partition the disk.

The procedure is as follows:

  1. Buy and attach a disk.

    1. Log in to the management console.
    2. Click in the upper left corner and select the region and project.
    3. In the upper left corner of the page, click and choose Compute > Elastic Cloud Server. In the ECS list, click the name of the ECS where isap-agent is installed to go to the ECS details page.
    4. Click the Disks tab. On the displayed page, click Add Disk.
    5. On the displayed page, buy a disk with Disk Specifications set to 100 GiB.

      For more details, see Purchasing an EVS Disk.

    6. After the disk is successfully attached, you can view the attached disk on the Disks tab for the ECS.

      After a data disk is attached to a server, you must log in to the server and initialize the disk before you can use the disk. For details about how to initialize a data disk, see Initializing an EVS Data Disk.

  2. Partition the disk.

    1. Log in to the node where isap-agent is installed and run the following command to check the disk usage:
      lsblk
      Figure 2 Checking the disk size on a node
    2. Run the following command to partition the disk:

      sh /opt/cloud/isap-agent/action/agent_controller_linux.sh partition

      If the following information is displayed, the disk is partitioned successfully.

      Figure 3 Disk partitions

  3. Reinstall the component controller isap-agent. For details, see Managing Nodes.