A disk cannot be viewed on the server and used right away after you attach it to a server on the management console. You must initialize the disk on the server before using it.
For details, see Introduction to Data Disk Initialization Scenarios and Partition Styles.
On a Linux server, if you have not set automatic disk mounting at system start, disks cannot be viewed after a server restart, and you need to run the mount command to mount the disk. For example, run mount /dev/xvdb1 /mnt/sdc.
To set automatic disk mounting at system start, perform the following steps:
blkid Disk partition
For example, run the following command to query the UUID of /dev/xvdb1:
Information similar to the following is displayed:
[root@ecs-b656 test]# blkid /dev/xvdb1 /dev/xvdb1: UUID="1851e23f-1c57-40ab-86bb-5fc5fc606ffa" TYPE="ext4"
The UUID of /dev/xvdb1 is displayed.
UUID=1851e23f-1c57-40ab-86bb-5fc5fc606ffa /mnt/sdc ext4 defaults 0 2
The system saves the configurations and exits the vi editor.