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.