Bug in NFS4?

  • I have a share /tank/share/backups/proxmox named "proxmox".


    Now I tried to mount it from a client with v4.

    In the documentation:

    • Mount as NFSv3 the folder /export/Videos in /mnt/nfs:
      Code
      $ mount 172.34.3.12:/export/Videos /mnt/nfs


    The output from the client mount | grep nfs:


    Code
    192.168.178.199:/proxmox on /mnt/pve/openmediavault type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.178.188,local_lock=none,addr=192.168.178.199)


    But on my openmediavault server the data where stored in the root system under /export/proxmox and not on /tank/share/backups/proxmox

    • New
    • Official Post

    /export/proxmox is a bind mount to /tank/share/backups/proxmox. You should be able to see that in /etc/fstab.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • where is then the mistake?

    I use my proxmox to backup on the nfs share, first I tried nfs3 and then nfs4.

    With the nfs4 the proxmox only show about 200gb of disc space(I think root?!)

    The /tank/share/backups/proxmox folder there are 12TB available

    • New
    • Official Post

    where is then the mistake?

    I don't see any mistakes. OMV bind mounts the shared folders to create nfs shares. /export/proxmox is the nfs v3 path and /proxmox is nfs v4 path. Proxmox is using the v4 path correctly it seems from your output. I don't know why proxmox is reporting different free space values.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • daschmidt1994 Is that 200GB used or 200GB avail? I can assure you there's no bug. If it works as expected on a linux desktop, why not on proxmox. For example:


    On Desktop, NFS share:



    Note Free Space value.


    On OMV server:


  • I don't see any mistakes. OMV bind mounts the shared folders to create nfs shares. /export/proxmox is the nfs v3 path and /proxmox is nfs v4 path. Proxmox is using the v4 path correctly it seems from your output. I don't know why proxmox is reporting different free space values.

    in /tank/share/backups/proxmox are 2 folders and in /exports/proxmox is only 1 folder


    • New
    • Official Post

    Is the images directory a symlink or mount to another filesystem? ls -al in your previous windows would be much more helpful.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

    • New
    • Official Post

    in what windows you mean?

    In the windows where you only used ls to list what was in the bind mount and regular directory.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • In the windows where you only used ls to list what was in the bind mount and regular directory.

    Code
    root@openmediavault:/tank/share/backups/proxmox# ls -all
    insgesamt 114
    drwxrwsrwx 4 root       users  4 26. Jul 08:05 .
    drwxrwsrwx 8 root       users  8 27. Jul 21:03 ..
    drwxrwsr-x 2 backupuser users 72 14. Aug 12:04 dump
    drwxr-sr-x 2 nobody     users  2 26. Jul 08:05 images
    Code
    root@openmediavault:/export/proxmox# ls -all
    insgesamt 12
    drwxr-xr-x 3 root root 4096 14. Aug 14:49 .
    drwxr-xr-x 7 root root 4096 14. Aug 11:47 ..
    drwxr-xr-x 2 root root 4096 14. Aug 14:49 dump
    • New
    • Official Post

    Have you tried rebooting?

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

    • New
    • Official Post

    What is the output of:


    grep proxmox /proc/mounts

    sudo umount /export/proxmox

    sudo mount -a

    ls -al /export/proxmox

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • now I delete the shared folder and tried it from zero now there is the problem I think.


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; setfacl --modify group:users:--x '/tank/share/backups' 2>&1' with exit code '1': setfacl: /tank/share/backups: Operation not supported
    
    OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; setfacl --modify group:users:--x '/tank/share/backups' 2>&1' with exit code '1': setfacl: /tank/share/backups: Operation not supported in /usr/share/php/openmediavault/system/process.inc:247
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/sharemgmt.inc(452): OMV\System\Process->execute()
    #1 [internal function]: Engined\Rpc\ShareMgmt->set()
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(122): call_user_func_array()
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod()
    #4 /usr/sbin/omv-engined(544): OMV\Rpc\Rpc::call()
    #5 {main}

    if i ignore the error it works 1 and I see the correct data and available size but after reboot it's back on the root directory

    • New
    • Official Post

    Not really. Seems like things are mounting out of order but I don't use zfs. So, not the best one to figure that out.

    omv 7.4.7-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.3 | k8s 7.2.0-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


    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!

  • daschmidt1994 If the outputs shown in #10 above are meant as evidence of the problem you raise in #6, then as the creation date and other details do not match you're not comparing the directory contents at the same point in time.


    You should not be seeing the "setfacl" errors as shown in #14 above if your pool and/or filesystem datasets properties were correctly set. Did you create your zpool via the zfs plugin, or was it imported into OMV? Ensure acltype=posix and xattr=sa.


    The info you've posted does not clearly distinguish between zfs filesystem datasets and ordinary directories. Here's my example.


    OMV:




    Proxmox:




    OMV


  • Krisbee now I have changed the settings in the zfs, now there are no errors when I create a shared folder.


    Here is all that I have configured:





Participate now!

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