Error When Apply NFS Configuration

  • Hello,

    i use OMV from version 2 and it's fantastic. Recently I have encuntered a problem with the service NFS.

    I am running version 6.5.0-2 and i cannot change any NFS configuration. When i do so, the service nfs-server will not start.

    This is the error that OMV gave me:

    Then i start digging into the configuration file and found that the service nfs-mountd (/usr/sbin/rpc.mountd) is not starting. The problem seems that the arguments of rpc.mountd that OMV generate into the file /run/sysconfig/nfs-utils are not correct. This is nfs-utils

    Code
     PIPEFS_MOUNTPOINT=/run/rpc_pipefs
    RPCNFSDARGS="--no-nfs-version 2 --nfs-version --nfs-version 3 --nfs-version 4 --nfs-version 4.1 --nfs-version 4.2 8"
    RPCMOUNTDARGS="--no-nfs-version 2 --nfs-version 0 --nfs-version 3 --nfs-version 4 --manage-gids"
    STATDARGS=""
    GSSDARGS=""
    RPCSVCGSSDARGS=""
    SVCGSSDARGS=""

    The service nfs-mountd is trying to start /usr/sbin/rpc.mountd with $RPCMOUNTARGS and /usr/sbin/rpc.mountd can't recognize the option "--nfs-version 0"..

    If i remove that from the file the services are working again.


    Any advice?


    Thx

    • Official Post

    What is the output of:

    sudo cat /proc/fs/nfsd/versions

    sudo awk '{ for (i=1; i<=NF; i++) if ($i > 0) printf "%s,", $i }' /proc/fs/nfsd/versions | sed -e 's/+//g' -e 's/,$//'

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Edited once, last by ryecoaaron ().

  • votdev

    Added the Label OMV 6.x
  • votdev

    Added the Label resolved
  • Please go to the NFS settings page and re-configure the service.


    Select the required NFS versions and uncheck the Enabled checkbox. Save. Enable the checkbox again. Save. Apply the configuration.

    Cool !!


    I had the same problem, I followed your instruccions and it worked correctly.

    Now OMV is updated and running well.


    Thanks.

  • I'm having this same issue, and the below solution is not working for me. I do have one NFS share working, but I'm unable to add any more.

    Please go to the NFS settings page and re-configure the service.


    Select the required NFS versions and uncheck the Enabled checkbox. Save. Enable the checkbox again. Save. Apply the configuration.

    Here's the output of the requested info above

    Code
    root@vmnas01:~# cat /proc/fs/nfsd/versions
    +3 +4 +4.1 +4.2
    • Official Post

    I'm having this same issue, and the below solution is not working for me.

    You don't have nfs version 0 in your output. So, it is a different problem. What error are you getting? What is the output of: sudo omv-salt deploy run nfs

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Woops, my symptom is the same, but cause is probably different. Would you like me to create a new post for this?


    Here's the output in the meantime.

    • Official Post

    That looks fine. What error are you getting when adding another share? Please cut&paste the error from the bell in the top right of the omv interface.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Official Post

    I would remove quotas from the filesystems with the mounteditor plugin. Then try again. If that doesn't work, reboot and try again.


    I've created a gist for it here:

    You can attach a text file on the forum too.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I removed quotas from all mount points with the plugin and it looks like one NFS share stuck, but I'm getting the same error when I try to add another. Reboot did not make a difference.


    However, they all seem to show up in Proxmox, but one is missing from OMV...




    I put them in pastebins or gists because some people have had issue with downloading random files in my past. It's pretty habitual now.

    • Official Post

    I removed quotas from all mount points with the plugin and it looks like one NFS share stuck, but I'm getting the same error when I try to add another. Reboot did not make a difference.

    The mounteditor plugin should remove the aquota files. If it isn't able to, you should click the remove quotas button again after the reboot.

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I got the last share to stick around, but it's still behaving oddly. These are the steps I took:


    1. Created the share
    2. Rebooted
    3. Removed quotas on all mount points
    4. Applied changes
      • The error popped up at this point
    5. Reverted the changes

    After all of that the share is still there. I'm not sure why I'm having to jump through all these hoops.

    • Official Post

    Reverted the changes


    After all of that the share is still there. I'm not sure why I'm having to jump through all these hoops.

    Because you reverted the changes. Don't do that (at least while I am helping). I have no idea why you have to do this because I can't reproduce it and no one else seems to be having this issue. Do this (doesn't matter if you have already done it - please do it again since I don't know what condition reverting has put your system):


    delete your nfs shares (don't apply since we know it will fail)

    Click remove quota options for your filesystems

    reboot

    Click remove quota options for your filesystems

    reboot

    sudo omv-salt deploy run nfs

    create an nfs share

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The hoops I was referring to have nothing to do with your support, for that I am immensely appreciative, I was referring to the steps I had to take to get the share to remain displayed in the list. Sorry if there was any confusion.


    I followed your steps and got the error again.

    • Official Post

    I was referring to the steps I had to take to get the share to remain displayed in the list.

    They aren't typical.

    I followed your steps and got the error again.

    At which step? What is the error? The same error trying to delete the aquota files? If yes, what is the output of:


    find /srv/dev-* -maxdepth 1 -name "aquota*" -ls

    omv 8.1.1-1 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.7 | compose 8.1.5 | cterm 8.0 | borgbackup 8.1.7 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • It doesn't actually seem like mounteditor is deleting the quota files. I did ls -la /srv/dev-disk-by-uuid-1f791413-f69b-4b93-9e49-12802fa61dcd/ before and after using mounteditor to delete quota files and this was the output both before and after.


    Code
    root@vmnas01:~# ls -la /srv/dev-disk-by-uuid-1f791413-f69b-4b93-9e49-12802fa61dcd/
    total 3617760
    drwxr-xr-x  4 root root        4096 May  8 04:06 .
    drwxr-xr-x 19 root root        4096 Apr 30 20:02 ..
    -rw-------  1 root root        7168 Feb  6 18:28 aquota.group
    -rw-------  1 root root        7168 Feb  6 18:28 aquota.user
    drwxrwsr-x  7 root users       4096 Feb 20 21:11 data
    drwx------  2 root root       16384 Jul 16  2020 lost+found
    -rw-------  1 root root  3704534563 May  8 04:05 snapraid.content


    The errors were

    Code
    [ERROR   ] retcode: 1
    [ERROR   ] {'pid': 12622, 'retcode': 1, 'stdout': '', 'stderr': "find: cannot delete '/srv/dev-disk-by-uuid-71bd77f0-1485-4b1a-b76e-92a3192acc9e/aquota.group': Operation not permitted\nfind: cannot delete '/srv/dev-disk-by-uuid-71bd77f0-1485-4b1a-b76e-92a3192acc9e/aquota.user': Operation not permitted"}
    [ERROR   ] Command 'find' failed with return code: 1
    [ERROR   ] stderr: find: cannot delete '/srv/dev-disk-by-uuid-1f791413-f69b-4b93-9e49-12802fa61dcd/aquota.group': Operation not permitted
    find: cannot delete '/srv/dev-disk-by-uuid-1f791413-f69b-4b93-9e49-12802fa61dcd/aquota.user': Operation not permitted

    Here's the output you requested

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!