tencent cloud

Feedback

Last updated: 2022-05-16 12:08:49

    What scenarios are cloud disks ideal for?

    • You can create and attach elastic cloud disks to use them as data disks when the disk space on your CVM is insufficient.
    • You can purchase and attach elastic cloud disks to use them as data disks when you purchase a CVM without additional data disks.
    • When you have 10 GB of important data stored in an elastic cloud disk on CVM A and need to share the data with CVM B. You can directly detach the disk from CVM A, and then attach it to CVM B.
    • When a single maximum-sized cloud disk cannot meet your storage requirements, you can purchase multiple cloud disks with equal capacity and configure LVM logical volumes to provide a larger disk capacity.
    • When I/O performance of a single disk cannot meet your business requirements, you can purchase multiple cloud disks and configure RAID 0, RIAD 10, etc., to enhance I/O performance.

    For more information, see Use Cases.

    How do I select a cloud disk?

    Determine your use cases before selecting a disk type.

    • For general use cases including Web/APP applications, logical processing, and small and medium-sized sites, we recommend that you select Premium Cloud Storage as a more cost-efficient solution.
    • For medium-sized databases and image processing users, we recommend SSD for a better performance.
    • For use cases with high requirements for workloads and performance, including large databases, video business, NoSQL, and Elasticsearch, we recommend that you select Enhanced SSD for optimal performance and minimum storage latency.

    What are items I should look out for when using a cloud disk?

    • For an independently purchased cloud disk, use the file system's UUID or label as the file system ID when configuring the fstab static file system information. This will ensure kernel name consistency of the disk on CVM when any cloud disk is detached and re-attached.
    • If the cloud disk expires before CVM, the cloud disk will be restricted, detached, or even repossessed within a certain period. To prevent business interruption, please note the cloud disk's expiration date and renew it promptly.
    • Consider using the nofail option when configuring fstab if detaching a cloud disk from your CVM does not severely impact your core business. This prevents the CVM from reporting an error when it restarts after the cloud disk is detached.
    • We recommend that you run san policy=OnlineAll in diskpart before using the cloud disk in Windows.
    • When detaching a cloud disk from Windows, we recommend that you first interrupt all read/write operations on the disk, and perform the offline operation.

    If a custom image and a data disk snapshot is used, how do I automatically attach the data disk when starting a new instance?

    For more information, see the "Automatic Attaching" section in Attaching Cloud Disks.

    How do I purchase a cloud disk?

    You can purchase a cloud disk by creating one via the console or an API. For more information, see Creating Cloud Disks.

    How do I view cloud disk details?

    1. Log in to the CBS console.
    2. At the top of the Cloud Block Storage page, select the region where the disk you want to view resides.
    3. Locate the disk in the list, and view disk information:
      To view more information, click the ID/Name of the disk to enter the details page.

    How do I view the cloud disk usage on the console?

    Cloud Monitor will automatically be enabled once a CVM instance is created. You can view the usage of an initialized cloud disk that is attached to CVMs by following the steps below:

    1. Log in to the CVM console and access the Instances page.
    2. Select the ID/Name of the target instance to access the details page.
    3. Click on the Monitoring tab to view the instance disk usage.

    What are the most common cloud disk operations?

    For more information, see Operation Overview.

    Why can't I locate the CVM to which I want to attach a cloud disk?

    Cloud disks cannot be attached across availability zones. Ensure that the CVM instance you want to use has not been released and that it is in the same region and availability zone as your cloud disk.

    Why am I unable to view the new cloud disk capacity that I attached to a CVM instance?

    Some Linux CVMs may not recognize an elastic cloud disk. You must first enable the disk hot swapping function in the CVM. For more information, see Enabling the disk hot swapping feature.

    After manually attaching a cloud disk, you must perform subsequent operations shown below to make it usable.

    Creation mode Cloud disk capacity Subsequent Operations
    Create directly Cloud disk capacity < 2 TB Initializing cloud disks (< 2 TB)
    Cloud disk capacity ≥ 2 TB Initializing cloud disks (≥ 2 TB)
    Create from a snapshot Cloud disk capacity = Snapshot capacity
    • Attach to a Windows CVM: Log in to the instance, click Server Management > Storage > Disk Management to attach the disk with the CVM.
    • Attach to a Linux CVM: Log in to the instance, run the mount command, such as mount /dev/vdb /mnt.
    Snapshot capacity < cloud disk capacity ≤ 2 TB
    or
    2 TB < snapshot capacity < cloud disk capacity
    Snapshot capacity ≤ 2 TB < cloud disk capacity

    How do I partition and format the attached cloud disk?

    For more information, see Initializing Cloud Disks (<2 TB) or Initializing Cloud Disks (≥2 TB).

    What is the relationship between data writing and partition formatting?

    A new data disk or data disk partition must be formatted before use. The disk should also be recorded with the data structure. Formatting the disk establishes a file system on the data disk for data writing. The write-in data size varies by the file systems:

    • Quick formatting: Assign the file system only to partitions and rewrites the directory table with little use of your disk capacity.
    • Standard formatting: In addition to the quick formatting tasks, normal formatting scans the partitions sector by sector to identify and mark bad sectors, and fills empty blocks in the cloud disk, which means it essentially writes data to the entire disk. Hence, the capacity of the first snapshot approximates that of the cloud disk.

    Can the data disk capacity and the system disk capacity be aggregated?

    No. To increase the storage capacity, you need to expand data disk or system disk.

    After expanding my cloud disk, do I need to unmount existing partitions when creating a new independent partition on Linux?

    Yes. To do this, please follow the steps below:

    1. Run the following command to detach the data disk.
      umount <Mount point>
      

    If the mount point is /data, then run the following command:

    umount /data
    
    1. Unmount the file systems from all partitions on the cloud disk, and perform the subsequent operations. You can run the command again to confirm that the unmounting operation is successful.
      mount | grep '<Disk path>'
      

    If the return is null, then all file systems have been unmounted from partitions on the cloud disk.

    Can multiple CVMs access a cloud disk?

    No. You can attach up to 20 cloud disks to the same CVM, but you cannot attach one cloud disk to multiple CVMs. To share data in the disk, you can detach the data disk from the original CVM and then attach it to the new CVM.

    The cloud disks attached to the CVM is of the same size and type. How can I distinguish them?

    Check the relationship between the elastic cloud disks and the device name by running the following command:

    ls -l /dev/disk/by-id
    

    Can I change a CVM system disk from a local disk to a cloud disk?

    Yes. To do this, follow the steps below:

    Note

    Refer to Creating Custom Images and Creating Snapshots to back up data before performing operations to ensure data security.

    1. Log in to the CVM console and access the Instances page.
    2. Select More > Instance Status > Shutdown on the right side of the line where the target instance is located to shut down the instance.
    3. Select More > Resource Adjustment > Change Disk Media Type after shutting down the instance.
    4. In the pop-up window, select a target cloud disk type, check I have read and agree to Rules for Changing Disk Media Type, and click Change Now.
    5. Double-check the information, make a payment if applicable, and wait for the process to complete.
      Note

    Can I detach the data disk that purchased together with the CVM?

    Yes. You can detach the data disk and attach it to another CVM. In this case, the expiration time of the data disk and CVM may be different, which can bring in difficulties in lifecycle management. You can enable Unified Expiration Time or Auto-renewal to solve the problem.

    I purchased a cloud disk independently to the CVM. But when I terminate the CVM, the cloud disk is released as well.

    Check whether Release with instance is enabled for the cloud disk. You can disable this feature in the CBS console or by using the ModifyDiskAttributes API.

    What should I do if I lost my data after restarting my Linux instance?

    Follow the steps below if you lost all data in a directory (such as /data) after restart due to unmount data disk partitions:

    1. Run the fdisk -l command to view the unmounted partitions.
    2. Run the mount /dev/vdb /data command to mount partitions.
    3. Run the df -h command to see if they are mounted successfully.
    4. Complete your automatic mounting configurations. Then cloud disk will be automatically mounted when you start the Linux instance.

    When I unmount a cloud disk, will its data be lost?

    Data in cloud disks will not be modified during mounting or unmounting. To ensure data consistency, we strongly recommend that you follow the steps below:

    • In Linux, log in to the CVM instance and run the umount command on the cloud disk. After the command is executed, log in to the CVM console to unmount the cloud disk.
    • In Windows, stop all read and write operations on all file systems of the cloud disk before unmounting. Otherwise, the data that has not finished being read or written will be lost.

    How do I detach an elastic cloud disk?

    For more information, see Detaching Cloud Disks.

    What happens to the system after my cloud disk expires?

    The following instructions are only applicable to elastic cloud disks. The lifecyle of non-elastic cloud disks is the same as the associated CVMs. For more information, see Payment Overdue.

    • You can continue to use the pay-as-you-go cloud disk for 2 hours from the moment your account balance becomes negative. You will be billed for this period. After 2 hours, the services will be suspended and cloud disk will only store data. Until data is completely deleted, you will still be billed according to the billing standard even if the account balance is negative.
    • If your Tencent Cloud account is topped up to a positive balance within 15 days after the cloud disk has its services suspended, the disk can be restored.
    • If the account balance remains negative for more than 15 days after the cloud disk services are suspended, the pay-as-you-go disk will be repossessed. All data will be erased and cannot be recovered. When your cloud disk is repossessed, the Tencent Cloud account creator and all collaborators will receive a notification via email, SMS, and the console Message Center.

    Please call 4009100100 if you need further information.

    Can I change the cloud disk type after a successful purchase?

    No. However, you can create a snapshot for data backup and then use the snapshot to create a cloud disk of your needed type.

    Can I adjust the cloud disk capacity after a successful purchase?

    Yes. Cloud disks support capacity adjustment. Cloud disk capacity can be expanded, but not reduced.

    Do I have to shut down the CVM instance before a cloud disk expansion?

    No. Please note that you need to assign the expanded capacity to an existing partition, or format it into an independent new partition. Directions on the operating system of the CVM: Extending Partitions and File Systems (Windows) or Extending Partitions and File Systems (Linux).

    What are the requirements for extending the file system?

    Only cloud disks support expansion. Local disks cannot be expanded. For more information, see Cloud Disk Expansion Scenarios.

    Note
    • We strongly recommend that you create a snapshot before expansion to ensure data security.
    • If the maximum capacity of the cloud disk cannot meet your business needs, please try building up RAID groups or building LVM logical volumes with multiple elastic cloud disks.
    • MBR partition supports disk with a maximum capacity of 2 TB. When you partition disk with a capacity greater than 2 TB, we recommend that you create and mount a new data disk and use the GPT partition format to copy data.

    How do I expand a cloud disk?

    For more information about expansion operations, see Cloud Disk Expansion Scenarios.

    Why does the capacity seem unchanged after I expanded my data disk?

    The expansion on the console only increases the storage capacity of the data disk. You also need to log in to your CVM instance and extend the partitions and file systems. For more information, see:

    Do CVMs support CPU/memory expansion?

    If the system disk of the CVM is a cloud disk, you can adjust its CPU and memory.

    What should I do if the cloud disk is partitioned in MBR format and cannot be expanded?

    MBR partition supports disk with a maximum capacity of 2 TB. When you partition disk with a capacity greater than 2 TB, we recommend that you create and mount a new data disk and use the GPT partition format to copy data.

    What should I do if a cloud disk cannot meet my business requirements even at its maximum capacity?

    We recommend you build up RAID groups or build LVM logical volumes with multiple elastic cloud disks.

    How do I build up a RAID group by using multiple elastic cloud disks?

    For more information, see Building Up RAID Groups.

    How do I build LVM logical volumes by using multiple elastic cloud disks?

    For more information, see Building LVM Logic Volumes with Multiple Elastic Cloud Disks.

    How do I export the data from a cloud disk?

    You can use FTP to upload and download data. For more information, see Building the FTP Service (Windows) and Building the FTP Service (Linux).

    What happens to the data when a CVM is terminated?

    • The lifecycle of a system disk is the same as that of the CVM. When the CVM is terminated, the data stored in the system disk will also be terminated.
    • The lifecycle of a data disk (that is, an elastic cloud disk) is independent from that of a CVM. You can decide if an elastic cloud disk and its data will be retained after a CVM expires.

    Therefore, we recommend that you use elastic cloud disks to store data that needs to be saved for a long term.

    How can cloud disks be recovered after being formatted?

    Cloud disks cannot be recovered after being formatted. We recommend that you create a snapshot before formatting.

    How do I delete a cloud disk?

    • The lifecycle of a system disk is the same as the CVM. It can only be deleted when the CVM instance is terminated.
    • The lifecycle of a data disk (that is, an elastic cloud disk) is independent from that of the CVM. It can be deleted separately. For more information, see Terminating cloud disks.

    Can my system disk be partitioned?

    No.

    How do I update the mounting information at the mount point?

    LinuxOS supports the systemd mount command which will generate a mounting configuration file on top of the existing .mount file. Mounting to the same directory /run/systemd/generator/ will be affected by this command.

    Cause

    Assume you have mounted the data disk vdb to the directory /opt/apps (run the mount -a command on the fstab file based on disk uuid). Now, you want to mount a new data disk vdc to the same directory and replace the old one. If you directly mount vdc to the directory, you will not be able to read the data.

    Solution

    1. Delete the configuration of the corresponding mount point (for example, run the rm /run/systemd/generator/opt-apps.mount command).
    2. Run the reload command (for example, use systemctl daemon-reload).
    3. Attach the data disk (for example, run the mount /dev/vdc /opt/apps command).
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support