Pinned [Tutorial][Experimental][Third-party Plugin available]Reducing OMV's disk writes, also to install it on USB flash

    • ct85msi wrote:

      3.5 gives me this error:
      This is a browser cache issue. You need to try the apt clean button in omv-extras and ctrl-shift-r in the browser.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Hi I just installed OMV 3.0.9 on Debian Jessie 3.9 and OMVExtras for OMV 3.x (erasmus).

      on install of Flash Memory 3.5 I get "chmod: missing operand" errors, there is no enable button in the GUI, and the plugin shows no writes or root info. I read the last few pages of this thread and it looks like the issue was fixed, is it back again or is it me?

      Many thanks install log below


      Source Code

      1. Reading package lists...
      2. Building dependency tree...
      3. Reading state information...
      4. The following extra packages will be installed:
      5. folder2ram
      6. The following NEW packages will be installed:
      7. folder2ram openmediavault-flashmemory
      8. 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
      9. Need to get 27.3 kB of archives.
      10. After this operation, 243 kB of additional disk space will be used.
      11. Get:1 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main folder2ram all 0.2.6.1 [13.1 kB]
      12. Get:2 https://dl.bintray.com/openmediavault-plugin-developers/erasmus/ jessie/main openmediavault-flashmemory all 3.5 [14.1 kB]
      13. Fetched 27.3 kB in 0s (50.4 kB/s)
      14. Selecting previously unselected package folder2ram.
      15. (Reading database ... (Reading database ... 5%(Reading database ... 10%(Reading database ... 15%(Reading database ... 20%(Reading database ... 25%(Reading database ... 30%(Reading database ... 35%(Reading database ... 40%(Reading database ... 45%(Reading database ... 50%(Reading database ... 55%(Reading database ... 60%(Reading database ... 65%(Reading database ... 70%(Reading database ... 75%(Reading database ... 80%(Reading database ... 85%(Reading database ... 90%(Reading database ... 95%(Reading database ... 100%(Reading database ... 91988 files and directories currently installed.)
      16. Preparing to unpack .../folder2ram_0.2.6.1_all.deb ...
      17. Unpacking folder2ram (0.2.6.1) ...
      18. Selecting previously unselected package openmediavault-flashmemory.
      19. Preparing to unpack .../openmediavault-flashmemory_3.5_all.deb ...
      20. Unpacking openmediavault-flashmemory (3.5) ...
      21. Processing triggers for man-db (2.7.0.2-5) ...
      22. Processing triggers for openmediavault (3.0.90) ...
      23. Restarting engine daemon ...
      24. Setting up folder2ram (0.2.6.1) ...
      25. Setting up openmediavault-flashmemory (3.5) ...
      26. Created symlink from /etc/systemd/system/basic.target.wants/folder2ram_startup.service to /lib/systemd/system/folder2ram_startup.service.
      27. Created symlink from /etc/systemd/system/shutdown.target.wants/folder2ram_shutdown.service to /lib/systemd/system/folder2ram_shutdown.service.
      28. Created symlink from /etc/systemd/system/reboot.target.wants/folder2ram_shutdown.service to /lib/systemd/system/folder2ram_shutdown.service.
      29. Created symlink from /etc/systemd/system/halt.target.wants/folder2ram_shutdown.service to /lib/systemd/system/folder2ram_shutdown.service.
      30. will now start all mountpoints
      31. chmod: missing operand
      32. Try 'chmod --help' for more information.
      33. chown: missing operand
      34. Try 'chown --help' for more information.
      35. umount: /var/log: not mounted
      36. umount: /var/folder2ram/var/log: not mounted
      37. chmod: missing operand
      38. Try 'chmod --help' for more information.
      39. chown: missing operand
      40. Try 'chown --help' for more information.
      41. umount: /var/tmp: not mounted
      42. umount: /var/folder2ram/var/tmp: not mounted
      43. chmod: missing operand
      44. Try 'chmod --help' for more information.
      45. chown: missing operand
      46. Try 'chown --help' for more information.
      47. umount: /var/lib/openmediavault/rrd: not mounted
      48. umount: /var/folder2ram/var/lib/openmediavault/rrd: not mounted
      49. chmod: missing operand
      50. Try 'chmod --help' for more information.
      51. chown: missing operand
      52. Try 'chown --help' for more information.
      53. umount: /var/spool: not mounted
      54. umount: /var/folder2ram/var/spool: not mounted
      55. chmod: missing operand
      56. Try 'chmod --help' for more information.
      57. chown: missing operand
      58. Try 'chown --help' for more information.
      59. umount: /var/lib/rrdcached: not mounted
      60. umount: /var/folder2ram/var/lib/rrdcached: not mounted
      61. chmod: missing operand
      62. Try 'chmod --help' for more information.
      63. chown: missing operand
      64. Try 'chown --help' for more information.
      65. umount: /var/lib/monit: not mounted
      66. umount: /var/folder2ram/var/lib/monit: not mounted
      67. chmod: missing operand
      68. Try 'chmod --help' for more information.
      69. chown: missing operand
      70. Try 'chown --help' for more information.
      71. umount: /var/lib/php5: not mounted
      72. umount: /var/folder2ram/var/lib/php5: not mounted
      73. chmod: missing operand
      74. Try 'chmod --help' for more information.
      75. chown: missing operand
      76. Try 'chown --help' for more information.
      77. umount: /var/lib/netatalk/CNID: not mounted
      78. umount: /var/folder2ram/var/lib/netatalk/CNID: not mounted
      79. chmod: missing operand
      80. Try 'chmod --help' for more information.
      81. chown: missing operand
      82. Try 'chown --help' for more information.
      83. umount: /var/cache/samba: not mounted
      84. umount: /var/folder2ram/var/cache/samba: not mounted
      85. Processing triggers for openmediavault (3.0.90) ...
      86. Updating locale files ...
      87. Updating file permissions ...
      88. Purging internal cache ...
      89. Restarting engine daemon ...
      90. Done ...
      Display All
    • LostInSwiss wrote:

      on install of Flash Memory 3.5 I get "chmod: missing operand" errors, there is no enable button in the GUI, and the plugin shows no writes or root info. I read the last few pages of this thread and it looks like the issue was fixed, is it back again or is it me?
      I would try rebooting to see if it fixes it. If it doesn't there a few things that can be done. Is your root filesystem ext4? If not, it won't show writes. The enable button was removed.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • weebnuts wrote:

      It's showing like it's disabled.
      What is "showing like it's disabled"? It can't be disabled anymore. Post the output of mount
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • It's greyed out.. here's output of mount
      sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
      proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
      udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=2033727,mode=755)
      devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
      tmpfs on /run type tmpfs (rw,nosuid,relatime,size=3259836k,mode=755)
      /dev/sdg2 on / type ext4 (rw,noatime,nodiratime,errors=remount-ro,data=ordered)
      securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
      tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
      tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
      tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
      cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
      pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
      cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
      cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
      cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
      cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
      cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
      cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
      cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
      cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
      cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
      cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=22,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
      mqueue on /dev/mqueue type mqueue (rw,relatime)
      debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
      hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
      tmpfs on /tmp type tmpfs (rw,relatime)
      /dev/sdg1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

      binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
      nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
      /dev/sdg2 on /var/lib/docker/plugins type ext4 (rw,noatime,nodiratime,errors=remount-ro,data=ordered)
      /dev/sdg2 on /var/lib/docker/overlay2 type ext4 (rw,noatime,nodiratime,errors=remount-ro,data=ordered)
      tmpfs on /run/user/116 type tmpfs (rw,nosuid,nodev,relatime,size=1629920k,mode=700,uid=116,gid=122)
      tmpfs on /run/user/0 type tmpfs (rw,nosuid,nodev,relatime,size=1629920k,mode=700)
    • weebnuts wrote:

      It's greyed out..
      That is because it is read only. What do you get from: omv-mkconf flashmemory
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • weebnuts wrote:

      there's no output to omv-mkconf flashmemory
      And there shouldn't be if it runs correctly. Now try (as root):

      folder2ram -disablesystemd
      folder2ram -clean
      folder2ram -enablesystemd
      folder2ram -mountall
      mount
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • macom wrote:

      Is it possible to add additional folders (e.g. /etc/pihole) to

      /usr/share/openmediavault/mkconf/flashmemory

      and enable them using

      omv-mkconf flashmemory?
      Yes but your changes to /usr/share/openmediavault/mkconf/flashmemory will be overwritten if there is an upgrade to the plugin. What folders are you adding?
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • macom wrote:

      as Pi-Hole seems to write the logging to that folder.
      That would work but I would be careful since that directory also has config.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • ryecoaaron wrote:

      Yes but your changes to /usr/share/openmediavault/mkconf/flashmemory will be overwritten if there is an upgrade to the plugin.
      Is there a better way to make it persistent?
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!:
    • macom wrote:

      Is there a better way to make it persistent?
      Not with the current plugin. I could add an additional directories textbox. Let me look into that.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Would it be possible to add a suitable folder to the list to be used as targets for symlinks? I don't think any of the existing folders is suitable.

      Source Code

      1. #<type> <mount point> <options>
      2. tmpfs /var/log
      3. tmpfs /var/tmp
      4. tmpfs /var/lib/openmediavault/rrd
      5. tmpfs /var/spool
      6. tmpfs /var/lib/rrdcached/
      7. tmpfs /var/lib/monit
      8. tmpfs /var/lib/php #keep_folder_structure folder2ram does not have an equivalent yet
      9. tmpfs /var/lib/netatalk/CNID
      10. tmpfs /var/cache/samba
      Thanks
      Odroid HC2 - armbian - Seagate ST4000DM004 - OMV4.x
      Asrock Q1900DC-ITX - 16GB - 2x Seagate ST3000VN000 - Intenso SSD 120GB - OMV4.x
      :!: Backup - Solutions to common problems - OMV setup videos - OMV4 Documentation - user guide :!: