How to enable Flash Memory plugin?

    • OMV 3.x
    • Resolved
    • starion wrote:

      So, how does one verify that it is enabled and running? I can see no indication anywhere.
      There is no service running. It just creates tmpfs mount points. If you really don't believe it is working, look at the output of: mount
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!
    • mike390 wrote:

      does fstab still have to be manually changed?
      For flashmemory to function? No. To add a few additional optimizations to reduce writes even further? yes.
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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 was curious on how to know if flashmem plug-in is working?

      I originally thought I had set it up correctly but when I edited fstab and rebooted it caused my system disk to go read only. I figured out how to repair that and I removed my edits to fstab and the problem went away.

      So possibly two things I don't know is how to tell is if the plug-in is working? And what I did wrong to cause the system disk to have an error and go read only.

      I read that you could tell thru the mount command but I don't know what to look for.there is my mount command return.


      root@server:~# 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=913887,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=1481324k,mode=755)
      /dev/sdg1 on / type ext4 (rw,relatime,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/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      tmpfs on /etc/machine-id type tmpfs (ro,relatime,size=1481324k,mode=755)
      systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=11288)
      mqueue on /dev/mqueue type mqueue (rw,relatime)
      debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
      tmpfs on /tmp type tmpfs (rw,relatime)
      /dev/md0 on /srv/dev-disk-by-label-server type ext4 (rw,noexec,relatime,stripe=384,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      /dev/md0 on /sftp/RobertR728/servertv type ext4 (rw,noexec,relatime,stripe=384,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      /dev/sdg1 on /var/folder2ram/var/log type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/tmp type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/openmediavault/rrd type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/openmediavault/rrd type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/spool type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/spool type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/rrdcached type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/rrdcached type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/monit type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/monit type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/php5 type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/php5 type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/netatalk/CNID type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/netatalk/CNID type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/cache/samba type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/cache/samba type tmpfs (rw,nosuid,nodev,noexec,relatime)root@server:~#
    • I found this helpful:

      Source Code

      1. root@openmediavaultbu:/# folder2ram
      2. Welcome to folder2ram version 0.2.6 !
      3. folder2ram is a script-based utility that relocates the contents of a folder to RAM
      4. and on shutdown unmounts it safely synching the data back to the permanent storage.
      5. There are four main components of folder2ram system:
      6. --the init script in /etc/init.d or the systemd service in /etc/folder2ram that calls this main script on boot and shutdown
      7. --the main script in /etc/sbin/folder2ram
      8. .
      9. .
      10. .
      11. .
      12. root@openmediavaultbu:/# folder2ram -status
      13. /var/log is mounted
      14. /var/tmp is mounted
      15. /var/lib/openmediavault/rrd is mounted
      16. /var/spool is mounted
      17. /var/lib/rrdcached is mounted
      18. /var/lib/monit is mounted
      19. /var/lib/php is mounted
      20. /var/lib/netatalk/CNID is mounted
      21. /var/cache/samba is mounted
      22. root@openmediavaultbu:/#
      Display All
    • RobertR728 wrote:

      Hi I was curious on how to know if flashmem plug-in is working?

      I originally thought I had set it up correctly but when I edited fstab and rebooted it caused my system disk to go read only. I figured out how to repair that and I removed my edits to fstab and the problem went away.

      So possibly two things I don't know is how to tell is if the plug-in is working? And what I did wrong to cause the system disk to have an error and go read only.

      I read that you could tell thru the mount command but I don't know what to look for.there is my mount command return.


      root@server:~# 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=913887,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=1481324k,mode=755)
      /dev/sdg1 on / type ext4 (rw,relatime,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/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
      tmpfs on /etc/machine-id type tmpfs (ro,relatime,size=1481324k,mode=755)
      systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct,pipe_ino=11288)
      mqueue on /dev/mqueue type mqueue (rw,relatime)
      debugfs on /sys/kernel/debug type debugfs (rw,relatime)
      hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
      fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
      tmpfs on /tmp type tmpfs (rw,relatime)
      /dev/md0 on /srv/dev-disk-by-label-server type ext4 (rw,noexec,relatime,stripe=384,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      /dev/md0 on /sftp/RobertR728/servertv type ext4 (rw,noexec,relatime,stripe=384,data=ordered,jqfmt=vfsv0,usrjquota=aquota.user,grpjquota=aquota.group)
      /dev/sdg1 on /var/folder2ram/var/log type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/log type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/tmp type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/openmediavault/rrd type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/openmediavault/rrd type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/spool type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/spool type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/rrdcached type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/rrdcached type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/monit type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/monit type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/php5 type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/php5 type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/lib/netatalk/CNID type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/lib/netatalk/CNID type tmpfs (rw,nosuid,nodev,noexec,relatime)
      /dev/sdg1 on /var/folder2ram/var/cache/samba type ext4 (rw,relatime,errors=remount-ro,data=ordered)
      folder2ram on /var/cache/samba type tmpfs (rw,nosuid,nodev,noexec,relatime)root@server:~#
      Apologies for hijacking/resurrecting an old thread and thank you in advance for any help!

      I have just installed the flash memory plugin (system drive on SSD) and edited /etc/fstab exactly as per the instructions, rebooted and have a read-only filesystem.

      I have tried mount -o rw, remount / to no avail. I can log in via SSH quite happily, and also into the box directly under my desk. Does it make a difference that I edited fstab as sudo not root (trying to be good and not always SSH in as root!)

      Bright ideas always welcome
    • I've just managed to fix it, thank you for replying. :)

      I added the extra parts as indicated on the flash memory plugin page to fstab which I suspect is what caused the read-only error. Going into recovery mode, editing the configuration and changing the "ro" to "rw" on the line beginning with "linux" unlocked it for edit, undid the changes and voila.

      I didn't realise initially that it wasn't strictly completely necessary to edit fstab for the flashmemory plugin to work. Lesson learned.
    • tdeg20 wrote:

      I've just managed to fix it, thank you for replying.

      I added the extra parts as indicated on the flash memory plugin page to fstab which I suspect is what caused the read-only error. Going into recovery mode, editing the configuration and changing the "ro" to "rw" on the line beginning with "linux" unlocked it for edit, undid the changes and voila.

      I didn't realise initially that it wasn't strictly completely necessary to edit fstab for the flashmemory plugin to work. Lesson learned.
      None of the changes recommend in the flashmemory plugin's info would make the root filesystem mount readonly. Can you post your fstab that causes the issue?
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!
    • This is my current fstab:

      Source Code

      1. # /etc/fstab: static file system information.
      2. #
      3. # Use 'blkid' to print the universally unique identifier for a
      4. # device; this may be used with UUID= as a more robust way to name devices
      5. # that works even if disks are added and removed. See fstab(5).
      6. #
      7. # <file system> <mount point> <type> <options> <dump> <pass>
      8. # / was on /dev/sda1 during installation
      9. UUID=c0000003f-700e-4b23-bf70-f00000009e32 / ext4 errors=remount-r$
      10. # swap was on /dev/sda5 during installation
      11. #UUID568757bc-cxxx-xxxx-xxxx-9c61xxxxxf3b none swap sw $
      12. tmpfs /tmp tmpfs defaults 0 0
      13. # >>> [openmediavault]
      14. /dev/disk/by-label/XXXXXXXX /srv/xxx-xxxx-xxxx-xxxx ext4 defaults,nofail,us$
      15. # <<< [openmediavault]
      Display All
      The only difference was that I added "noatime,nodiratime," to the line starting UUID to make it "UUID=c900083f-700e-0023-b000-fbb000000e32 / ext4 noatime,nodiratime, errors=remount-ro"


      The error I got was parsing line 9, so the section I edited, reverting has fixed it all. I wonder if some misplaced punctuation on that line?
    • mcmanuf wrote:

      What about when using docker images which is stored on SD card, data partition.
      In that case, they have their own log files inside the docker containers.

      Has anyone considered this?
      No because I wouldn't store docker containers on an SD card at all. There is no way the flashmemory plugin could help writes on a container because most people don't have anywhere near enough ram to put the container files in tmpfs. If you are worried about writes with docker containers, you should be telling the docker plugin to use a data drive.
      omv 4.1.23 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      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!