• Unraid (6.12.4) not supporting mounting NFS v4.x


    Balor
    • Solved Minor

    Hello,

     

    I've been trying for a while to mount a NFS drive on another server using NFS v4.2. And every time, it fallback to v4.0.
    This is really strange since the NFS server configured by Unraid has no issue talking in the v4.2 protocol.

     

    Example of mount command:

    root@Tower:~# mount -vvvv dolma:/Backs-Movies /tmp/test/
    mount.nfs: timeout set for Tue Sep 12 21:01:32 2023
    mount.nfs: trying text-based options 'vers=4.2,addr=192.168.42.12,clientaddr=192.168.42.57'
    mount.nfs: mount(2): Invalid argument
    mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.42.12,clientaddr=192.168.42.57'
    mount.nfs: mount(2): Invalid argument
    mount.nfs: trying text-based options 'vers=4,addr=192.168.42.12,clientaddr=192.168.42.57'
    dolma:/Backs-Movies on /tmp/test type nfs (rw)

    I also tried with another server that I just configured NFS on, completely clean with Raspbian Bookworms.

    root@Tower:~# mount -vvvv vpn-mgt:/srv/test /tmp/test/
    mount.nfs: timeout set for Tue Sep 12 21:14:18 2023
    mount.nfs: trying text-based options 'vers=4.2,addr=192.168.42.8,clientaddr=192.168.42.57'
    mount.nfs: mount(2): Invalid argument
    mount.nfs: trying text-based options 'vers=4,minorversion=1,addr=192.168.42.8,clientaddr=192.168.42.57'
    mount.nfs: mount(2): Invalid argument
    mount.nfs: trying text-based options 'vers=4,addr=192.168.42.8,clientaddr=192.168.42.57'
    vpn-mgt:/srv/test on /tmp/test type nfs (rw,noatime)

     

     

    It looks like an oversight in either Unraid configuration of NFS Mount or missing kernel config or some issue in slackware ? It's hard to say what's the cause, since Unraid support v4.1 and v4.2 as a Server which lead me to think its configuration issue somewhere.

     

    I've asked for support to confirm the issue before opening this ticket.

     

    • Thanks 1



    User Feedback

    Recommended Comments

    This is a UD mount that doesn't specify the NFS version.  Unraid is now set up to scan for the best protocol supported by the remote server.

    Oct 13 10:58:18 BackupServer unassigned.devices: Mounting Remote Share 'MEDIASERVER:/mnt/user/Public'...
    Oct 13 10:58:18 BackupServer unassigned.devices: Mount NFS command: /sbin/mount -t 'nfs' -o rw,soft,relatime,retrans=4,timeo=300 'MEDIASERVER:/mnt/user/Public' '/mnt/remotes/MEDIASERVER_Public'

     

    And the resultant mount:

    MEDIASERVER:/mnt/user/Public on /mnt/remotes/MEDIASERVER_Public type nfs4 (rw,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=300,retrans=4,sec=sys,clientaddr=192.168.1.4,local_lock=none,addr=192.168.1.3)

     

    • Like 1
    • Thanks 1
    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.