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.

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠