FreeBSD ZFS NFS share issues

Discussion in 'FreeBSD and FreeNAS' started by weust, May 12, 2018.

  1. weust

    weust Member

    Joined:
    Aug 15, 2014
    Messages:
    203
    Likes Received:
    18
    I have some issues with NFS sharing/permissions I hope somehow has a solution too.
    Been searching all over the internet, but good information is very hard to find.
    All bits and pieces, and old or plain useless.

    I've set up FreeBSD (actually HardenedBSD) as a ZFS server.
    Home use, only user, so not too fussed with locking things down too much atm.
    Created a mirrored pool and added a log and cache disk to that pool.
    Created datasets, and set 777 on the dataset directories.

    Then I shared a dataset using NFS (zfs set sharenfs="network=192.168.1.0/24" pool-mirror/data).
    In both Linux and Windows 10 (with the added NFS feature) I can create and modify files and directories, but when I try to copy a file to it, Windows throws me this error:
    Doing the same in Linux is just fine.

    I also notice that pretty much everything is very slow in Windows.
    Accessing the share, deleting a file, saving a file, creating a directory.
    It all takes 10 seconds or so before something is happening.
    Also, file transfer is capped at 60MByte/s it seems.

    Does anyone have ideas on how to get this working, or should I leave NFS alone and just stick to SMB?
     
    #1
  2. rysti32

    rysti32 New Member

    Joined:
    Apr 14, 2018
    Messages:
    9
    Likes Received:
    2
    Do you see any error messages in /var/log/messages on the NFS server at the time of the Windows error?
     
    #2
  3. weust

    weust Member

    Joined:
    Aug 15, 2014
    Messages:
    203
    Likes Received:
    18
    Haven't checked that log yet. Will do so when I've booted the system up again.
     
    #3
  4. whitey

    whitey Moderator

    Joined:
    Jun 30, 2014
    Messages:
    2,602
    Likes Received:
    805
    In general at least in my experience use SMB for Windows and NFS for Linux. Multi-protocol to same share/export makes this possible.
     
    #4
  5. weust

    weust Member

    Joined:
    Aug 15, 2014
    Messages:
    203
    Likes Received:
    18
    I thought I read somewhere that sharing a directory with NFS and SMB a the same time wasn't wise?
    Forgot why though.
     
    #5
Similar Threads: FreeBSD share
Forum Title Date
FreeBSD and FreeNAS What VM host do you use for FreeBSD guest? Dec 6, 2017
FreeBSD and FreeNAS Displayport 1.2 (MST) graphics card on FreeBSD that actually works? Nov 8, 2017
FreeBSD and FreeNAS Just upgraded to FreeBSD 11.1 Sep 9, 2017
FreeBSD and FreeNAS FreeBSD and Samba 4.6.4+, SMB3 Jun 18, 2017
FreeBSD and FreeNAS FreeBSD - ZFS - Mirrored Pool and two controllers Dec 15, 2015

Share This Page