From NFS server (10.10.10.9) exported as below: /exports 10.0.0.0/8(ro, no_root_squash, async, fsid=0) /exports/Mount 10.10.10.10/32(rw, no_root_squash, async)
On NFS client (10.10.10.10): #mount -vvv -t nfs4 -o rw,no_root_squash,async 10.10.10.9:/ /mnt/temp #cd /mnt/temp #touch test.txt ( showing read-only file system which is fine). #cd /mnt/temp/Mount #touch test.txt ( showing read-only file system which is not ok).
Things that we need to check:
- On the NFS server after updating “/etc/export” file and running “exportfs -vra” is not enough. You also need to mount using below command
#mount --bind <actual/real folder path> <folderpath mentioned in export>
2. fsid=0 is for root mount.
An NFSv4 client now has the ability to see all of the exports served by the NFSv4 server as a single file system, called the NFSv4 pseudo-file system. On Red Hat Enterprise Linux, the pseudo-file system is identified as a single, real file system, identified at export with the