ZFS Not Mouting All Folders After Routine Update

    • OMV 3.x
    • Resolved
    • ZFS Folders Hidden After Routine Update

      I did a update last night like I do every few months and everything was fine until I went to my Android TV/Kodi and it said the files no longer existed. So the facts for my setup and problem now are:

      v3.0.65 Erasmus
      Pentium 4 @3GHz
      4.8.0-0.bpo.2-amd64
      4GB Ram
      ~5TB pool with OS on 16GB USB (with flash memory plugin)

      Issue Symptoms:
      - Nothing obvious in the logs
      - File Systems Lists the device (mainpool) but has n/a's for Total, Available, Used and reports its not moutned and when I click on it the options don't allow for me to mount, unmount, etc.
      - ZFS plugin installed and shows my pool with size, used, available, mountpoint, online state, and status OK. Details Below

      Source Code

      1. Pool status (zpool status):
      2. pool: mainpool
      3. state: ONLINE
      4. scan: scrub repaired 0 in 1h36m with 0 errors on Sun Mar 12 03:00:39 2017
      5. config:
      6. NAME STATE READ WRITE CKSUM
      7. mainpool ONLINE 0 0 0
      8. ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N7SZ5H5D ONLINE 0 0 0
      9. ata-WDC_WD30EFRX-68EUZN0_WD-WCC4N5UJX3FA ONLINE 0 0 0
      10. errors: No known data errors
      11. Pool details (zpool get all):
      12. NAME PROPERTY VALUE SOURCE
      13. mainpool size 5.44T -
      14. mainpool capacity 16% -
      15. mainpool altroot - default
      16. mainpool health ONLINE -
      17. mainpool guid 5679904156188262872 default
      18. mainpool version - default
      19. mainpool bootfs - default
      20. mainpool delegation on default
      21. mainpool autoreplace off default
      22. mainpool cachefile none local
      23. mainpool failmode wait default
      24. mainpool listsnapshots off default
      25. mainpool autoexpand off default
      26. mainpool dedupditto 0 default
      27. mainpool dedupratio 1.00x -
      28. mainpool free 4.53T -
      29. mainpool allocated 934G -
      30. mainpool readonly off -
      31. mainpool ashift 0 default
      32. mainpool comment - default
      33. mainpool expandsize - -
      34. mainpool freeing 0 default
      35. mainpool fragmentation 3% -
      36. mainpool leaked 0 default
      37. mainpool feature@async_destroy enabled local
      38. mainpool feature@empty_bpobj enabled local
      39. mainpool feature@lz4_compress active local
      40. mainpool feature@spacemap_histogram active local
      41. mainpool feature@enabled_txg active local
      42. mainpool feature@hole_birth active local
      43. mainpool feature@extensible_dataset enabled local
      44. mainpool feature@embedded_data active local
      45. mainpool feature@bookmarks enabled local
      46. mainpool feature@filesystem_limits enabled local
      47. mainpool feature@large_blocks enabled local
      48. Pool filesystem details (zfs get all):
      49. NAME PROPERTY VALUE SOURCE
      50. mainpool type filesystem -
      51. mainpool creation Wed Dec 28 19:11 2016 -
      52. mainpool used 934G -
      53. mainpool available 4.36T -
      54. mainpool referenced 934G -
      55. mainpool compressratio 1.00x -
      56. mainpool mounted no -
      57. mainpool quota none default
      58. mainpool reservation none default
      59. mainpool recordsize 128K default
      60. mainpool mountpoint /mainpool default
      61. mainpool sharenfs off default
      62. mainpool checksum on default
      63. mainpool compression off default
      64. mainpool atime on default
      65. mainpool devices on default
      66. mainpool exec on default
      67. mainpool setuid on default
      68. mainpool readonly off default
      69. mainpool zoned off default
      70. mainpool snapdir hidden default
      71. mainpool aclinherit restricted default
      72. mainpool canmount on default
      73. mainpool xattr on default
      74. mainpool copies 1 default
      75. mainpool version 5 -
      76. mainpool utf8only off -
      77. mainpool normalization none -
      78. mainpool casesensitivity sensitive -
      79. mainpool vscan off default
      80. mainpool nbmand off default
      81. mainpool sharesmb off default
      82. mainpool refquota none default
      83. mainpool refreservation none default
      84. mainpool primarycache all default
      85. mainpool secondarycache all default
      86. mainpool usedbysnapshots 0 -
      87. mainpool usedbydataset 934G -
      88. mainpool usedbychildren 23.9M -
      89. mainpool usedbyrefreservation 0 -
      90. mainpool logbias latency default
      91. mainpool dedup off default
      92. mainpool mlslabel none default
      93. mainpool sync standard default
      94. mainpool refcompressratio 1.00x -
      95. mainpool written 934G -
      96. mainpool logicalused 933G -
      97. mainpool logicalreferenced 933G -
      98. mainpool filesystem_limit none default
      99. mainpool snapshot_limit none default
      100. mainpool filesystem_count none default
      101. mainpool snapshot_count none default
      102. mainpool snapdev hidden default
      103. mainpool acltype off default
      104. mainpool context none default
      105. mainpool fscontext none default
      106. mainpool defcontext none default
      107. mainpool rootcontext none default
      108. mainpool relatime off default
      109. mainpool redundant_metadata all default
      110. mainpool overlay off default
      Display All
      Any Tips on what to fix?
    • wolffstarr wrote:

      Was this after a reboot?

      What is the output of zfs list and df -h from the command line?

      If you can't get at the command line, what does the File Systems page show? You should be seeing Mounted = Yes for everything.
      Yes after a reboot.

      The results of zfs list:
      ~# zfs list
      NAME USED AVAIL REFER MOUNTPOINT
      mainpool 934G 4.36T 934G /mainpool

      The results of df -h:
      ~# df -h
      Filesystem Size Used Avail Use% Mounted on
      udev 10M 0 10M 0% /dev
      tmpfs 702M 8.8M 693M 2% /run
      /dev/sdd1 14G 2.7G 11G 21% /
      tmpfs 1.8G 4.0K 1.8G 1% /dev/shm
      tmpfs 5.0M 0 5.0M 0% /run/lock
      tmpfs 1.8G 0 1.8G 0% /sys/fs/cgroup
      tmpfs 1.8G 8.0K 1.8G 1% /tmp
      folder2ram 1.8G 28M 1.7G 2% /var/log
      folder2ram 1.8G 0 1.8G 0% /var/tmp
      folder2ram 1.8G 508K 1.8G 1% /var/lib/openmediavault/rrd
      folder2ram 1.8G 23M 1.7G 2% /var/spool
      folder2ram 1.8G 7.7M 1.8G 1% /var/lib/rrdcached
      folder2ram 1.8G 8.0K 1.8G 1% /var/lib/monit
      folder2ram 1.8G 0 1.8G 0% /var/lib/php5

      Regarding the file systems page: see attached image and notice the mainpool filesystem is clicked but no options are available either.
      Images
      • filesystem.PNG

        56.46 kB, 2,074×319, viewed 73 times
    • Well, for a quick fix, try zfs mount mainpool manually. I'm assuming you only have the base mainpool dataset and no child datasets.

      I'm about to leave for work, but I've had a similar problem in the past; I'll try to track down some info for you.

      If zfs mount mainpool doesn't work, it should give a useful error. Also, make sure there's nothing in the /mainpool directory that it mounts to; that can cause issues as well.