ZFS mountpoint full of folders

    • OMV 4.x

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

    • ZFS mountpoint full of folders

      Hello,

      I'm testing OMV 4 with ZFS plugin. Yesterday I've started the updates over the WEBUI. One of these updates install a Linux kernel 4.14.

      Later on the day I've recognized that my shared folders are empty. My ZFS-Pool is online and the pool is still 3.15 TB big.
      It look like, that the shared folders are not mounted on the pool.

      I've no access to my data.

      ---
      Maybe is that the problem:

      Status failed Service mountpoint_mnt_zfs

      Date: Thu, 11 Jan 2018 16:56:45
      Action: alert
      Host: omv
      Description: status failed (1) -- /mnt/zfs is not a mountpoint

      ---

      The directory /mnt/zfs ist not empty. There are directorys of my shared folders in it. When I delete all this folders and mount the ZFS with "zfs mount -a" everything is fine.
      But after every reboot the error and the directorys are back.

      Any service creates all the shared folders in die mountpoint directory.

      I have to admit that I do not have enough Linux knowledge to come up with a solution. I do not want to damage the configuration.

      Do you have suggestions? What information do you need for an assessment.

      There is a system report attached.

      Thanks.

      Kind regards
      Oli
      Files
      • omv-report.txt

        (233.34 kB, downloaded 104 times, last: )

      The post was edited 3 times, last by Weitenbummler ().

    • ZFS mountpoint full of folders

      Which zfs version (0.6x or 0.7x) do you have in use?

      You can try to enable omv extras testing repo. @ryecoaaron manages latest zfs packages in that repo at least for the moment. Maybe this helps...

      ZFS works as expected for me with latest omv4 and the zfs packages from the omv extras testing repo. Have a look at this post:

      Is ZFS supported in Kernel 4.13?

      Greetings Hoppel
      ---------------------------------------------------------------------------------------------------------------
      frontend software - android tv | libreelec | win10 | kodi krypton
      frontend hardware - nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2 | harmony smart control
      -------------------------------------------
      backend software - debian | kernel 4.4 lts | proxmox | openmediavault | zfs raid-z2 | docker | emby | vdr | vnsi | fhem
      backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x4tb wd red | digital devices max s8
      ---------------------------------------------------------------------------------------------------------------------------------------

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

    • Good Morning,

      the Version 0.7.4 is installed. I've tryed the omv extras testing repo, but with the same effect.

      The description of the bug bugtracker.openmediavault.org/view.php?id=1851 it's completly my Problem, but the fixed coding is intalled and I use om 4.0.16 and the kernel 4.14.

      It Looks like a timing problem. A process creates the folders under /mnt/zfs before zfs can mount the pool.

      Greetings
      Oliver
    • I've installed omv 3.0.x and upgraded to 4.0.x. 3.0.x was installed from iso.

      The system over weeks like the prod system until the last update.


      cat /etc/systemd/system/sharedfolders-Backups.mount

      Source Code

      1. root@omv:~# cat /etc/systemd/system/sharedfolders-Backups.mount
      2. # This configuration file is auto-generated.
      3. [Unit]
      4. Description=Mount shared folder Backups to /sharedfolders/Backups
      5. DefaultDependencies=no
      6. After=zfs-mount.service
      7. Conflicts=umount.target
      8. RequiresMountsFor=/mnt/zfs/Backups /sharedfolders
      9. [Mount]
      10. What=/mnt/zfs/Backups
      11. Where=/sharedfolders/Backups
      12. Type=none
      13. Options=bind,nofail
      14. [Install]
      15. WantedBy=local-fs.target
      Display All

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

    • Yeah ok. The fix applied at Omv level doesn’t work very well probably.
      The fix is the line with After=zfs-mount.service

      Unfortunately there is no way to disable this /sharedfolders units.

      Do you need to reboot constantly ? If not and want to keep omv4 then avoid rebooting. Omv4 still on development, otherwise reinstall and go back to omv3. On this I am not sure if zfs will be backward compatible because maybe the version was upgraded.


      @votdev I know this fix was exclusively for zfs. But wouldn’t it be better to ship a custom target to be run at the latest in boot and make those units start in that target, instead of adding explicitly After=Zfs-mount, or maybe add the option to customize the these units with env variables.

      My guess is After= is not enough, maybe Requires= but that would make all units fail if there was no zfs
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • boot.txt is attached.

      ZFS-Pool:

      Source Code

      1. Pool status (zpool status):
      2. pool: RAID-Z1
      3. state: ONLINE
      4. status: Some supported features are not enabled on the pool. The pool can
      5. still be used, but some features are unavailable.
      6. action: Enable all features using 'zpool upgrade'. Once this is done,
      7. the pool may no longer be accessible by software that does not support
      8. the features. See zpool-features(5) for details.
      9. scan: none requested
      10. config:
      11. NAME STATE READ WRITE CKSUM
      12. RAID-Z1 ONLINE 0 0 0
      13. raidz1-0 ONLINE 0 0 0
      14. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0K71RL2 ONLINE 0 0 0
      15. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0J52TDY ONLINE 0 0 0
      16. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0J26SYC ONLINE 0 0 0
      17. errors: No known data errors
      18. Pool details (zpool get all):
      19. NAME PROPERTY VALUE SOURCE
      20. RAID-Z1 size 8.12T -
      21. RAID-Z1 capacity 61% -
      22. RAID-Z1 altroot - default
      23. RAID-Z1 health ONLINE -
      24. RAID-Z1 guid 1491085629520553140 -
      25. RAID-Z1 version - default
      26. RAID-Z1 bootfs - default
      27. RAID-Z1 delegation on default
      28. RAID-Z1 autoreplace off default
      29. RAID-Z1 cachefile none local
      30. RAID-Z1 failmode wait default
      31. RAID-Z1 listsnapshots off default
      32. RAID-Z1 autoexpand off default
      33. RAID-Z1 dedupditto 0 default
      34. RAID-Z1 dedupratio 1.00x -
      35. RAID-Z1 free 3.16T -
      36. RAID-Z1 allocated 4.97T -
      37. RAID-Z1 readonly off -
      38. RAID-Z1 ashift 0 default
      39. RAID-Z1 comment - default
      40. RAID-Z1 expandsize - -
      41. RAID-Z1 freeing 0 -
      42. RAID-Z1 fragmentation 16% -
      43. RAID-Z1 leaked 0 -
      44. RAID-Z1 multihost off default
      45. RAID-Z1 feature@async_destroy enabled local
      46. RAID-Z1 feature@empty_bpobj active local
      47. RAID-Z1 feature@lz4_compress active local
      48. RAID-Z1 feature@multi_vdev_crash_dump disabled local
      49. RAID-Z1 feature@spacemap_histogram active local
      50. RAID-Z1 feature@enabled_txg active local
      51. RAID-Z1 feature@hole_birth active local
      52. RAID-Z1 feature@extensible_dataset enabled local
      53. RAID-Z1 feature@embedded_data active local
      54. RAID-Z1 feature@bookmarks enabled local
      55. RAID-Z1 feature@filesystem_limits enabled local
      56. RAID-Z1 feature@large_blocks enabled local
      57. RAID-Z1 feature@large_dnode disabled local
      58. RAID-Z1 feature@sha512 disabled local
      59. RAID-Z1 feature@skein disabled local
      60. RAID-Z1 feature@edonr disabled local
      61. RAID-Z1 feature@userobj_accounting disabled local
      62. Pool filesystem details (zfs get all):
      63. NAME PROPERTY VALUE SOURCE
      64. RAID-Z1 type filesystem -
      65. RAID-Z1 creation Sun May 7 21:04 2017 -
      66. RAID-Z1 used 3.31T -
      67. RAID-Z1 available 1.93T -
      68. RAID-Z1 referenced 3.31T -
      69. RAID-Z1 compressratio 1.00x -
      70. RAID-Z1 mounted yes -
      71. RAID-Z1 quota none default
      72. RAID-Z1 reservation none default
      73. RAID-Z1 recordsize 128K default
      74. RAID-Z1 mountpoint /mnt/zfs local
      75. RAID-Z1 sharenfs off default
      76. RAID-Z1 checksum on default
      77. RAID-Z1 compression off default
      78. RAID-Z1 atime on default
      79. RAID-Z1 devices on default
      80. RAID-Z1 exec on default
      81. RAID-Z1 setuid on default
      82. RAID-Z1 readonly off default
      83. RAID-Z1 zoned off default
      84. RAID-Z1 snapdir hidden default
      85. RAID-Z1 aclinherit restricted default
      86. RAID-Z1 createtxg 1 -
      87. RAID-Z1 canmount on default
      88. RAID-Z1 xattr on default
      89. RAID-Z1 copies 1 default
      90. RAID-Z1 version 5 -
      91. RAID-Z1 utf8only off -
      92. RAID-Z1 normalization none -
      93. RAID-Z1 casesensitivity sensitive -
      94. RAID-Z1 vscan off default
      95. RAID-Z1 nbmand off default
      96. RAID-Z1 sharesmb off default
      97. RAID-Z1 refquota none default
      98. RAID-Z1 refreservation none default
      99. RAID-Z1 guid 4440514059132645771 -
      100. RAID-Z1 primarycache all default
      101. RAID-Z1 secondarycache all default
      102. RAID-Z1 usedbysnapshots 0B -
      103. RAID-Z1 usedbydataset 3.31T -
      104. RAID-Z1 usedbychildren 246M -
      105. RAID-Z1 usedbyrefreservation 0B -
      106. RAID-Z1 logbias latency default
      107. RAID-Z1 dedup off default
      108. RAID-Z1 mlslabel none default
      109. RAID-Z1 sync standard default
      110. RAID-Z1 dnodesize legacy default
      111. RAID-Z1 refcompressratio 1.00x -
      112. RAID-Z1 written 3.31T -
      113. RAID-Z1 logicalused 3.31T -
      114. RAID-Z1 logicalreferenced 3.31T -
      115. RAID-Z1 volmode default default
      116. RAID-Z1 filesystem_limit none default
      117. RAID-Z1 snapshot_limit none default
      118. RAID-Z1 filesystem_count none default
      119. RAID-Z1 snapshot_count none default
      120. RAID-Z1 snapdev hidden default
      121. RAID-Z1 acltype posixacl local
      122. RAID-Z1 context none default
      123. RAID-Z1 fscontext none default
      124. RAID-Z1 defcontext none default
      125. RAID-Z1 rootcontext none default
      126. RAID-Z1 relatime off default
      127. RAID-Z1 redundant_metadata all default
      128. RAID-Z1 overlay off default
      Display All
      Files
      • boot.txt

        (262.84 kB, downloaded 52 times, last: )
    • boot.txt is attached.

      ZFS-Pool:

      Source Code

      1. Pool status (zpool status):
      2. pool: RAID-Z1
      3. state: ONLINE
      4. status: Some supported features are not enabled on the pool. The pool can
      5. still be used, but some features are unavailable.
      6. action: Enable all features using 'zpool upgrade'. Once this is done,
      7. the pool may no longer be accessible by software that does not support
      8. the features. See zpool-features(5) for details.
      9. scan: none requested
      10. config:
      11. NAME STATE READ WRITE CKSUM
      12. RAID-Z1 ONLINE 0 0 0
      13. raidz1-0 ONLINE 0 0 0
      14. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0K71RL2 ONLINE 0 0 0
      15. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0J52TDY ONLINE 0 0 0
      16. ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N0J26SYC ONLINE 0 0 0
      17. errors: No known data errors
      18. Pool details (zpool get all):
      19. NAME PROPERTY VALUE SOURCE
      20. RAID-Z1 size 8.12T -
      21. RAID-Z1 capacity 61% -
      22. RAID-Z1 altroot - default
      23. RAID-Z1 health ONLINE -
      24. RAID-Z1 guid 1491085629520553140 -
      25. RAID-Z1 version - default
      26. RAID-Z1 bootfs - default
      27. RAID-Z1 delegation on default
      28. RAID-Z1 autoreplace off default
      29. RAID-Z1 cachefile none local
      30. RAID-Z1 failmode wait default
      31. RAID-Z1 listsnapshots off default
      32. RAID-Z1 autoexpand off default
      33. RAID-Z1 dedupditto 0 default
      34. RAID-Z1 dedupratio 1.00x -
      35. RAID-Z1 free 3.16T -
      36. RAID-Z1 allocated 4.97T -
      37. RAID-Z1 readonly off -
      38. RAID-Z1 ashift 0 default
      39. RAID-Z1 comment - default
      40. RAID-Z1 expandsize - -
      41. RAID-Z1 freeing 0 -
      42. RAID-Z1 fragmentation 16% -
      43. RAID-Z1 leaked 0 -
      44. RAID-Z1 multihost off default
      45. RAID-Z1 feature@async_destroy enabled local
      46. RAID-Z1 feature@empty_bpobj active local
      47. RAID-Z1 feature@lz4_compress active local
      48. RAID-Z1 feature@multi_vdev_crash_dump disabled local
      49. RAID-Z1 feature@spacemap_histogram active local
      50. RAID-Z1 feature@enabled_txg active local
      51. RAID-Z1 feature@hole_birth active local
      52. RAID-Z1 feature@extensible_dataset enabled local
      53. RAID-Z1 feature@embedded_data active local
      54. RAID-Z1 feature@bookmarks enabled local
      55. RAID-Z1 feature@filesystem_limits enabled local
      56. RAID-Z1 feature@large_blocks enabled local
      57. RAID-Z1 feature@large_dnode disabled local
      58. RAID-Z1 feature@sha512 disabled local
      59. RAID-Z1 feature@skein disabled local
      60. RAID-Z1 feature@edonr disabled local
      61. RAID-Z1 feature@userobj_accounting disabled local
      62. Pool filesystem details (zfs get all):
      63. NAME PROPERTY VALUE SOURCE
      64. RAID-Z1 type filesystem -
      65. RAID-Z1 creation Sun May 7 21:04 2017 -
      66. RAID-Z1 used 3.31T -
      67. RAID-Z1 available 1.93T -
      68. RAID-Z1 referenced 3.31T -
      69. RAID-Z1 compressratio 1.00x -
      70. RAID-Z1 mounted yes -
      71. RAID-Z1 quota none default
      72. RAID-Z1 reservation none default
      73. RAID-Z1 recordsize 128K default
      74. RAID-Z1 mountpoint /mnt/zfs local
      75. RAID-Z1 sharenfs off default
      76. RAID-Z1 checksum on default
      77. RAID-Z1 compression off default
      78. RAID-Z1 atime on default
      79. RAID-Z1 devices on default
      80. RAID-Z1 exec on default
      81. RAID-Z1 setuid on default
      82. RAID-Z1 readonly off default
      83. RAID-Z1 zoned off default
      84. RAID-Z1 snapdir hidden default
      85. RAID-Z1 aclinherit restricted default
      86. RAID-Z1 createtxg 1 -
      87. RAID-Z1 canmount on default
      88. RAID-Z1 xattr on default
      89. RAID-Z1 copies 1 default
      90. RAID-Z1 version 5 -
      91. RAID-Z1 utf8only off -
      92. RAID-Z1 normalization none -
      93. RAID-Z1 casesensitivity sensitive -
      94. RAID-Z1 vscan off default
      95. RAID-Z1 nbmand off default
      96. RAID-Z1 sharesmb off default
      97. RAID-Z1 refquota none default
      98. RAID-Z1 refreservation none default
      99. RAID-Z1 guid 4440514059132645771 -
      100. RAID-Z1 primarycache all default
      101. RAID-Z1 secondarycache all default
      102. RAID-Z1 usedbysnapshots 0B -
      103. RAID-Z1 usedbydataset 3.31T -
      104. RAID-Z1 usedbychildren 246M -
      105. RAID-Z1 usedbyrefreservation 0B -
      106. RAID-Z1 logbias latency default
      107. RAID-Z1 dedup off default
      108. RAID-Z1 mlslabel none default
      109. RAID-Z1 sync standard default
      110. RAID-Z1 dnodesize legacy default
      111. RAID-Z1 refcompressratio 1.00x -
      112. RAID-Z1 written 3.31T -
      113. RAID-Z1 logicalused 3.31T -
      114. RAID-Z1 logicalreferenced 3.31T -
      115. RAID-Z1 volmode default default
      116. RAID-Z1 filesystem_limit none default
      117. RAID-Z1 snapshot_limit none default
      118. RAID-Z1 filesystem_count none default
      119. RAID-Z1 snapshot_count none default
      120. RAID-Z1 snapdev hidden default
      121. RAID-Z1 acltype posixacl local
      122. RAID-Z1 context none default
      123. RAID-Z1 fscontext none default
      124. RAID-Z1 defcontext none default
      125. RAID-Z1 rootcontext none default
      126. RAID-Z1 relatime off default
      127. RAID-Z1 redundant_metadata all default
      128. RAID-Z1 overlay off default
      Display All
    • ZFS mountpoint full of folders

      Weitenbummler wrote:

      Sorry, for the posts. I‘ve got everytime an error when I send my answer.


      It‘s offtopic, but I also have this problem, if I use the WebInterface at my desktop/notebook to post something here in this forum...
      ---------------------------------------------------------------------------------------------------------------
      frontend software - android tv | libreelec | win10 | kodi krypton
      frontend hardware - nvidia shield tv | odroid c2 | yamaha rx-a1020 | quadral chromium style 5.1 | samsung le40-a789r2 | harmony smart control
      -------------------------------------------
      backend software - debian | kernel 4.4 lts | proxmox | openmediavault | zfs raid-z2 | docker | emby | vdr | vnsi | fhem
      backend hardware - supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x4tb wd red | digital devices max s8
      ---------------------------------------------------------------------------------------------------------------------------------------
    • The log shows that zfs-mount fails because the /mnt/zfs folder is full of folders.

      Try one more time with the pool unmounted, remove

      /mnt/zfs

      make sure no data is in there before you do that. Now with no folders in /mnt reboot

      now run again the journalctl -b and post the log here
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Still complaining mnt/zfs is not empty, so either zfs-mount is not finished when the /sharedfolders start or something is writing to those folders when shutting down or even keep writing after you delete them.

      You can try one last thing, shutdown, boot another live distro, mount the rootfs disk and check the /mnt path is empty, if is empty means you’re gonna have to live with this issue while they try find a another solution.

      What services use the pool?
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • I think I have found the problem. After the last update I've tried to install docker, which a shared folder in the pool. My tests did not lead to the desired success, so that I uninstalled docker. In the list of services which used the shared folders was docker listed.

      The last two days I tried a lot of way to solve the zfs mountpoint problem, but nothing works. After that I installed a new omv-system from fresh iso. Now everything works fine.

      Nevertheless many thanks.