Monday, August 2, 2021

How to mount AWS EFS Drive to Linux EC2 Instance

sudo su user1-

sudo yum install nfs-utils

mkdir -p /fileshare

chown user1:usergrp1 /fileshare

chmod ugo+rwx /fileshare

sudo vi /etc/fstab

--Get Info from Attach EFS from AWS [You need Network Access ]

fs-123456.efs.us-east-1.amazonaws.com:/ /fileshare nfs4 rw,intr,hard,_netdev,nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport

sudo mount -a

sudo reboot now


EFS is regional 


No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass