Data disks are attached to ECS servers, while data is mounted to ecs servers.

Source: Internet
Author: User

Data disks are attached to ECS servers, while data is mounted to ecs servers.

I,Format and mount a data disk

After logging on to the ECS instance (if a data disk is selected), you need to format the data disk and then mount the data disk. Here is an instance operation:

1. log on to the ECS instance and run the fdisk-l command to view the data disk. If/dev/xvdb is not found after the fdisk-l command is executed, it indicates that your instance does not have a data disk and therefore does not need to be mounted. (In the following example, there is a hard disk to be attached .)

2. Run fdisk/dev/xvdb to partition the data disk. Enter n, p, l, and press enter, wq, And the partition starts.

3. Run mkfs. ext3/dev/xvdb1 to format the new partition. The time required for formatting depends on the size of the data disk. You can also choose other file formats, such as ext14.

 

4. Run echo/dev/xvdb1/mnt ext3 defaults 0 0>/etc/fstab to write the new partition information. After that, you can run the cat/etc/fstab command.

 

5. Run mount/dev/xvdb1/mnt to mount the new partition, and then run df-h to view the partition. If the data disk information appears, it indicates that the mounting is successful. You can use the new partition.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.