NFS and ZFS: Access Denied By Server

    • OMV 4.x
    • Resolved
    • NFS and ZFS: Access Denied By Server

      Resolution: Apparently NFS doesn't like the "all hosts" subnet of 0.0.0.0/0, I was able to find this out by looking at the journal of the service nfs-mountd which was complaining of "refused mount request from 192.168.1.42 for /export/movies (/export/movies): unmatched host" since it was interpreting 0.0.0.0 as an actual subnet. Silly me.

      I'm now trying to get NFS to work so that I can get Kodi working on my Nvidia Shield. I know NFS is a little wonky with ZFS and you have to mount the datasets themselves, and not the root of the pool (for example sharing /mnt/storage, won't make /mnt/storage/movies accessible). So after some momentary confusion in the NFS GUI ("select the device you want, now select the path you want", since my device is my path I figured out I had to put / for the path) I have my share exported, and it's visible, I just can't mount it on my laptop and I can't figure out why. I know the Arch wiki suggests using bind mounts for ZFS, but I never had to do that and I've always just exported the directories/datasets directly and had no issues.

      Source Code

      1. [bran@mediavault ~]$ cat /etc/exports
      2. /export/movies 0.0.0.0/0(fsid=1,rw,subtree_check,insecure,crossmnt)
      3. /export 0.0.0.0/0(ro,fsid=0,root_squash,no_subtree_check,hide)

      local mount and bind mounts

      Source Code

      1. [bran@mediavault ~]$ mount|grep movies
      2. storage/movies on /mnt/storage/movies type zfs (rw,noatime,xattr,noacl)
      3. storage/movies on /export/movies type zfs (rw,noatime,xattr,noacl,_netdev)
      4. storage/movies on /sharedfolders/movies type zfs (rw,noatime,xattr,noacl)


      The bind mount is clearly accessible on the host

      Source Code

      1. [bran@mediavault ~]$ ls /export/movies/X2\ \(2003\)/
      2. X2 (2003) Remux-2160p.mkv
      Yet it refuses to mount from my laptop for some reason

      Source Code

      1. [bran@laptop ~]$ showmount -e 192.168.1.7
      2. Export list for server:
      3. /export 0.0.0.0/0
      4. /export/movies 0.0.0.0/0
      5. [bran@laptop ~]$ sudo mount 192.168.1.7:/export/storage /mnt/movies/
      6. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      7. [bran@laptop ~]$ sudo mount 192.168.1.7:/export/storage /mnt/movies -o vers=3
      8. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      9. [bran@laptop ~]$ sudo mount 192.168.1.7:/export/storage /mnt/movies -o nfsvers=3
      10. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      11. [bran@laptop ~]$ sudo mount -o v3 192.168.1.7:/export/storage /mnt/movies
      12. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      13. [bran@laptop ~]$ sudo mount -o vers=3 192.168.1.7:/export/storage /mnt/movies
      14. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      15. [bran@laptop ~]$ sudo mount -o nfsvers=3 192.168.1.7:/export/storage /mnt/movies
      16. mount.nfs: access denied by server while mounting 192.168.1.7:/export/storage
      17. [bran@laptop ~]$ sudo mount -t nfs4 192.168.1.7:/export/storage /mnt/movies
      18. mount.nfs4: access denied by server while mounting 192.168.1.7:/export/storage
      Display All

      There are no errors in dmesg or journalctl on either my laptop or OMV so I'm at a loss currently.

      The post was edited 4 times, last by brando56894 ().

    • Users Online 1

      1 Guest