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.

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ