I currently have a EFS mount to 2 linux servers. Randomly after weeks one of them would randomly get unmounted. I have been trying to do some research as to why this would happen. Are there any logs or any general issues with EFS that this could pertain to? This is the command I use to mount the EFS:
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-xxxxxxx.efs.us-west-2.amazonaws.com:/ /var/lib/emapi/static
Any help would be much appreciated.
Have you added the volume to /etc/fstab
?
Its likely being lost when the instance reboots.
See https://docs.aws.amazon.com/efs/latest/ug/mount-fs-auto-mount-onreboot.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.