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...

已提问 2 年前217 查看次数
1 回答
0
已接受的回答

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
已回答 2 年前
  • 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.

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则