Hi,
I'm trying to share out 2 directories via NFS but am having some issues. I can share both directories individually, but not at the same time. Here's my initial /etc/exports:
Code:
/MyPool/Movies 192.168.0.21(ro,sync,no_subtree_check,fsid=2,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode 192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
/MyPool is the mount point for my mhddfs pool.
With this, I can mount /var/lib/plexmediaserver/Transcode without any issues:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
root@odroid-server:~#
But trying to mount /MyPool/Movies always fails:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/MyPool/Movies /MyPool/Movies
mount.nfs4: mounting 192.168.0.254:/MyPool/Movies failed, reason given by server: No such file or directory
root@odroid-server:~#
If I change the fsid setting for /MyPool/Movies to 0:
Code:
/MyPool/Movies 192.168.0.21(ro,sync,no_subtree_check,fsid=0,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode 192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
Then I can mount that directory correctly:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/ /MyPool/Movies
root@odroid-server:~#
But, that setting somehow screws up the export of /var/lib/plexmediaserver/Transcode:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
mount.nfs4: mounting 192.168.0.254:/var/lib/plexmediaserver/Transcode failed, reason given by server: No such file or directory
root@odroid-server:~#
Even though it's exported exactly the same.
From the first example above, if I drop the Movies sud-directory and just share the mhddfs mount point, /MyPool, that works, but I don't want to share out the rest of the pool sub-directories.
Code:
/MyPool 192.168.0.21(ro,sync,no_subtree_check,fsid=2,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode 192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/MyPool /MyPool
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
root@odroid-server:~#
Is this a bug in the NFS4 implementation or something I'm missing.
Cheers.