test new version of flashmemory plugin using zram

    • Official Post

    DON'T USE YET!!!


    I have updated the openmediavault-flashmemory plugin to use zram (via zram-config script).


    zram-config is configured with the same directories that folder2ram was configured with.


    I have been running it on a few systems for a few days. If anyone wants to test it, they can do that with:



    I am very curious about install issues.


    If you have a scheduled sync, it should be changed to: /usr/sbin/zram-config sync

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    Edited 4 times, last by ryecoaaron ().

  • Instal and run of the sync happened without any reported problems.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Unfortunately, the same symptoms as the original plugin are manifested: Postfix and rsyslog are broken. Uninstalling it doesn't put things back the way they were, my Postfix is mangled. Working on it now.


    Code
    Error while checking current Postfix configuration. Please manually fix Postfix configuration.
    postfix: fatal: chdir(/var/spool/postfix): No such file or directory

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Restoring from backup :(


    Reinstalling Postfix seems to have put things back the way they were. But I am still writing out this morning's dd image to another SSD just in case.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

    Edited once, last by gderf ().

    • Official Post

    the same symptoms as the original plugin are manifested: Postfix and rsyslog are broken.

    Sorry it broke things. I have only been using it a few days and it is really beta. I wouldn't install it on a production system.


    Not sure why it broke postfix and rsyslog since zram_config isn't doing anything with postfix or logrotate (which is what broke postfix/logrotate on your system when it was added to folder2ram). I guess folder2ram does run one last sync before it is uninstalled. I can't avoid that since the sync is needed.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • No worries, I have recovered.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Hi ryecoaaron. I currently have the latest test version of the Flash plugin installed (md5sum: 2596a04d8ac16eb5de61497ea1926d58). Everything seems to be working fine, but when I connect to this server using iDRAC, I see errors like in the screenshot. I hope this will help you improve this version...

    Images

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

    • Official Post

    I see errors like in the screenshot.

    What is the output of these two commands


    $ df -h | grep zram2

    /dev/zram2 125M 36K 114M 1% /opt/zram/zram2

    $ grep zram2 /proc/mounts

    /dev/zram2 /opt/zram/zram2 ext4 rw,relatime,errors=remount-ro 0 0

    overlay2 /var/lib/openmediavault/rrd overlay rw,relatime,lowerdir=/opt/zram/opt/zram/varlibopenmediavaultrrd.bind,upperdir=/opt/zram/zram2/upper,workdir=/opt/zram/zram2/workdir,redirect_dir=on,uuid=on,nouserxattr 0 0

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Code
    root@omv420:~# df -h | grep zram2
    /dev/zram2 125M 1,1M 113M 1% /opt/zram/zram2
    root@omv420:~# grep zram2 /proc/mounts
    /dev/zram2 /opt/zram/zram2 ext4 rw,relatime,errors=remount-ro 0 0

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

    • Official Post

    Do you have monitoring enabled in OMV?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Do you have monitoring enabled in OMV?

    If it is not enabled by default, I did not enable it. Where can I check this?

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

    • Official Post

    It is enabled by default unless you run the install script (which disables it).


    System -> Monitoring

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • It is enabled by default unless you run the install script (which disables it).


    System -> Monitoring

    Yes, it is on.

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

    • Official Post

    I have done no testing with monitoring enabled since it causes more writes than just about anything. I will have to try it when I have a chance.

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • I have done no testing with monitoring enabled since it causes more writes than just about anything. I will have to try it when I have a chance.

    Thank you. I'll turn off monitoring for now and observe.

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

  • Hello! Two days ago I turned off monitoring, rebooted the server, and now I don't see the errors that were in the screenshot in the previous post. Everything works normally. Also, all this time, when the latest test version of the Flash plugin is running (md5sum: 2596a04d8ac16eb5de61497ea1926d58), I don't see any problems with mail.

    omv 7.7.1-2 (Sandworm) | 64 bit | kernel 6.12.12+bpo-amd64

    plugins : backup 7.1.4 | compose 7.4.2 | cputemp 7.0.2 | flashmemory 7.1.0-2 | ftp 7.0-5 | omvextrasorg 7.0.2 | onedrive 7.1.4-3 | remotemount 7.0.2 | sftp 7.0.3 | sharerootfs 7.0-1 |

  • Installed fine (excepting a could not open HSTS store at '/root/.wget-hsts'. HSTS will be disabled error)


    Running fine though I'm usually at between 36-38% used a few minutes after startup, now sitting around 48% so seems to be a little heavier on ram

    OMV 7 | Armbian kernel | Rpi Zero 2 (Headless) | compose | downloader | shairport

  • If you have a scheduled sync, it should be changed to: /usr/sbin/zram-config sync

    How do I know if I have this kind of sync enabled? Is that something we do proactively in a script or some setting we might enable?


    Email is working after restart and installing the test plugin. Still shows up as 7.0.1 in the UI but in apt I can see the proper one is installed.

    • Official Post

    How do I know if I have this kind of sync enabled?

    You would've had to add it.


    Is that something we do proactively in a script or some setting we might enable?

    Nope. Some people wanted a more frequent sync than just at shutdown even though it causes more writes. I told them how to do it. You would add a Scheduled job in the omv web interface.


    Email is working after restart and installing the test plugin. Still shows up as 7.0.1 in the UI but in apt I can see the proper one is installed.

    I assume you see a datatable listing paths to move to ram when looking at the flashmemory plugin? Did you click Update in the Plugins or Updates tab?

    omv 8.0.10-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.6 | compose 8.1.3 | cterm 8.0 | borgbackup 8.1.5 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!