Alibaba Cloud ECS cloud server cloud disk usage

On my Aliyun console, I can see that there are additional disks (2 instances, 3 disks)

Find the corresponding cloud service instance and see the cloud disk information

 

The mount point displayed by the status is: /dev/xvdb

 

Enter the server but can't find it, and can't mount it

Execute the command: fdisk -l

You can see /dev/vdb1, exactly 20G, this is the real mount point

Then run the subsequent command:

df -h、lsblk、lsblk -f

It is confirmed that this disk does exist, and it is also partitioned as ext3, but why can't it be seen?

Run the command again: cat /etc/fstab, and find that there is no record of this disk.

This is, the reason is basically determined, the disk exists and is partitioned, but it is not mounted. Why was it mounted before but is gone now? This is because automounting is not implemented.

Execution: mount /dev/vdb1 /mnt, /mnt can be accessed, everything is there, and this disk also appeared in the pagoda

 

input the command:

echo `blkid /dev/vdb1 | awk '{print $2}' | sed 's/\"//g'` /mnt ext3 defaults 0 0 >> /etc/fstab

After the system restarts, this disk is also automatically mounted.

After asking the technical staff of Alibaba Cloud, the mount point displayed on the console is the name of the internal virtual device and cannot be used directly in the cloud server.

in conclusion:

1. After purchasing a cloud disk, it needs to be mounted. The mount point is subject to the server display and cannot be viewed on the console.

2. After the new disk is mounted, it needs to be formatted, and then "automatic mounting" must be implemented

 

 

 

 

 

Guess you like

Origin blog.csdn.net/dgnankai/article/details/131654252