Amazon EFS
Amazon Elastic File System
Mount
Mount
mount -t efs -o tls fs-my:/ /mymnt
This format is referred to as the EFS mount helper.If you get this error...unknown filesystem type 'efs'Then use this to install the EFS mount helper...sudo yum install -y amazon-efs-utilsSee later on this page for example output
mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-my.efs.eu-west-2.amazonaws.com:/ /mymnt
This is the standard NFS client command.You can also use the IP address instead of the DNS name (but note that this will make the connection AZ specific).Unmount
Unmount
unmount /mymnt
amazon-efs-utils
amazon-efs-utils
Example installation output...
sudo yum install -y amazon-efs-utils
Loaded plugins: extras_suggestions, langpacks, priorities, update-motdamzn2-core | 3.6 kB 00:00:00amzn2extra-docker | 2.9 kB 00:00:00amzn2extra-kernel-5.10 | 3.0 kB 00:00:00amzn2extra-postgresql12 | 2.9 kB 00:00:00Resolving Dependencies--> Running transaction check---> Package amazon-efs-utils.noarch 0:1.35.0-1.amzn2 will be installed--> Processing Dependency: stunnel5 for package: amazon-efs-utils-1.35.0-1.amzn2.noarch--> Running transaction check---> Package stunnel5.x86_64 0:5.58-1.amzn2.0.1 will be installed--> Finished Dependency Resolution
Dependencies Resolved
============================================================================================================================================================================ Package Arch Version Repository Size============================================================================================================================================================================Installing: amazon-efs-utils noarch 1.35.0-1.amzn2 amzn2-core 57 kInstalling for dependencies: stunnel5 x86_64 5.58-1.amzn2.0.1 amzn2-core 165 k
Transaction Summary============================================================================================================================================================================Install 1 Package (+1 Dependent package)
Total download size: 221 kInstalled size: 527 kDownloading packages:(1/2): amazon-efs-utils-1.35.0-1.amzn2.noarch.rpm | 57 kB 00:00:00(2/2): stunnel5-5.58-1.amzn2.0.1.x86_64.rpm | 165 kB 00:00:00----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 1.5 MB/s | 221 kB 00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : stunnel5-5.58-1.amzn2.0.1.x86_64 1/2 Installing : amazon-efs-utils-1.35.0-1.amzn2.noarch 2/2 Verifying : amazon-efs-utils-1.35.0-1.amzn2.noarch 1/2 Verifying : stunnel5-5.58-1.amzn2.0.1.x86_64 2/2
Installed: amazon-efs-utils.noarch 0:1.35.0-1.amzn2
Dependency Installed: stunnel5.x86_64 0:5.58-1.amzn2.0.1
Complete!
Dependencies Resolved
============================================================================================================================================================================ Package Arch Version Repository Size============================================================================================================================================================================Installing: amazon-efs-utils noarch 1.35.0-1.amzn2 amzn2-core 57 kInstalling for dependencies: stunnel5 x86_64 5.58-1.amzn2.0.1 amzn2-core 165 k
Transaction Summary============================================================================================================================================================================Install 1 Package (+1 Dependent package)
Total download size: 221 kInstalled size: 527 kDownloading packages:(1/2): amazon-efs-utils-1.35.0-1.amzn2.noarch.rpm | 57 kB 00:00:00(2/2): stunnel5-5.58-1.amzn2.0.1.x86_64.rpm | 165 kB 00:00:00----------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 1.5 MB/s | 221 kB 00:00:00Running transaction checkRunning transaction testTransaction test succeededRunning transaction Installing : stunnel5-5.58-1.amzn2.0.1.x86_64 1/2 Installing : amazon-efs-utils-1.35.0-1.amzn2.noarch 2/2 Verifying : amazon-efs-utils-1.35.0-1.amzn2.noarch 1/2 Verifying : stunnel5-5.58-1.amzn2.0.1.x86_64 2/2
Installed: amazon-efs-utils.noarch 0:1.35.0-1.amzn2
Dependency Installed: stunnel5.x86_64 0:5.58-1.amzn2.0.1
Complete!
Bibliography
Bibliography