solved: NFS Shares erst nach Service restart sichtbar

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • NFS Shares erst nach Service restart sichtbar

      Hy,

      ich habe seit dem Upgrad von 3.x auf 4.x massive Probleme mit NFS Shares.
      Diese werden erst nach einer Änderung in den NFS Freigaben der GUI sichtbar bzw. nutzbar.

      Nach einem reboot der OMV kein NFS Shares aktiv. SMB etc. funktioniert einwandfrei.
      Hab die Freigegebenen Verzeichnisse mehrmals gelöscht, die Rechte zurückgesetzt, Vollzugriff etc. alles ohne dauerhaften Erfolg.

      das export Verzeichnis sieht nach dem reboot so aus

      Source Code

      1. drwxr-xr-x 5 root root 28672 Mai 1 18:27 .
      2. drwxr-xr-x 27 root root 4096 Apr 22 21:04 ..
      3. drwx------ 2 root root 4096 Mai 1 13:48 Filme
      4. drwx------ 2 root root 4096 Mai 1 18:27 Serien
      5. drwx------ 2 root root 4096 Mai 1 18:06 Test



      der NFS Service zeigt folgendes

      Source Code

      1. omv:~# systemctl status nfs-kernel-server
      2. ● nfs-server.service - NFS server and services
      3. Loaded: loaded (/lib/systemd/system/nfs-server.service; enabled; vendor preset: enabled)
      4. Active: active (exited) since Tue 2018-05-01 19:02:00 CEST; 3min 41s ago
      5. Process: 841 ExecStart=/usr/sbin/rpc.nfsd $RPCNFSDARGS (code=exited, status=0/SUCCESS)
      6. Process: 825 ExecStartPre=/usr/sbin/exportfs -r (code=exited, status=0/SUCCESS)
      7. Main PID: 841 (code=exited, status=0/SUCCESS)
      8. Tasks: 0 (limit: 4915)
      9. Memory: 0B
      10. CPU: 0
      11. CGroup: /system.slice/nfs-server.service
      12. Mai 01 19:02:00 omv systemd[1]: Starting NFS server and services...
      13. Mai 01 19:02:00 omv exportfs[825]: exportfs: No host name given with /export/Filme (fsid=1,rw,subtree_check,insecure), suggest *(fsid=1,rw,subtree_check,insecure) to
      14. Mai 01 19:02:00 omv exportfs[825]: exportfs: No host name given with /export/Test (fsid=2,rw,subtree_check,insecure), suggest *(fsid=2,rw,subtree_check,insecure) to a
      15. Mai 01 19:02:00 omv exportfs[825]: exportfs: No host name given with /export/Serien (fsid=3,rw,subtree_check,insecure), suggest *(fsid=3,rw,subtree_check,insecure) to
      16. Mai 01 19:02:00 omv exportfs[825]: exportfs: No host name given with /export (ro,fsid=0,root_squash,no_subtree_check,hide), suggest *(ro,fsid=0,root_squash,no_subtree
      17. Mai 01 19:02:00 omv systemd[1]: Started NFS server and services.
      Display All

      ich hab dann mal ein neuen NFS Share hinzugefügt und dann kommt das

      Source Code

      1. omv:/export# ls -la
      2. insgesamt 1800
      3. drwxr-xr-x 6 root root 28672 Mai 1 19:08 .
      4. drwxr-xr-x 27 root root 4096 Apr 22 21:04 ..
      5. drwxrwsrwx+ 865 root users 57344 Apr 27 00:10 Filme
      6. drwxrwsrwx 2 root users 1720320 Mai 1 00:06 Musik
      7. drwxrwsrwx 59 root users 4096 Apr 16 21:52 Serien
      8. drwxrwsrw-+ 2 root users 4096 Mai 1 18:03 Test
      also so wie es auch nach einem reboot sein sollte und ich kann die Shares auch mounten jetzt. Nach einem reboot ist wieder alls wie vorher X(

      Hab jetzt keine Idee mehr nach was ich suchen soll

      Jemand eine Idee ?

      Anakim

      im Log steht dann übrigens folgendes


      Source Code

      1. May 1 19:08:27 omv systemd[1]: Stopped NFSv4 ID-name mapping service.
      2. May 1 19:08:27 omv systemd[1]: Stopped NFS Mount Daemon.
      3. May 1 19:08:27 omv monit[1040]: 'collectd' unmonitor on user request
      4. May 1 19:08:27 omv monit[1040]: Monit daemon with PID 1040 awakened
      5. May 1 19:08:27 omv monit[1040]: Awakened by User defined signal 1
      6. May 1 19:08:27 omv monit[1040]: 'collectd' unmonitor action done
      7. May 1 19:08:27 omv systemd[1]: Reloading.
      8. May 1 19:08:28 omv systemd[5373]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      9. May 1 19:08:28 omv systemd[1]: apt-daily.timer: Adding 4h 27min 8.786503s random time.
      10. May 1 19:08:28 omv systemd[1]: anacron.timer: Adding 1min 45.294880s random time.
      11. May 1 19:08:28 omv systemd[1]: Reloading.
      12. May 1 19:08:28 omv systemd[5396]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      13. May 1 19:08:28 omv systemd[1]: apt-daily.timer: Adding 4h 35min 8.807345s random time.
      14. May 1 19:08:28 omv systemd[1]: anacron.timer: Adding 1min 22.171645s random time.
      15. May 1 19:08:28 omv systemd[1]: Reloading.
      16. May 1 19:08:28 omv systemd[5412]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      17. May 1 19:08:28 omv systemd[1]: apt-daily.timer: Adding 2h 23min 46.491230s random time.
      18. May 1 19:08:28 omv systemd[1]: anacron.timer: Adding 58.325655s random time.
      19. May 1 19:08:28 omv collectd[975]: Exiting normally.
      20. May 1 19:08:28 omv systemd[1]: Stopping Statistics collection and monitoring daemon...
      21. May 1 19:08:28 omv collectd[975]: collectd: Stopping 5 read threads.
      22. May 1 19:08:28 omv collectd[975]: collectd: Stopping 5 write threads.
      23. May 1 19:08:28 omv systemd[1]: Stopped Statistics collection and monitoring daemon.
      24. May 1 19:08:30 omv systemd[1]: Reloading LSB: service and resource monitoring daemon.
      25. May 1 19:08:30 omv monit[1040]: Awakened by the SIGHUP signal#012Reinitializing Monit - Control file '/etc/monit/monitrc'
      26. May 1 19:08:30 omv monit[5731]: Reloading daemon monitor configuration: monit.
      27. May 1 19:08:30 omv systemd[1]: Reloaded LSB: service and resource monitoring daemon.
      28. May 1 19:08:30 omv systemd[1]: Reloading.
      29. May 1 19:08:30 omv systemd[5743]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      30. May 1 19:08:30 omv monit[1040]: 'omv' Monit reloaded
      31. May 1 19:08:30 omv systemd[1]: apt-daily.timer: Adding 4h 11min 4.915330s random time.
      32. May 1 19:08:30 omv systemd[1]: anacron.timer: Adding 1min 26.657813s random time.
      33. May 1 19:08:30 omv systemd[1]: Reloading.
      34. May 1 19:08:31 omv systemd[5766]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      35. May 1 19:08:31 omv systemd[1]: apt-daily.timer: Adding 49min 38.798714s random time.
      36. May 1 19:08:31 omv systemd[1]: anacron.timer: Adding 4min 37.200869s random time.
      37. May 1 19:08:31 omv systemd[1]: Reloading.
      38. May 1 19:08:31 omv systemd[5785]: /lib/systemd/system-generators/live-config-getty-generator failed with error code 2.
      39. May 1 19:08:31 omv systemd[1]: apt-daily.timer: Adding 10h 51min 40.245033s random time.
      40. May 1 19:08:31 omv systemd[1]: anacron.timer: Adding 3min 29.685850s random time.
      41. May 1 19:08:31 omv systemd[1]: Starting Preprocess NFS configuration...
      42. May 1 19:08:31 omv systemd[1]: Started Preprocess NFS configuration.
      43. May 1 19:08:31 omv systemd[1]: Starting NFS Mount Daemon...
      44. May 1 19:08:31 omv systemd[1]: Starting NFSv4 ID-name mapping service...
      45. May 1 19:08:31 omv systemd[1]: Started NFSv4 ID-name mapping service.
      46. May 1 19:08:31 omv rpc.mountd[5810]: Version 1.3.3 starting
      47. May 1 19:08:31 omv systemd[1]: Started NFS Mount Daemon.
      48. May 1 19:08:31 omv systemd[1]: Starting NFS server and services...
      49. May 1 19:08:31 omv exportfs[5811]: exportfs: No host name given with /export/Filme (fsid=1,rw,subtree_check,insecure), suggest *(fsid=1,rw,subtree_check,insecure) to avoid warning
      50. May 1 19:08:31 omv exportfs[5811]: exportfs: No host name given with /export/Test (fsid=2,rw,subtree_check,insecure), suggest *(fsid=2,rw,subtree_check,insecure) to avoid warning
      51. May 1 19:08:31 omv exportfs[5811]: exportfs: No host name given with /export/Serien (fsid=3,rw,subtree_check,insecure), suggest *(fsid=3,rw,subtree_check,insecure) to avoid warning
      52. May 1 19:08:31 omv exportfs[5811]: exportfs: No host name given with /export/Musik (fsid=4,rw,subtree_check,insecure), suggest *(fsid=4,rw,subtree_check,insecure) to avoid warning
      53. May 1 19:08:31 omv exportfs[5811]: exportfs: No host name given with /export (ro,fsid=0,root_squash,no_subtree_check,hide), suggest *(ro,fsid=0,root_squash,no_subtree_check,hide) to avoid warning
      54. May 1 19:08:31 omv nfsdcltrack[5817]: Failed to init database: -13
      55. May 1 19:08:31 omv kernel: [ 489.811405] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
      56. May 1 19:08:31 omv kernel: [ 489.811433] NFSD: starting 90-second grace period (net f0000099)
      57. May 1 19:08:31 omv systemd[1]: Started NFS server and services.
      58. May 1 19:08:31 omv systemd[1]: Reloading.
      Display All

      The post was edited 1 time, last by anakim ().

    • Please post your /etc/exports file here.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • i think it seems like ok

      Source Code

      1. # This configuration file is auto-generated.
      2. # WARNING: Do not edit this file, your changes will be lost.
      3. #
      4. # /etc/exports: the access control list for filesystems which may be exported
      5. # to NFS clients. See exports(5).
      6. /export/Filme (fsid=1,rw,subtree_check,insecure)
      7. /export/Test (fsid=2,rw,subtree_check,insecure)
      8. /export/Serien (fsid=3,rw,subtree_check,insecure)
      9. /export/Musik (fsid=4,rw,subtree_check,insecure)
      10. # NFSv4 - pseudo filesystem root
      11. /export (ro,fsid=0,root_squash,no_subtree_check,hide)
      Display All
    • No, it does not look valid. The hostnames or IPs that are allowed to access the shares are missing.
      Systemd has mentioned that in one of your first posts.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • votdev wrote:

      No, it does not look valid. The hostnames or IPs that are allowed to access the shares are missing.
      Systemd has mentioned that in one of your first posts.
      ok .. i try it with IP .. but i thought it was not important or doesn't help .. i read something else on Google Search.

      ... sorry it doesn't help. Same error

      Source Code

      1. Started Initial Check File System Quotas.
      2. Mai 02 20:18:20 omv systemd[1]: dev-disk-by\x2dlabel-DATA.device: Job dev-disk-by\x2dlabel-DATA.device/start timed out.
      3. Mai 02 20:18:20 omv systemd[1]: Timed out waiting for device dev-disk-by\x2dlabel-DATA.device.
      4. Mai 02 20:18:20 omv systemd[1]: Dependency failed for File System Check on /dev/disk/by-label/DATA.
      5. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /srv/dev-disk-by-label-DATA.
      6. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /export/Serien.
      7. Mai 02 20:18:20 omv systemd[1]: export-Serien.mount: Job export-Serien.mount/start failed with result 'dependency'.
      8. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Restricted to /sharedfolders/Restricted.
      9. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Restricted.mount: Job sharedfolders-Restricted.mount/start failed with result 'dependency'.
      10. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /export/Restricted.
      11. Mai 02 20:18:20 omv systemd[1]: export-Restricted.mount: Job export-Restricted.mount/start failed with result 'dependency'.
      12. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Backup to /sharedfolders/Backup.
      13. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Backup.mount: Job sharedfolders-Backup.mount/start failed with result 'dependency'.
      14. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Filme to /sharedfolders/Filme.
      15. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Filme.mount: Job sharedfolders-Filme.mount/start failed with result 'dependency'.
      16. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /export/Test.
      17. Mai 02 20:18:20 omv systemd[1]: export-Test.mount: Job export-Test.mount/start failed with result 'dependency'.
      18. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /export/Musik.
      19. Mai 02 20:18:20 omv systemd[1]: export-Musik.mount: Job export-Musik.mount/start failed with result 'dependency'.
      20. Mai 02 20:18:20 omv systemd[1]: Dependency failed for /export/Filme.
      21. Mai 02 20:18:20 omv systemd[1]: export-Filme.mount: Job export-Filme.mount/start failed with result 'dependency'.
      22. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Musik to /sharedfolders/Musik.
      23. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Musik.mount: Job sharedfolders-Musik.mount/start failed with result 'dependency'.
      24. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Test to /sharedfolders/Test.
      25. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Test.mount: Job sharedfolders-Test.mount/start failed with result 'dependency'.
      26. Mai 02 20:18:20 omv systemd[1]: Dependency failed for Mount shared folder Serien to /sharedfolders/Serien.
      27. Mai 02 20:18:20 omv systemd[1]: sharedfolders-Serien.mount: Job sharedfolders-Serien.mount/start failed with result 'dependency'.
      28. Mai 02 20:18:20 omv systemd[1]: srv-dev\x2ddisk\x2dby\x2dlabel\x2dDATA.mount: Job srv-dev\x2ddisk\x2dby\x2dlabel\x2dDATA.mount/start failed with result 'depende
      29. Mai 02 20:18:20 omv systemd[1]: systemd-fsck@dev-disk-by\x2dlabel-DATA.service: Job systemd-fsck@dev-disk-by\x2dlabel-DATA.service/start failed with result 'dep
      30. Mai 02 20:18:20 omv systemd[1]: dev-disk-by\x2dlabel-DATA.device: Job dev-disk-by\x2dlabel-DATA.device/start failed with result 'timeout'.
      31. Mai 02 20:18:20 omv systemd[1]: dev-disk-by\x2duuid-15f4c0c2\x2d08d3\x2d4495\x2db328\x2d78c17aa26752.device: Job dev-disk-by\x2duuid-15f4c0c2\x2d08d3\x2d4495\x ......
      Display All


      Source Code

      1. Mai 02 20:18:21 omv avahi-daemon[399]: Service "omv - NFS - Test" (/services/nfs-Test.service) successfully established.
      2. Mai 02 20:18:21 omv avahi-daemon[399]: Service "omv - NFS - Serien" (/services/nfs-Serien.service) successfully established.
      3. Mai 02 20:18:21 omv avahi-daemon[399]: Service "omv - NFS - Musik" (/services/nfs-Musik.service) successfully established.
      4. Mai 02 20:18:21 omv avahi-daemon[399]: Service "omv - NFS - Filme" (/services/nfs-Filme.service) successfully established.

      Source Code

      1. Mai 02 20:18:23 omv nfsdcltrack[875]: Failed to init database: -13
      2. Mai 02 20:18:23 omv kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
      3. Mai 02 20:18:24 omv systemd[1]: Started NFS server and services.
      4. Mai 02 20:18:24 omv systemd[1]: Reached target Remote File Systems (Pre).
      5. Mai 02 20:18:24 omv kernel: NFSD: starting 90-second grace period (net f0000099)
      6. Mai 02 20:18:24 omv systemd[1]: Reached target Remote File Systems.
      ?(
    • solved: NFS Shares erst nach Service restart sichtbar

      anakim wrote:

      my Problem solved !
      after omv Update 4.1.6 the export Directory works

      thx
      for help


      OMG .. i have the Problem again.
      After Start or reboot the NFS shares not working..

      See my first post.. directories empty:-((
      When i add or delete a new nfs share it works fine?!? I think the deamon works not correctly. OMV do something when i reconfigure nfs what the omv Start not do

      ? Someone an idea?

      Thx
    • Users Online 1

      1 Guest