1. Now create a hard disk on the AWS website, note that the availability zone created must be in the same zone as the EC2 virtual machine, because an AZ is the equivalent of a data center, in order to ensure speed, it is impossible to put the hard disk and virtual machine in different data centers.
2. In the instance description, see if the block device has a new hard drive attached.
3. Now we go into the Ubuntu system/dev See SDA1,SDF,XVDA1,XVDF (note that the XVDF device you see here is not the same as the name of the device on the AWS website)
Df-h is to view mounted drive information
4. Next format our new HDD sudo mkfs-t EXT4/DEV/XVDF
5. Create a new mount point. sudo mkdir XVDF (note I was created and mounted under/MNT)
6. Mount. sudo mount/dev/xvdf/mnt/xvdf
Df-h to see if it's mounted
7. Permanent mount (auto mount after reboot) to edit the/etc/fstab file
Vim/etc/fstab Add a line inside
Uuid=1aa8107b-bf5f-4777-acea-e4e009cf3ac2/mnt/xvdb ext4 Defaults,discard 0 0
9. Check UUID command blkid-s UUID
AWS and Ubuntu Add new hard drive methods