0
Uncategorized

In Linux machine

1) Go to SG and allows access to the mount target on the NFS port

2) Go to console and select EFS and click on Create File System

3) Add tag, give the name

4) Review setting and click on Create File System

5) Note the File System ID and DNS name

6) Go to putty connect to the Linux machine

7) Go to EFS and Click on Amazon EC2 Mount Instruction and copy the commands
For Amazon Linux EC2
sudo yum install -y amazon-efs-utils

For Red Had Enterprise Linux or SUSE Linux
sudo yum install -y nfs-utils

For Ubuntu
sudo apt-get install nfs-common

8) Mounting file system

Create a new directory on EC2 instance like efs
sudo mkdir efs
sudo mount -t nfs4
and all other command you will be able to get from the mount instruction

9) Check the EFS is mounted or not
df -h

sudo yum install -y amazon-efs-utils
sudo mkdir efs
sudo mount -t nfs4
sudo mount -t efs fs-12345678:/ efs

sudo mount -t efs -o tls fs-66e6f11e:/ efs
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-66e6f11e.efs.us-east-2.amazonaws.com:/ efs

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts