Description: I ran into a weird issue with my VMs using NFS. Both of my VMs are using linux. The server-side is using RHEL and the client-side using CentOS 7. My host machine is running Windows 7.
My client-side VM is starting or initializing a website using nodejs. I made a folder directory where both the server-side and the client-side can share files using NFS.
Issue: When I create a file/folder from the shared directory in the client-side, the website was able to detect the change from the shared directory and post the change in the website.
However, in the server-side, when I create a file/folder in the shared directory, the change is not detected in the website. Although, The created file/folder is visible in the shared directory from the client-side.
NFS Configurations: I will paste the configurations I made for both server and client:
Server-side NFS configuration on /etc/exports:
/home/awsim2/config 192.168.56.101(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
/home/awsim2/scenarios 192.168.56.101(rw,sync,no_root_squash,no_all_squash,no_subtree_check)
#/home/awsim2/config 192.168.56.101(rw,sync,all_squash,anonuid=503,anongid=502)
#/home/awsim2/scenarios 192.168.56.101(rw,sync,all_squash,anonuid=503,anongid=502)
NOTE: I tried other methods to solve this issue...
Client-side NFS configuration on /etc/fstab:
192.168.56.102:/home/awsim2/config /var/nfs_awsim_share/ nfs rw,sync,user,auto,bg,hard,intr,nolock 0 0
192.168.56.102:/home/awsim2/scenarios /var/nfs_awsim_scenarios_share/ nfs rw,sync,user,auto,bg,hard,intr,nolock 0 0
I hope this is enough information to explain my issue.
Thank you for your time!