• ryecoaaron


    Is it recommend to do this if running a helio4 from a omv4to5 upgrade:


    # disable armbian log services if found

    for service in log2ram armbian-ramlog armbian-zram-config; do

    if systemctl list-units --full -all | grep ${service}; then

    systemctl stop ${service}

    systemctl disable ${service}

    fi

    done

    rm -f /etc/cron.daily/armbian-ram-logging

    if [ -f "/etc/default/armbian-ramlog" ]; then

    sed -i "s/ENABLED=.*/ENABLED=false/g" /etc/default/armbian-ramlog

    fi

    if [ -f "/etc/default/armbian-zram-config" ]; then

    sed -i "s/ENABLED=.*/ENABLED=false/g" /etc/default/armbian-zram-config

    fi

    if [ -f "/etc/systemd/system/logrotate.service" ]; then

    rm -f /etc/systemd/system/logrotate.service

    systemctl daemon-reload

    fi


    I did this manually and onced my /var/log folder2ram sized increased from 100MB to 1000MB.


    Thanks

    • Offizieller Beitrag

    I did this manually and onced my /var/log folder2ram sized increased from 100MB to 1000MB.

    You don't have to. Just means your logs won't be compressed. I would be more concerned why you have a gig worth of log files.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • My logs are not getting that big i noticed the folder sized was sized to 100MB then went to 1000MB


    folder2ram 1008M 32M 977M 4% /var/log


    My question how will logs get rotated so it will not fill up?


    Thanks

  • No.. Because the install script will remove it based because this a helios4. I did and upgrade from omv4 to 5 so i was wondering how logs are rotated.


    i first noticed logrotate was not working then came upon this thread and read the install script which i believe is in the armbian-config utility, But, I did an upgrade not a fresh install based on this thread:


    https://forum.armbian.com/topi…-helios4-support/page/22/


    I am now trying to figure out random reboots i am having.


    https://forum.armbian.com/topi…-helios4-support/page/23/


    I just disabled the watchdog service. I then listed all the services and noticed the logrotate service not working correctly then found what the install script does.


    So now i wondering how logs will rotate so it will not fill up.




    # disable armbian log services if found

    for service in log2ram armbian-ramlog armbian-zram-config; do

    if systemctl list-units --full -all | grep ${service}; then

    systemctl stop ${service}

    systemctl disable ${service}

    fi

    done

    rm -f /etc/cron.daily/armbian-ram-logging

    if [ -f "/etc/default/armbian-ramlog" ]; then

    sed -i "s/ENABLED=.*/ENABLED=false/g" /etc/default/armbian-ramlog

    fi

    if [ -f "/etc/default/armbian-zram-config" ]; then

    sed -i "s/ENABLED=.*/ENABLED=false/g" /etc/default/armbian-zram-config

    fi

    if [ -f "/etc/systemd/system/logrotate.service" ]; then

    rm -f /etc/systemd/system/logrotate.service

    systemctl daemon-reload

    fi


    Thanks

    • Offizieller Beitrag

    Because the install script will remove it based because this a helios4

    Remove what? Removing the logrotate systemd unit file doesn't stop log rotation. As long as you have the /etc/cron.daily/logrotate file, your system should still be rotating logs.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Yes. I was just wondering if this unit file (logrotate systemd) is removed if it will still do log rotation. I did notice the logrotate cron job in cron.daily but I noticed this in the logrotate script:


    if [ -d /run/systemd/system ]; then

    exit 0

    fi



    i have this directory so i am wondering if it will just exit and never do any log rotation.


    Thanks

  • i copied the logrotate.service file back for systemctl and logrotate is now working.


    I was getting this error before i went down this path of disabling /dev/zram and converting to folder2ram:


    error: /etc/logrotate.conf:18 duplicate log entry for /var/log/wtmp

    error: /etc/logrotate.conf:25 duplicate log entry for /var/log/btmp


    This was caused by have wtmp and btmp in the /etc/logrotate.d folder and in the logrotate.conf so i commented out the btmp and wtmp statements in the logrotate.conf


    I am just trying to fix issues i have been noticing since this latest release:


    cron jobs failing after 5.5.8-1 update - armbian-check-first-login.sh


    Thanks

    • Offizieller Beitrag

    i copied the logrotate.service file back for systemctl and logrotate is now working.

    I guess there used to be a systemd timer that ran logrotate as well. Maybe something changed. armbian is a moving target. I will fix the cron.daily job.



    error: /etc/logrotate.conf:18 duplicate log entry for /var/log/wtmp

    error: /etc/logrotate.conf:25 duplicate log entry for /var/log/btmp


    This was caused by have wtmp and btmp in the /etc/logrotate.d folder and in the logrotate.conf so i commented out the btmp and wtmp statements in the logrotate.conf

    This isn't caused the by install or upgrade script. Maybe the upgrade script doesn't fix the problem but it isn't meant to a be super-do everything script. I don't see this problem on a fresh install

    am just trying to fix issues i have been noticing since this latest release:


    cron jobs failing after 5.5.8-1 update - armbian-check-first-login.sh

    A cron job failing because of an armbian script issue is hard for me to fix. This should be an armbian bug report. I don't want to start having to fix or remove their scripts.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Thanks for the reply. Yes, I understand.


    These were things i just noticed. my omv-backup cron job stopped working and the cron job wasn't finding the correct path /usr/sbin. I am justing to pin point what happened.


    It was around the Aug 28 timeframe.


    One thing i noticed is that if i create a cron job for omv-backup, it will not run unless i give it a certain time not @daily.


    0 0 * * * root /var/lib/openmediavault/cron.d/userdefined-137e4193-ba57-4674-a99a-24f55b8e9a7e >/dev/null 2>&1



    Do you like the helios64?


    I think i am going to wait for the next batch with ddr memory.


    Thanks

    • Offizieller Beitrag

    Do you like the helios64?

    I just have a dev board with no case right now. But it is a very nice board. My regular board with case will be here in a couple of weeks. I am getting a 2.5GBe switch tomorrow to test the faster ethernet but so far, it does everything I want.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Hey ryecoaaron,

    I'm having the same question as DimaKompot.

    Would you mind leaving an answer?

    I'm getting OOM errors on a regular basis on my NanoPi M4 and try to figure out whether I should enable normal swap or change

    /etc/default/armbian-zram-config to be enabled.

    Hello ryecoaaron,

    I'm using Ordoid XU4 (Raspbian). I installed a new fresh system today with OMV on top of it with your installation script. And now I don't have any /dev/zram device and also don't have any swap anymore. Went through latest changes and find that topic. Is it an expected behavior?

    Code
    root@odroidxu4:~# lsblk
    NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
    sda            8:0    0  5.5T  0 disk 
    mmcblk0      179:0    0 29.1G  0 disk 
    └─mmcblk0p1  179:1    0 28.8G  0 part /
    mmcblk0boot0 179:16   0    4M  1 disk 
    mmcblk0boot1 179:32   0    4M  1 disk 
    Code
    root@odroidxu4:~# free
                  total        used        free      shared  buff/cache   available
    Mem:        2043820      191824     1533760       28384      318236     1761480
    Swap:             0           0           0
    Code
    • Offizieller Beitrag

    I'm getting OOM errors on a regular basis on my NanoPi M4 and try to figure out whether I should enable normal swap or change

    /etc/default/armbian-zram-config to be enabled.

    If your machine is OOMing, then enabling zram probably wouldn't help much. You need to enable swap and/or do less with the machine. What is using all of the ram?

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Thank you for your reply!

    My server is usually idling at 700 MB usage out of 2 GB RAM.

    OOMs occur every 2-5 days at 2 a.m. and I guess it's PLEX doing maintenance jobs.

    I'm totally happy using swap as the slowdown should only occur at night where it doesn't bother me.


    Would you suggest to use armbian-specific zram implementation in /etc/default/armbian-zram-config which also enables swap from my understanding, or the generic linux approach?

    • Offizieller Beitrag

    Would you suggest to use armbian-specific zram implementation in /etc/default/armbian-zram-config which also enables swap from my understanding, or the generic linux approach?

    generic. Otherwise, you will probably zram. up to you really.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!