No NFS mount possible

  • Hi,


    today I upgraded from OMV 6 to OMV 7, without problems.

    Now my servers can't connect via NFS. with showmount --exports uranus I am able to see the shares:

    Code
    root@miranda:~# showmount --exports uranus
    Export list for uranus:
    /export/Switch    192.168.230.0/24
    /export/Software  192.168.230.0/24
    /export/Dokumente 192.168.230.0/24
    /export/Medien    192.168.230.0/24
    /export/Downloads 192.168.230.0/24
    /export/Backup    192.168.230.0/24

    BUT the specific NFS mount for that client (miranda) doesn't show up. Here is my etc/exports:

    See line #8 for the entry.


    When I try to mount I got this:

    I only enabled NFS v3 in OMV due to other problems, not related to this server.

    I ran this config for a long time in OMV 6 without issues.

    I don't know if the host itself (miranda) in OMV 6 shows up in the command showmount --exports uranus, maybe this was never the case. But it uses these host specific config when it gets mounted.


    Can you help me to get NFS working again?

  • Peronia

    Hat den Titel des Themas von „No NFS communication possible“ zu „No NFS mount possible“ geändert.
    • Neu
    • Offizieller Beitrag

    Does this work? sudo mount -t nfs uranus:/export/Downloads /mnt/downloads/

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • Usually my HDDs going into standby when no interaction happens for 10 minutes, so they were in standby. I try this command:

    Code
    root@miranda:~# mount -t nfs uranus:/export/Downloads /mnt/downloads/
    mount.nfs: Connection refused

    The HDD don't wake up (usually they should). I waked them manually and try it then again with the same result.

    I executed mount -t nfs uranus:/export/Downloads /mnt/downloads/ -v and got this:

    • Neu
    • Offizieller Beitrag

    I use nfs for everything on all of my OMV 7 servers without issue. What is the output of: sudo omv-salt deploy run nfs

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • Yeah, nice if this were in my case equal. Here are the result:

    • Neu
    • Offizieller Beitrag

    Have you tried mounting by ip address instead of hostname?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    Ok, I figured it out. When you only have nfsv2 and/or nfsv3 enabled, OMV disabled nfs via tcp. I think this is wrong since nfs v3 does support tcp - https://github.com/openmediava…avault.conf.j2#L6C9-L6C68 votdev is there a reason you disabled tcp on nfs v3?


    So, you can either mount with udp - sudo mount.nfs -o udp 192.168.1.125:/export/nfstest1 /mnt

    or enable one or more of the nfs v4 protocols which will enable tcp in the nfs-kernel-server config.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • My problem with v4 was nautilus, which neither support v4 nor auto negation of the versions. So I keep stuck with v3.

    When I try udp, I got this:

    I also allowed v4 in OMV and got this:

    Strange that the connection takes place at v3 here.

    Well, it got mounted with v3 UDP (not TCP)... I don't understand why v4 isn't used, maybe the path is not for v4? I have in mind that v4 don't need export I think.

    Code
    root@miranda:~# mount
    ...
    uranus:/export/Downloads on /mnt/downloads type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.230.18,mountvers=3,mountport=49642,mountproto=udp,local_lock=none,addr=192.168.230.18)
    • Neu
    • Offizieller Beitrag

    I don't understand why v4 isn't used, maybe the path is not for v4? I have in mind that v4 don't need export I think.

    If you want v4, mount it with just the share name: sudo mount.nfs 192.168.1.125:nfstest1 /mnt

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    Disable nfs v4 in the omv web interface and apply changes.

    Enable tcp in /etc/nfs.conf.d/99-openmediavault.conf

    Restart nfs-kernel-server with sudo systemctl restart nfs-kernel-server


    Does everything work then?

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

  • Yes, works fine. The share got mounted with v3 and UDP:

    I don't understand why TCP don't work (I'm fine using UDP, think i had used it in OMV 6 too) and why UDP only works if I enable TCP.

    • Neu
    • Offizieller Beitrag

    why UDP only works if I enable TCP.

    I can't replicate that problem.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    Do you mean you can't reproduce the problem itself or only the UDP thing?

    Just the part I quoted. I have no problem mounting via udp with udp enabled and tcp disabled.

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

    • Neu
    • Offizieller Beitrag

    I'll keep it open since your solution is only a workaround. My change will get overwritten next time.

    I would file an issue. https://github.com/openmediavault/openmediavault/issues

    omv 7.1.0-2 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.5 | scripts 7.0.7


    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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!