Discussion:
NFS to FreeNAS
(too old to reply)
Robert Fitzpatrick via freebsd-questions
2018-06-15 19:24:35 UTC
Permalink
I have a couple of FreeBSD 10.4 servers that have been backing up to an
NFS share connected to a Linux backup server. Now I have a FreeNAS
server on the network and want to switch backup to it, but get the
following error when trying to mount:

[tcp] data1:/mnt/DATA/backups/mx: Permission denied

The fstab for both looks like this, the first works to the Linux box but
the error when trying data1, the FreeNAS server:

backup1:/data/backup/webtent /nfs/backup nfs rw 0 0
data1:/mnt/DATA/backups/mx /nfs/backup2 nfs rw 0 0

This is the directory for both mounts:

***@mx1:~ # ls -lah /nfs
total 20
drwxr-xr-x 5 root wheel 512B Jun 15 15:17 .
drwxr-xr-x 19 root wheel 1.0K Apr 11 02:07 ..
drwxr-xr-x 2 root wheel 512B Aug 17 2014 backup
drwxr-xr-x 2 root wheel 512B Jun 15 15:17 backup2

Also, the Linux backup server is on same network and *can* mount the
same NFS share on the FreeNAS server without issue. What am I missing?
--
Robert
Josh Paetzel
2018-06-15 22:27:06 UTC
Permalink
Post by Robert Fitzpatrick via freebsd-questions
I have a couple of FreeBSD 10.4 servers that have been backing up to an
NFS share connected to a Linux backup server. Now I have a FreeNAS
server on the network and want to switch backup to it, but get the
[tcp] data1:/mnt/DATA/backups/mx: Permission denied
The fstab for both looks like this, the first works to the Linux box but
backup1:/data/backup/webtent /nfs/backup nfs rw 0 0
data1:/mnt/DATA/backups/mx /nfs/backup2 nfs rw 0 0
total 20
drwxr-xr-x 5 root wheel 512B Jun 15 15:17 .
drwxr-xr-x 19 root wheel 1.0K Apr 11 02:07 ..
drwxr-xr-x 2 root wheel 512B Aug 17 2014 backup
drwxr-xr-x 2 root wheel 512B Jun 15 15:17 backup2
Also, the Linux backup server is on same network and *can* mount the
same NFS share on the FreeNAS server without issue. What am I missing?
--
Robert
Take a look at /var/log/messages on the FreeNAS box for errors when you mount, also paste the output of showmount -e and cat /etc/exports from the FreeNAS system.
--
Thanks,

Josh Paetzel
Robert Fitzpatrick via freebsd-questions
2018-06-16 16:02:51 UTC
Permalink
Post by Josh Paetzel
Take a look at /var/log/messages on the FreeNAS box for errors when you mount, also paste the output of showmount -e and cat /etc/exports from the FreeNAS system.
Thank you! Yes, I could see the connection being denied by FreeNAS in
the console. Once I realized with showmount, got it working. Failed to
mention my mx sub dir of backups is a dataset of its own. I was thinking
the alldirs in the exports would allow it, perhaps because mx being a
separate dataset in FreeNAS? Once I added mx as own share, works!
--
Robert
Josh Paetzel
2018-06-16 17:10:31 UTC
Permalink
Post by Josh Paetzel
Take a look at /var/log/messages on the FreeNAS box for errors when you mount, also paste the output of showmount -e and cat /etc/exports from the FreeNAS system.
Thank you! Yes, I could see the connection being denied by FreeNAS in the console. Once I realized with showmount, got it working. Failed to mention my mx sub dir of backups is a dataset of its own. I was thinking the alldirs in the exports would allow it, perhaps because mx being a separate dataset in FreeNAS? Once I added mx as own share, works!
--
Robert
ZFS datasets are filesystems. So they need their own export in NFS.
Loading...