RoyK post at 2018-3-20 03:05:16

How to disable log2ram

Hi all

I'm seeing my log fs is running full, since it's just 50MB. How can I disable log2ram? I don't really need it - the SD card should be able to handle this.

roy

RoyK post at 2018-3-20 03:30:04

Edited by RoyK at 2018-3-20 03:31

I didn't find anything around and asked before I tried, so ok

# systemctl stop rsyslog.service
# systemctl stop syslog.socket
# lsof /var/log
(make sure it's empty)
# systemctl stop log2ram
# systemctl disable log2ram
# mv /var/log /var/oldlog
# rsync -avPHAXx /var/oldlog /var/log
# reboot

After the reboot, remove /var/oldlog if you don't really need it

Works for me (tm) - if the logs fill up my fs, I'll need to fix that instead of getting tons of messages about a full filesystem

igorpec post at 2018-3-20 14:20:27

You only switch one problem for another. Now your SD card will die sooner.

We need to find some better way to handle this. Some ideas already popped out:
https://forum.armbian.com/topic/6626-var-easily-get-full-with-log2ram
https://forum.armbian.com/topic/6444-varlog-file-fills-up-to-100-using-pihole

Jagger post at 2024-8-24 16:45:15

I read a lot of stuff and i found that the way of writing to clearifing that exactly want to say was very good so i am impressed and ilike to come again in future. Medical waste disposal equipment manufacturer
page: [1]
View full version: How to disable log2ram