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:
    225
    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:
    10
    Likes Received:
    3
    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:
    225
    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,734
    Likes Received:
    846
    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:
    225
    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 pfSense2.4.3(FreeBSD11.1) support the intel 82599EB 10-Gigabit ? Friday at 3:50 PM
FreeBSD and FreeNAS Samba on FreeBSD: nmbd 'namequery' errors in terminal from other IPs on LAN Aug 31, 2018
FreeBSD and FreeNAS FreeBSD/pfSense guest 10GbE SR-IOV VF successes? Aug 30, 2018
FreeBSD and FreeNAS Use FreeNAS and FreeBSD service to talk to wireless sensors Jun 15, 2018
FreeBSD and FreeNAS What VM host do you use for FreeBSD guest? Dec 6, 2017

Share This Page