OrangePi

title: How to disable log2ram [Print this page]

Author: RoyK    time: 2018-3-20 03:05
title: 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


Author: RoyK    time: 2018-3-20 03:30
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
Author: igorpec    time: 2018-3-20 14:20
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/ ... t-full-with-log2ram
https://forum.armbian.com/topic/ ... to-100-using-pihole
Author: Jagger    time: 2024-8-24 16:45
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




Welcome to OrangePi (http://www.orangepi.org/orangepibbsen/) Powered by Discuz! X3.4