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

gefragt vor 2 Jahren217 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor 2 Jahren
  • 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.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen