https://devopscube.com/mount-ebs-volume-ec2-instance/
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html
- lsblk
- lsblk -f
- df -h
- less /etc/fstab
[ec2-user@ip-10-79-196-74 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme0n1 259:0 0 150G 0 disk
├─nvme0n1p1 259:1 0 1M 0 part
└─nvme0n1p2 259:2 0 150G 0 part /
[ec2-user@ip-10-79-196-74 ~]$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
nvme0n1
├─nvme0n1p1
└─nvme0n1p2 xfs 77f1de26-38e6-4e1d-8a1e-baa1610669e6 /
[ec2-user@ip-10-79-196-74 ~]$ cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Mon Oct 28 17:51:10 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=77f1de26-38e6-4e1d-8a1e-baa1610669e6 / xfs defaults 0 0
[ec2-user@ip-10-79-196-74 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 0 16G 0% /dev/shm
tmpfs 16G 25M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/nvme0n1p2 150G 6.5G 144G 5% /
tmpfs 3.1G 0 3.1G 0% /run/user/1000
[ec2-user@ip-10-79-196-74 ~]$
No comments:
Post a Comment