All Documents
Current Document

Content is empty

If you don't find the content you expect, please try another search term


Quick Start

Last updated:2021-01-05 14:29:59

You can create Elastic Block Storage (EBS) volumes in the Kingsoft Cloud Elastic Compute (KEC) console and the EBS console. This topic describes how to create an EBS volume in the EBS console, attach it to a KEC instance, and then write data to the EBS volume through the KEC instance. For more information about how to create an EBS volume in the KEC console, see Create an instance.

  1. Register an account and create a KEC instance. For more information, see Create an instance.

  2. Log in to the EBS console.
  3. On the EBS tab that appears, click Create Cloud Disk.
  4. Specify the billing mode, data center, availability zone, EBS volume name, project, EBS volume capacity, subscription period, and number of EBS volumes. Then, click Buy Now.

    After the purchase is completed, the new EBS volume appears in the To be mounted state in the EBS volume list.

  5. On the EBS tab, find the new EBS volume and choose More > Mount in the Operation column.
  6. In the dialog box that appears, select a KEC instance and click OK.

    EBS volumes can be attached only to KEC instances in the same availability zone. The types of the KEC instances can be General Purpose N1, N2, and N3, I/O Optimized I2 and I3, Standard S3, Performance Guaranteed X2, GPU Inference Computing P3I and P3IN, and GPU General Purpose Computing P3 and P4V.

  7. Format the new EBS volume, create a file system on the EBS volume, and then write a file to it.
  • If the KEC instance runs the Linux operating system, use the following steps:

    a. Run the fdisk -l command to view the device names of EBS volumes attached to the KEC instance. Find the new EBS volume with the capacity of 20 GB. Assume that its device name is /dev/ebs.

    b. Run the mkfs.ext4 /dev/ebs command to format this EBS volume. In this example, an EXT4 file system is used.

    c. Run the following command to mount the EBS volume to the /data mount point:

    mount /dev/ebs /data

    d. Run the following commands to write the ksyun.txt file to the EBS volume:

    cd /data
    vi ksyun.txt

    In the editing mode, write "This is only a test" to the file.

    Press ESC to exit the editing mode.

    Enter :wq and press Enter to save the file.

    Run the ls command.

    The file is written to the EBS volume.

  • If the KEC instance runs the Windows operating system, use the following steps:

    a. Choose Start > Server Manager > File and Storage Services > Disks.

    b. Right-click the new EBS volume and select Bring Online.

    c. Right-click the EBS volume again and select New Volume.

    In the wizard that appears, specify the capacity of the EBS volume and click Next.

    Select a file system. If the capacity of the EBS volume exceeds 2 TB, you must select GPT partition.

    Format the partitions, click Next, and then click Create.

    d. After the partitions are formatted, the EBS volume is available.

    e. Create a file named ksyun.txt on the EBS volume.

    Write content in the file as needed and click Save.

    The file is written to the EBS volume.

On this page
Pure ModeNormal Mode

Pure Mode

Click to preview the document content in full screen