After uninstalling flashmemory plugin with GUI for a test, reinstalling plugin again, i got nginx.service startup error, coming up on server console!

  • Hi Aaron and folks

    I´m on latest version 7.7.1-3 on my Supermicro server. For testing the memory usage of using the flashmemory plugin, i unistalled the plugin with the GUI.

    No problem, reboot... No errors during boot on console. Look at memory... Ok

    After that, i installed stable flashmemory plugin again with the GUI.. Reboot.. Now i´m getting a nginx.service startup error every boot. Never had this before!

    Disabling all sevices (keeping SSH)... uninstalling via console, reinstalling... Nothing helps! I have no ideas anymore, what´s went wrong with the system.


    Any suggestions, what i can try now?


    Best regards and thank you

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

  • prtigger1

    Changed the title of the thread from “After uninstalling flashmemory plugin with GUI for a test, reinstalling plugin again i got nginx.service startup error is coming up on server console!” to “After uninstalling flashmemory plugin with GUI for a test, reinstalling plugin again, i got nginx.service startup error, coming up on server console!”.
    • New
    • Official Post

    After that, i installed stable flashmemory plugin again with the GUI

    Did you install the testing version of the plugin?


    Any suggestions, what i can try now?

    I would guess /var/log/nginx directory was lost.


    sudo mkdir /var/log/nginx

    sudo omv-salt deploy run nginx


    Make sure to click sync in the flashmemory plugin.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    No, i did no testing of the new flashmemory plugin! I only uninstall the

    actual plugin, reboot... After that, i installed

    the plugin again from GUI and reboot.

    During boot, ngnix service start fails with

    error on server monitor...


    I think it's the same problem i found here:



    What will be the best way to fix the

    problem on live server. It's using the

    swap partition, installed by default.

    System is installed on a small SSD with

    64GB (Supermicro SataDOM). This SSD is

    sitting directly on the Sata connector on

    the mainboard... I use flashmemory for

    save the wear level...


    Without flashmemory plugin the system

    is coming up normally. flashmemory

    service startup seems to be the problem

    like in the 'Clean install" case...


    Open question is:

    Why this wasn't happening before...


    I will take a look again on tomorrow.

    Now it's time for sleeping..


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory


  • Good morning Aaron from Germany


    The path /var/log/nginx isn´t missing. It´s full of ´ openmediavault-webgui_access.log´ files!

    I guess the problem/solution is discribed in the posts #29-#35 of the linked case above

    (flash memory plugin and nginx restart on clean install).

    But at this time i changed nothing, because for me this solution (overriding the unit file) is

    'hacking' a stable plugin. i would prefer a direct change of the unit file, but i find this at different

    locations. I´m not a Linux specialist so i wait for the best way to solve this issue.

    Keep in mind, that uninstalling flashmemory plugin is solving the issue, too. For me not the

    preffered solution, because it was runing perfect, till i had done the stupid uninstall and reinstall of

    this plugin. Ok, my fault, never touch a running system....


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    Why this wasn't happening before...

    I don't know. Maybe your system is taking longer to sync all of the files into ram on startup. This is one of the motivations for re-writing the plugin to use zram-config. Since zram-config uses overlay filesystems, it doesn't sync anything on startup.


    because for me this solution (overriding the unit file) is

    'hacking' a stable plugin.

    The override is adjusting the folder2ram_startup starting position in systemd's starting list. It isn't hacking or even touching the plugin and is the only way to make a change that survives updates.


    i would prefer a direct change of the unit file, but i find this at different

    locations

    That is not the way you should make changes. sudo systemctl edit folder2ram_startup.service will create the proper override file.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    Thanks for your opinion.

    But here are additional two questions:

    If i create the override config file, how

    could i revert it back to the original state?


    What about your new (testing) flashmemory plugin? How to handle the

    default swap partition that omv is using

    with my installation. What steps i have

    to do, to get it running?


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    If i create the override config file, how

    could i revert it back to the original state?

    delete the override file.

    rm /etc/systemd/system/folder2ram_startup.service.d/override.conf

    systemctl daemon-reload

    What about your new (testing) flashmemory plugin? How to handle the

    default swap partition that omv is using

    with my installation. What steps i have

    to do, to get it running?

    I don't understand what you are asking. You want to remove the swap partition that the OMV install creates?

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    No, i don't want to remove the swap partition!

    I saw a screenshot of your new flashmemory plugin. It looked like, that

    there is a function included for using

    swap space with ZRam (May be a swap-file). By default OMV uses a swap partition

    not a swap-file.

    Could you explain that a little bit...

    Is there any problem with the swap partion use... Do i have to change something, before i can try your testing flashmemory version?

    Or better staying with old plugin and doing the override config, because the new plugin is to much beta state right now?


    Thanks Aaron for your help!

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    Is there any problem with the swap partion use

    nope. The swap partition and zram swap serve somewhat different purposes. swap partition is typically used for when you running low on ram. zram swap is for create compressed swap to keep things in ram that are there due to a swapiness setting.

    Do i have to change something, before i can try your testing flashmemory version?

    I didn't on any of my systems and they are all running the testing version. I did remove the zram swap (easy to do in the new plugin) because I didn't need it.

    Or better staying with old plugin and doing the override config, because the new plugin is to much beta state right now?

    zram-config isn't new or in beta. The plugin is basically just writing /etc/ztab. Doesn't take much testing to know that is working right. The beta part of the plugin was just to determine if the default settings are large enough. Since the settings are available to easily change in the plugin by the user, that isn't a huge deal either. And the fact the current folder2ram-based plugin is causing you problems, I don't what is the better option. If you really don't want to worry about it, use a good ssd or nvme and then you wouldn't have to use the plugin.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    I´m on with your latest testing flashmemory plugin. Seems to work, without ngnix errors during boot.

    I use the plugin with all default settings!

    I´m not understanding the memory limits and disk sizes at this time, and what happend when sizes will exceed...

    ... and how to cleanup growing logs on the system....

    Maybe there will be a small wiki in the future for 'dummie´s' like me...


    Thanks Aaron!

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    I´m not understanding the memory limits and disk sizes at this time, and what happend when sizes will exceed...

    Each line is creating a ram disk for the directory mentioned. When it fills, it is the same as filling the old flashmemory or any directory.

    ... and how to cleanup growing logs on the system....

    Depends on what it is. Most logs have logrotate setup or are sent to journald which automatically truncates. I think chatgpt would help with specific log questions.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    Do i understand it correct, that zram swap is not using the swap partition, generated during OMV installation on the boot disk?


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    Do i understand it correct, that zram swap is not using the swap partition, generated during OMV installation on the boot disk?

    You can have more than one swap. zram is just creating another one. It does not use or interact with the install created one. You can just delete the swap line in the plugin. Then you don't have to worry about it.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • You can have more than one swap. zram is just creating another one. It does not use or interact with the install created one. You can just delete the swap line in the plugin. Then you don't have to worry about it.

    Hi, I'm not worrying about it. I only try to understand the function. I want to know, if this function is the zswap function i read about?

    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    I only try to understand the function.

    I'm really not a good teacher. You can read about zram-config on the owner's page - https://github.com/ecdye/zram-config/

    You can google about zram in the linux kernel to learn more about that.


    I want to know, if this function is the zswap function i read about?

    The plugin only uses zram-config. zram-config is only using zram. zram just creates block device. You can format it ext4 (which is what it is doing for files) or format it as swap. zram doesn't care. And while the plugin does create a zram device for swap, the plugin's main goal is to reduce file writes not swap writes. If a system is sized correctly, it shouldn't even use much swap.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • Hi Aaron

    Thanks for all your informations!

    It's correct, with the 6.1.x Bookworm kernel, the swapping is very low with my

    little amount of server RAM (only 4GB is maximum). But with the 6.12.x backport kernel it's getting high. Because swapping normally uses the swap partition on my small boot SSD i try to find a better solution, than setting vm.swappiness=0 (default is 1) with the bpo-kernel...


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    Because swapping normally uses the swap partition on my small boot SSD i try to find a better solution

    You could always move it to a file on a hard drive (if you have one) or plug in a usb stick that you don't care about.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

  • The difference of swapping between the 6.1.x and 6.12.x kernel is 2MB to over 400MB of using swap space... That's thought. Under same conditions. Copying data to clients, using your old, stable flashmemory plugin. 6.12.x seems to swap out for maximizing read cache... May be, it swaps the folder2ram memory...

    I'm testing the behavior at this time,

    because this is bad... Nobody of us can change the kernel programming and Trixie is on the run.... I guess, people with a lot of RAM don't mention this behavior..


    I'll trying to find a config for my low RAM 4GB hardware setup


    Best regards

    prtigger

    Old (2011) Supermicro 1U Rackserver X7SPA-HF, Intel Atom D510, 4GB RAM (maximum) | System: Supermicro Sata DOM 64GB SSD | Data: 3*Samsung 870 QVO 4TB Sata (Btrfs Raid1) | OMV 7.x services: SSH, SMB, NFS, DLNA, Flashmemory

    • New
    • Official Post

    because this is bad... Nobody of us can change the kernel programming and Trixie is on the run.... I guess, people with a lot of RAM don't mention this behavior..

    Why is it bad? This is exactly why vm.swappiness exists. If you don't want the scheduler to swap out what is most likely unused ram, then disable it. Setting vm.swappiness to 0 should work just like what you were used to with the 6.1 kernel.


    I honestly don't pay attention to my large server on 6.11 since it does have 128 GB of ram. I just set the swappiness to 0 to see how it acts. My RPi is my low mem system but it is still on the 6.6 kernel and using no swap.

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!

    • New
    • Official Post

    OMV does have a swappiness environment variable
    https://github.com/openmediava…loy/sysctl/nonrot.sls#L31

    omv 7.7.0-2 sandworm | 64 bit | 6.11 proxmox kernel

    plugins :: omvextrasorg 7.0.1 | kvm 7.0.17 | compose 7.3.4 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.9


    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!