How to mount AWS EFS to Macbook or local computers

15,027

For those who are curious, try

sudo mount -t nfs -o vers=4,tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 -w host_ip:/ efs

worked for me via direct connect.

Share:
15,027
anniepark90
Author by

anniepark90

Updated on July 25, 2022

Comments

  • anniepark90
    anniepark90 almost 2 years

    I am trying to mount AWS EFS to my local MacBook (also other local computers) However, it is not working.

    My port 22 and 2049 is wide open as a testing.

    I tried few command like mount -t nfs4 -o nfservers=4.1 xxx.xxx.xxx.xxx:/ efs/

    But I am keep getting a connection timed out error.

    Also I tried mounting this EFS to another AWS account EC2 instances. But keep getting same error.

    For example, I have EFS in Account1 and EC2 in Account2 (Different VPC) and trying:

    sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 xxx.xxx.xxx.xxx:/ /efs/
    

    It is not working unless I have my EC2 in the same account (which is account1).

    Is there a way I can mount this EFS in different account or local computers?

  • barakbd
    barakbd about 4 years
    I am getting No such file or directory even though I can ls and see that my local path indeed exists. Do I need to install amazon-efs-utils?
  • Logemann
    Logemann almost 4 years
    some for me. Are you on mac ? Did try while being connected via Vpn Client Endpoint