I have an AWS EFS that I want my Centos 7 server to mount on boot. The line from /etc/fstab
that is meant to accomplish this is:
xxxxxxx.efs.us-east-1.amazonaws.com:/ /mnt/EFS nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,_netdev 0 0
When I log on to the server after a reboot the file system is not mounted; however, if I do mount -a
the share will mount without errors. Looking at the log it appears that there is an ordering cycle that is removing the mount from startup. Relevant logs:
systemd[1]: Found ordering cycle on nfs-server.service/start
systemd[1]: Found dependency on www\x2ddata.mount/start
systemd[1]: Found dependency on nfs-server.service/start
systemd[1]: Breaking ordering cycle by deleting job www\x2ddata.mount/start
When I do
systemctl show -p Requires,Wants,Requisite,BindsTo,PartOf,Before,After nfs-server.service
I do see www\x2data.mount
listed; however, running the same on that service does not list any dependencies.
nfs-utils version 1.3.0-0.48.e17_4
I don't know what the next step to troubleshoot this should be, any help would be greatly appreciated.