How to mount EBS & EFS(disk) volumes

SUMMARIZED VERSION

Check the available volumes
>> lsblk

Check if there is a file system attached — or else you will need to (since only filesystem can be mounted)
>> file -s

If there is no file system create file system
>>sudo mkfs -t xfs

Now mount the new volume to the local /opt/jira_home directory
>> mount

NOW MAKE THE VOLUME MOUNTED EVERY TIME WHEN REBOOT (PERMANENT)

This file determines the mounting per reboot :

Copy the file just in case you mess up
>>

Find the UID of your newly attached volume
>>
Then copy the UID in a nodepad

VI into the fstab file
>>

And add this line with the actual UID in and save
>>

Now test if it is mounted correctly
>>

>>

>>
and then check the mount point if it shows /opt/jira_home

EFS MOUNTING

How to mount an EFS volume — very easy
https://docs.aws.amazon.com/efs/latest/ug/wt1-test.html

Many ways to mount 1. EFS client 2. NFS client 3. via IP
1, 2 is using DNS endpoint of EFS, 3 is using IP of EFS

MAKE SURE YOU CHANGE PERMISSIONS IN LOCAL PATH
(default will be only owner can write and use)

How to unmount