Trouble with data synchronization and writable per-user subdirectories using EFS

0

I used this EFS walkthrough to mount my EFS and enable writable per-user subdirectories on my EC2 instance.

According to the documentation, All files and subdirectories the user creates in their home directory are then created on the Amazon EFS file system. But when I look through the user directories in /mnt, they do not all contain the files and subdirectories that are in the corresponding user home directories.

How can I ensure that what's on the EFS is the same as what's in the users' home directory? Because if I unmount and remount the EFS, I will lose data...

asked 2 years ago210 views
1 Answer
0
Accepted Answer

For each user did you first create and mount a user-specific subdirectory in the shared EFS to the users home directory? Does each user have the file system mounted, which can be seen with mount -t nfs4? If the users home directory is mounted to the EFS file system, all files created since the file system was mounted should be visible. If the file system isn't mounted for a user, their view of their home directory and the similarly named sub folder on EFS will not match.

AWS
answered 2 years ago
  • You're right, some user directories aren't showing up when I run mount -t nfs4 - I've had inconsistent results running the walkthrough's command: $ sudo mount -t nfs -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport mount-target-DNS:/mike /home/mike.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions