51 votes
Accepted

Elastic file system (EFS) mount outside of AWS

Important updates: In October, 2018, AWS expanded the capabilities of the network technology underpinning EFS so that it now natively works across managed VPN connections and cross-region VPC peering, ...
Michael - sqlbot's user avatar
6 votes

any way to speed up mapped EFS share in Windows?

We had similar issues and found a solution for it. We were able to narrow the issue down to SAMBA failing to report EFS size in time. More specifically, samba fails to execute sys_get_nfs4_quota(), ...
Veddad Zahiragic's user avatar
5 votes

Inotify does not work on EFS (remote filesystem)

Unfortunately, no. inotify works by hooking into the kernels 'write' code. As remote filesystems have the ability for other things to write to them, without the kernel being aware of it, inotify ...
xrobau's user avatar
  • 163
4 votes

confirm efs is mounted on ec2

ok, i did find that when the efs is mounted correctly, you do see a response with the command for df -h like fs-xxxxxxxx.efs.us-east-1.amazonaws.com:/ 8.0E 0 8.0E 0% /data also needed to ...
user1709076's user avatar
4 votes

any way to speed up mapped EFS share in Windows?

EFS runs on a system of IO credits, these credits are generated constantly throughout the day based on the amount of space you are using in EFS. Every time you read or write to an EFS volume you ...
KHobbits's user avatar
  • 1,188
4 votes

How to mount with uid and gid using NFS?

A regular Linux NFS server would do the trick with the following combination of /etc/exportfs options: all_squash,anonuid=xxx,anongid=yyy Citing man 5 exports: all_squash - Map all uids and gids ...
kupson's user avatar
  • 3,658
4 votes

Root has no write permission to EFS volume

As of June 2020, it is not enough to look at the "Policy Settings" tab in Elastic File System > File systems > Manage file system permissions. This tab does not show the current settings. The current ...
drhagen's user avatar
  • 201
3 votes

NFS mount across EC2 instances as alternative to EFS

I would be cautious of the S3fs recommendation. S3 isn't designed to be a file system and has some limitations when an application expects it to be. S3 is eventually consistent, meaning an update may ...
Aaron Dodd's user avatar
3 votes
Accepted

confirm efs is mounted on ec2

To mount an EFS (nfs) volume on Amazon AWS do sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 volumeID.efs.zone.amazonaws.com:/ /your/mountpoint You could also ...
Federico Galli's user avatar
3 votes
Accepted

Use Amazon repo in Centos 7

"Pretty similar" in the regard that Amazon Linux 2 is based om RHEL/CentOS with the same package management system with rpm and yum commands and the same default locations for configuration files and ...
HBruijn's user avatar
  • 80.3k
3 votes
Accepted

Are there any benefits of using a dedicated NFS box on EC2 to using EFS directly?

It depends on how you set up your EC2/NFS instance - does it have Highly Available capabilities like fail over in case of node failure? Do you monitor the disk space and extend it if you're running ...
MLu's user avatar
  • 25.4k
3 votes

Why does df say my EFS disk has a capacity of 8 Exabytes?

EFS claims it can store "petabytes of data", expanding automatically. AWS has likely decided that 8 exabytes is the number they want to present to the operating system as free space. I can't ...
Tim's user avatar
  • 32.7k
2 votes

any way to speed up mapped EFS share in Windows?

I'm having similar slow access via samba share mounted on Windows. I'm getting good performance (at least fraction of a second access when navigating directories etc) on the EC2. Windows takes minutes ...
andyterry's user avatar
2 votes

Elastic file system (EFS) mount outside of AWS

As of 20 Dec 2016, Amazon announced AWS Direct Connect which can be used to mount an EFS filesystem on on-premises servers. So, basically, there is a native feature which allows you to use AWS EFS ...
Alan Kis's user avatar
  • 161
2 votes
Accepted

How to mount Amazon EFS as data volume in ECS task?

Modify the lunch configuration to restart docker service right after mounting EFS. Then only ECS will use the mounted EFS as volume. Otherwise it will use the original directory (mount will be ignored)...
sithumc's user avatar
  • 199
2 votes
Accepted

"No space left on device" reported; trying to transfer files to EFS through EC2 instance via SCP

Try to execute /tmp/mount-efs.sh script manually while connected via SSH to your instance and check if it returns any error. Most likely the issue is in this line which failed to mount /mnt/efs ...
antrost's user avatar
  • 483
2 votes

wget hangs/freezes when downloading file into NFS

I'm going to speculate that your EFS filesystem is very small. If so, you are overrunning the allowed throughput so aggressively that you are getting timeouts. Size + Performance are tightly ...
Michael - sqlbot's user avatar
2 votes

Amazon EFS as code repository for auto-scaled EC2s

Here's what I'd do: Create a "golden image" AMI that has everything place as of now. Ideally that would be set up using a combination of CloudFormation and Opsworks. Set up AWS Code Commit to store ...
Tim's user avatar
  • 32.7k
2 votes
Accepted

Tool to track folder changes recursively in ubuntu 16.04

I believe the audit daemon is what you are looking for: https://linux.die.net/man/8/auditd Once you get your rules setup aureport -m gives you reporting on modifications to whatever file or ...
frontsidebus's user avatar
2 votes
Accepted

Migrating EFS across regions

You could use EFS File Sync to mirror EFS to another region. Create new endpoints and start using it.
Tim's user avatar
  • 32.7k
2 votes

EFS 'sudo mount -t nfs4' hangs

I then open up port 1194 for incoming UDP connections on the server I want to mount EFS to. UDP port 1194 is the IANA assigned port for OpenVPN, so it's not clear how you concluded this would be ...
Michael - sqlbot's user avatar
2 votes

AWS - EFS Replication

Alternatively if you don't want to mount the new EFS on the existing server you can mount it only to the new one and copy the files over network. [root@old-instance ~] # rsync -PrvaSHz /efs new-...
MLu's user avatar
  • 25.4k
2 votes
Accepted

AWS - EFS Replication

This seems too simple... I'm not sure I've fully understood your question. Mount both EFS file systems to a single instance, likely your current instance. Use a copy command to copy the files to the ...
Tim's user avatar
  • 32.7k
2 votes

Using S3 as a alternative to EFS for backup purpose

You can mount S3 as a file system using S3fs. I'm not sure if it's production ready. A better alternative could be running backup software on your instance that does incremental backup to S3. I use ...
Tim's user avatar
  • 32.7k
2 votes

AWS - EFS Replication

As of May 2019, AWS DataSync Now Supports EFS-to-EFS Transfer. Quoting from the blog post: You can now use AWS DataSync to automatically, efficiently, and securely copy files between two Amazon ...
Yusuf's user avatar
  • 21
2 votes
Accepted

AWS Instances breeding and dying for no apparent reason

So you've got this t2.micro in an Auto Scaling Group (ASG) I assume? And this ASG is configured to scale up/down based on average CPU load? You overload it with some large ZIP file manipulation, ...
MLu's user avatar
  • 25.4k
2 votes

How to share a EFS/s3 with code in a auto scaling group?

EFS performance depends on how much data you have on the volume. The more you store the higher is the performance. That’s probably why with just 1.3GB it’s slow. You can however pay for EFS ...
MLu's user avatar
  • 25.4k
2 votes

What is the difference between "Amazon Storage Gateway" and another storages?

EBS is block, EFS is file, S3 is object. SG are fancy local caches and gateways to access the remote storage with familiar protocols. SG still requires the other storage systems. If AWS is like a ...
John Mahowald's user avatar
2 votes
Accepted

Where do I store data in AWS AutoScaling Group?

How busy is your website? For a small / medium business WordPress website served from EFS should be good enough. Start with that and see how you go. If you find it's too slow you've got a number of ...
MLu's user avatar
  • 25.4k
2 votes
Accepted

Encrypt at rest existing AWS EFS instances - is it possible?

You are correct, EFS encryption of data at rest can only be enabled when creating the EFS instance. Below is the quote (and image) from the setup workflow for EFS. Encryption of data at rest can ...
kenlukas's user avatar
  • 3,206

Only top scored, non community-wiki answers of a minimum length are eligible