View: 9240|Reply: 2

How to disable log2ram

[Copy link]

4

threads

8

posts

36

credits

Novice

Rank: 1

credits
36
Published in 2018-3-20 03:05:16 | Show all floors |Read mode
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

4

threads

8

posts

36

credits

Novice

Rank: 1

credits
36
 Author| Published in 2018-3-20 03:30:04 | Show all floors
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

9

threads

634

posts

4404

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4404
Published in 2018-3-20 14:20:27 | Show all floors
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
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list