Hello,
Being very new to FreeBSD, and moving from Linux, I am getting a bit confused as to how it is best to create a NFS share on my FreeBSD server. I am running FreeBSD 10.1 on ZFS and have created a dataset that I want to share called zroot/Media. I set a mountpoint for my dataset:
I had continuous problems mounting this share (they were erratic, and hard to pin down being new to FreeBSD and making too many changes at once before testing. Too eager.)
However, from a Linux client,
At this point, I was starting to find myself a little overwhelmed at the differing advice that I found searching via Google for information.
The above helped remove my RPC errors when performing a manual mount from a Linux client:
Coming from Linux, I thought that it may be necessary to add an /etc/exports file, but, I decided to stop and ask before everything became a huge mess.
What I would like to achieve is a NFS share of my zfsroot/Media dataset, which is picked up by Linux clients in "Browse Network" (as my FreeNAS server is) and able to mount via /etc/fstab and/or
Many thanks everyone.
[I hope that my post is not too confusing? Perhaps I should have asked earlier/documented my steps a little more clearly - being new to FreeBSD I got a little carried away!]
Being very new to FreeBSD, and moving from Linux, I am getting a bit confused as to how it is best to create a NFS share on my FreeBSD server. I am running FreeBSD 10.1 on ZFS and have created a dataset that I want to share called zroot/Media. I set a mountpoint for my dataset:
# zfs set mountpoint=/mnt/Media zroot/Media
. I have (hopefully) shared my ZFS dataset using: # zfs set sharenfs=on zroot/Media
.I had continuous problems mounting this share (they were erratic, and hard to pin down being new to FreeBSD and making too many changes at once before testing. Too eager.)
However, from a Linux client,
showmount -e 192.168.1.10
pointed me in the direction of RPC errors. To remedy this, I added the following to /etc/rc.conf of my FreeBSD server.
Code:
rpcbind_enable="YES"
nfs_server_enable="YES"
mountd_flags="-r"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
The above helped remove my RPC errors when performing a manual mount from a Linux client:
mount 192.168.1.10:/mnt/Media /mnt/Media
Coming from Linux, I thought that it may be necessary to add an /etc/exports file, but, I decided to stop and ask before everything became a huge mess.
What I would like to achieve is a NFS share of my zfsroot/Media dataset, which is picked up by Linux clients in "Browse Network" (as my FreeNAS server is) and able to mount via /etc/fstab and/or
mount 192.168.1.10:/mnt/Media /mnt/Media
on a Linux client, the former /mnt/Media being a directory on my Linux client.Many thanks everyone.
[I hope that my post is not too confusing? Perhaps I should have asked earlier/documented my steps a little more clearly - being new to FreeBSD I got a little carried away!]