Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

NFS to FreeNAS

1 view
Skip to first unread message

Robert Fitzpatrick via freebsd-questions

unread,
Jun 15, 2018, 3:27:54 PM6/15/18
to
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:

root@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

_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

Josh Paetzel

unread,
Jun 15, 2018, 6:30:27 PM6/15/18
to


On Fri, Jun 15, 2018, at 2:24 PM, Robert Fitzpatrick via freebsd-questions wrote:
> 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:
>
> root@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
>

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

unread,
Jun 16, 2018, 12:06:09 PM6/16/18
to
Josh Paetzel wrote:
>
> 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

unread,
Jun 16, 2018, 1:15:42 PM6/16/18
to


> On Jun 16, 2018, at 11:02 AM, Robert Fitzpatrick <rob...@webtent.org> wrote:
>
> Josh Paetzel wrote:
>>
>> 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.
0 new messages