Create Share in pool From FreeNas

    • OMV 2.x
    • Resolved

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

    • Create Share in pool From FreeNas

      Hello,

      I have imported a freenas pool and now, I want to create a NFS share.
      I have created a share (NFSShare) that is in Main (it is the name of my ZFS Pool) in the directory NFS).
      After that, I create a NFS Share and I select the share NFSShare.
      After that, I am told that the configuration has changed and I must click on Apply to do the changes. I do it and I have this error.


      Failed to execute command 'export LANG=C; monit -t 2>&1':
      /etc/monit/conf.d/openmediavault-filesystem.conf:12: Error: syntax error
      '"legacy"'


      Error #4000:
      exception 'OMVException' with message 'Failed to execute command 'export LANG=C; monit -t 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:12: Error: syntax error '"legacy"'' in /usr/share/openmediavault/engined/module/monit.inc:56
      Stack trace:
      #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleMonit->applyConfig()
      #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      #9 {main}

      Can you please tell me what I am missing?

      Thank you
      Marc
    • Please post the content of /etc/monit/conf.d/openmediavault-filesystem.conf
      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 remember that freenas pools are on ZFS, so perhaps the probles is how ZFS manage NFS Shares.
      OMV 4.1.11 x64 on a HP T510, 16GB CF as Boot Disk & 32GB SSD 2,5" disk for Data, 4 GB RAM, CPU VIA EDEN X2 U4200 is x64 at 1GHz

      Post: HPT510 SlimNAS ; HOWTO Install Pi-Hole ; HOWTO install MLDonkey ; HOHTO Install ZFS-Plugin ; OMV_OldGUI ; ShellinaBOX ;
      Dockers: MLDonkey ; PiHole ; weTTY
      Videos: @TechnoDadLife
    • Hello,

      Thank you for your time.
      Here is the content of the file.




      Source Code

      1. # Alert if disk space of root filesystem gets low
      2. check filesystem rootfs with path /
      3. if space usage > 80% for 5 times within 15 cycles
      4. then alert else if succeeded for 10 cycles then alert
      5. check filesystem fs_Main with path "/Main"
      6. if space usage > 80% for 5 times within 15 cycles
      7. then alert else if succeeded for 10 cycles then alert
      8. #check program mp_Main with path "/bin/mountpoint -q '/Main'"
      9. # if status == 1 then alert
      10. check filesystem fslegacy with path "legacy"
      11. if space usage > 80% for 5 times within 15 cycles
      12. then alert else if succeeded for 10 cycles then alert
      13. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      14. # if status == 1 then alert
      15. check filesystem fslegacy with path "legacy"
      16. if space usage > 80% for 5 times within 15 cycles
      17. then alert else if succeeded for 10 cycles then alert
      18. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      19. # if status == 1 then alert
      20. check filesystem fslegacy with path "legacy"
      21. if space usage > 80% for 5 times within 15 cycles
      22. then alert else if succeeded for 10 cycles then alert
      23. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      24. # if status == 1 then alert
      25. check filesystem fslegacy with path "legacy"
      26. if space usage > 80% for 5 times within 15 cycles
      27. then alert else if succeeded for 10 cycles then alert
      28. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      29. # if status == 1 then alert
      30. check filesystem fslegacy with path "legacy"
      31. if space usage > 80% for 5 times within 15 cycles
      32. then alert else if succeeded for 10 cycles then alert
      33. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      34. # if status == 1 then alert
      35. check filesystem fslegacy with path "legacy"
      36. if space usage > 80% for 5 times within 15 cycles
      37. then alert else if succeeded for 10 cycles then alert
      38. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      39. # if status == 1 then alert
      40. check filesystem fslegacy with path "legacy"
      41. if space usage > 80% for 5 times within 15 cycles
      42. then alert else if succeeded for 10 cycles then alert
      43. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      44. # if status == 1 then alert
      45. check filesystem fslegacy with path "legacy"
      46. if space usage > 80% for 5 times within 15 cycles
      47. then alert else if succeeded for 10 cycles then alert
      48. #check program mplegacy with path "/bin/mountpoint -q 'legacy'"
      49. # if status == 1 then alert
      50. check filesystem fs_Main_NFS with path "/Main/NFS"
      51. if space usage > 80% for 5 times within 15 cycles
      52. then alert else if succeeded for 10 cycles then alert
      53. #check program mp_Main_NFS with path "/bin/mountpoint -q '/Main/NFS'"
      54. # if status == 1 then alert
      55. check filesystem fs_Main_Sys with path "/Main/Sys"
      56. if space usage > 80% for 5 times within 15 cycles
      57. then alert else if succeeded for 10 cycles then alert
      58. #check program mp_Main_Sys with path "/bin/mountpoint -q '/Main/Sys'"
      59. # if status == 1 then alert
      60. check filesystem fs_Main_jails with path "/Main/jails"
      61. if space usage > 80% for 5 times within 15 cycles
      62. then alert else if succeeded for 10 cycles then alert
      63. #check program mp_Main_jails with path "/bin/mountpoint -q '/Main/jails'"
      64. # if status == 1 then alert
      Display All

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

    • The problem is the following line in /etc/monit/conf.d/openmediavault-filesystem.conf:

      Source Code

      1. check filesystem fslegacy with path "legacy"


      This is explicit mentioned in the error message:

      Source Code

      1. Failed to execute command 'export LANG=C; monit -t 2>&1': /etc/monit/conf.d/openmediavault-filesystem.conf:12: Error: syntax error'"legacy"'


      Maybe a problem of the ZFS or another plugin.
      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
    • Is that legacy suppose to be a dataset/fs within the pool Main?

      We can ask @nicjo814 because of legacy should be passing as /Main/legacy if is like I mentioned.
      for the moment you can disable file system monitoring in the notification section.
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • All my entries look like this:

      Source Code

      1. ​check filesystem fs_media_tank with path "/media/tank"
      2. if space usage > 80% for 5 times within 15 cycles
      3. then alert else if succeeded for 10 cycles then alert
      4. #check program mp_media_tank with path "/bin/mountpoint -q '/media/tank'"
      5. # if status == 1 then alert
      6. check filesystem fs_media_tank_home with path "/media/tank/home"
      7. if space usage > 80% for 5 times within 15 cycles
      8. then alert else if succeeded for 10 cycles then alert
      9. #check program mp_media_tank_home with path "/bin/mountpoint -q '/media/tank/home'"
      10. # if status == 1 then alert
      Display All


      Have you enabled legacy mounting for some datasets/filesystems?
    • Hello,

      There is no legacy share in my dataset.
      I have never enabled anything with legacy anywhere. I have made the installation, imported the pool and created a NFS share. (I don't remember seeing anything with legacy in the parameters).

      Thank you
      Marc

      EDIT : After disabling the notification, and after creating the NFS share, I have the following error


      Failed to mount 'Main/.system': mount: can't find legacy in /etc/fstab or /etc/mtab

      Error #6000:
      exception 'OMVException' with message 'Failed to mount 'Main/.system': mount: can't find legacy in /etc/fstab or /etc/mtab' in /usr/share/openmediavault/engined/module/fstab.inc:90
      Stack trace:
      #0 /usr/share/openmediavault/engined/rpc/config.inc(206): OMVModuleFsTab->startService()
      #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      #9 {main}





      EDIT2 : I have removed the .system share (in Freenas, I have moved it to another pool). After that, it still didn't work (after importing the pool, the NFS share wasn't working with the same error), so I have reinstalled OpenMediavault (restored an old snapshot) and imported the pool again. After that the problem has disapeared. So when there is a .system in a pool, there are problems with ZFS. I guess the legacy was because of the .system.

      Marc


      The post was edited 2 times, last by marc_al ().