I am trying to set up a media server on my local network to access from another machine running Kodi. I have successfully created a ZFS pool mounted at /storage on my FreeBSD server.
I'm trying to export my ZFS pool via NFS to my Kodi box on the local network. Here is my /etc/zfs/exports file on the server:
Kodi sees nothing under NFS. I tried mounting this on my laptop from the terminal (running Arch Linux still. might switch eventually if drivers in FreeBSD are good to go)
I run on my laptop
and I get
According to https://wiki.archlinux.org/index.php/NFS#Troubleshooting
this error occurs when you include the export root in the path of the NFS source.
Still not sure what I'm doing wrong. Yes, /storage is the root folder, but I tried substituting /movies which is at /storage/movies and I get the same error.
I ran across a suggestion to check rpcinfo.
When I run `rpcinfo kodi` (kodi is my kodi box IP in /etc/hosts) on my laptop I get
rpcinfo: can't contact rpcbind: RPC: (unknown error code)
No idea what this means.
Here is the relevant part of my rc.conf file:
I tried resetting the services and it is looking for /etc/exports not /etc/zfs/exports. I moved the file but my results have not changed.
Any help would be greatly appreciated.
Edit : It appears I'm not using nfsv4. When I try
I'm trying to export my ZFS pool via NFS to my Kodi box on the local network. Here is my /etc/zfs/exports file on the server:
Code:
/storage -alldirs -rootmap=root -network 192.168.1.*(ro,insecure,no_root_squash)
I run on my laptop
sudo mount.nfs htpc:/storage /mnt -o vers=4
and I get
Code:
mount.nfs Protocol not supported
this error occurs when you include the export root in the path of the NFS source.
Still not sure what I'm doing wrong. Yes, /storage is the root folder, but I tried substituting /movies which is at /storage/movies and I get the same error.
I ran across a suggestion to check rpcinfo.
When I run `rpcinfo kodi` (kodi is my kodi box IP in /etc/hosts) on my laptop I get
rpcinfo: can't contact rpcbind: RPC: (unknown error code)
No idea what this means.
Here is the relevant part of my rc.conf file:
Code:
nfs_server_enable="YES"
mountd_enable="YES"
mountd_flags="YES"
weak_mountd_authentication="YES"
rpcbind_enable="YES"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
Any help would be greatly appreciated.
Edit : It appears I'm not using nfsv4. When I try
sudo mount.nfs htpc:/storage /mnt -o vers=3
I get
Code:
mount.nfs: access denied by server while mounting htpc:/storage
Last edited by a moderator: