[arm-allstar] ARM-allstar Digest, Vol 106, Issue 13
Mark VE3JMR
ve3jmr at jmarkrobinson.ca
Thu Mar 16 01:51:50 EDT 2023
Hi David;
That works great! I'm not that concerned about the log files getting too
big. 1. I have a script that is triggered by a daily cronjob that trims
all of the logs to the maximum size (number of lines) that I specify; 2.
Supermon2 shows the size of the logs and how much of the max size has
been used. IF it maxes out I know to adjust the trimlog cronjob.
Logs file size brings up an interesting observation. Before I modified
the two files for persistent logging, Supermon always reported that 2%,
and if I ran it for many days up to 4%, of the max file size was used.
After I modified the files and rebooted, Supermon now reports that 56%
of the log file max has been used. Really? I did not expect this. FYI, I
use a 32G microSD in my Shari hotspot.
Thanks again.
> Date: Wed, 15 Mar 2023 09:29:43 -0400 (EDT)
> From: David McGough <kb4fxc at inttek.net>
> To: Mark VE3JMR via ARM-allstar <arm-allstar at hamvoip.org>
>
> Hi Mark,
>
> Okay, persistent logging to the SD card is easy to setup, there are 2
> steps.
>
> First, edit the /etc/systemd/journald.conf file and change:
>
> [Journal]
> Storage=volatile
>
> ...to...
>
> [Journal]
> #Storage=volatile
> Storage=persistent
>
> ...and save the file.
>
> Second, edit the /etc/fstab file and comment out the entry for the
> /var/log tmpfs, like:
>
> #
> # /etc/fstab: static file system information
> #
> # <file system> <dir> <type> <options> <dump> <pass>
> /dev/mmcblk0p1 /boot vfat defaults 0 0
> #tmpfs /var/log tmpfs nodev,nosuid,size=50M 0
> 0
>
> ....Save the /etc/fstab file and reboot. That's it! Now, the
> logfiles
> will all be in /var/log and that folder will be persistent across
> reboots.
>
> NOTE: Now /var/log is part of the system "root" filesystem. If the
> logfiles get too big, they could leave the root filesystem full,
> impairing
> system operation until they get cleaned up!!! So, be careful!
>
> If you decide to go back to volatile log files, just reverse the
> changes,
> above, and reboot.
>
> 73, David K4FXC
>
> ********************************************
>
> Thanks so much.
>
> 73 75 de VE3JMR | VE3MR
> Mark
> Port Colborne, Ontario, CANADA
> https://www.qrz.com/db/VE3JMR
> Allstar# 531320 [1] | Echolink# 736666 | VE3JMR-L [2]
>
> [3] [4] [5]
> Ottawa ARC [3] Burlington ARC
> [4] Radio Amateur of Canada [5]
>
> LIFE has an expiry date.
> <if trumpet=%true then exit function>
Links:
------
[1] http://stats.allstarlink.org/stats/531320
[2]
https://www.echolink.org/links.jsp?lat_deg=42&lat_min=52.997999999999905&lat_NS=North&lon_deg=79&lon_min=13.99799999999999&lon_EW=West&gs=FN02jv&sel=city&city=Port+Colborne&state=ON&country=CA&d=1
[3] https://oarc.net
[4] https://www.barc.ca
[5] https://www.rac.ca
More information about the ARM-allstar
mailing list