I open the NFS client module, go to the NFS Settings tab, enable NFSv4 and enter my domain name (NFSv4 Domain), open por in firewall. Then, back in the NFS shares tab, add, NFS server Host=server2, remote directory=/nfs_exports/home, mount point=/imports/nfs/home, I check the NFSv4 share option, options=defaults,soft and then hit ok. Then I hit ok and guess what: "Error. Unable to mount the NFS entries from /etc/fstab."
If I uncheck the nfsv4 share option from the nfs client module, it will work just fine, no errors at all:
server1:~ # mount -a
mount.nfs4: mounting server2:/nfs_exports/home failed, reason given by server:
No such file or directory
Then, just for testing, I tried mounting the pseudo root directory manually, and this attempt was succesfull:
server1:~ # mount -t nfs4 s2:/ /import/nfs/home/
server1:~ # mount
s2:/ on /import/nfs/home type nfs4 (rw,clientaddr=192.168.1.2,addr=192.168.1.3)
If I check the /import/nfs/home, the pseudo file system is all there, I can access the /nfs_export/home dir:
server1:~ # ls /import/nfs/home/
It will work fine also if I add the following line to /etc/fstab:
server2:/ /import/nfs/home nfs4 defaults,soft 0 0
So in summary, I can only mount server2:/. I can not mount say server2:/nfs_exports/home separately.
However, what I want to do is that, mount /nfs_exports/home to /imports/nfs/home, and a future share /nfs_exports/projects to /imports/nfs/projects, mounting the whole pseudo file system to a single directory will not work for me.
Do you guys know if this is possible? If it is, would you help me? I tried to include all relevant information, if you'd like me to send you anything else just let me know.