Step1. Type the following command to find EBS path name
[ec2-user ~]$ lsblk
AME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
nvme1n1 259:4 0 10G 0 disk
nvme0n1 259:0 0 50G 0 disk
├─nvme0n1p3 259:3 0 49.3G 0 part /
├─nvme0n1p1 259:1 0 200M 0 part /boot/efi
└─nvme0n1p2 259:2 0 512M 0 part /boot
nvme1n1 is the EBS volume that you have attached and not shows up under
file system(df -h).
Step2. Check if path is accessible.
root@ip-172-31-30-188 bin]# sudo mkfs -t xfs /dev/nvme1n1
meta-data=/dev/nvme1n1 isize=512 agcount=4, agsize=655360 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=0, sparse=0
data = bsize=4096 blocks=2621440, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0 ftype=1
log =internal log bsize=4096 blocks=2560, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
Step3. Create a folder under root path like /apps/.
sudo mkdir apps
Step4. mount the path.
sudo mount /dev/nvme1n1 /apps
Step5. Verify using df -h command
df -h
dev/nvme1n1 10G 33M 10G 1% /apps
No comments:
Post a Comment