[arm-allstar] System logs retention
David McGough
kb4fxc at inttek.net
Tue Mar 14 05:19:49 EDT 2023
Hi Mark,
As you know, HamVoIP was setup to minimize writes to the SD card,
attempting to maximize SD card lifespan.
In retrospect, this concern may have been unwarranted. I've got many
systems in use for years (5+) which perform frequent SD card writes and
still have not had a single actual SD card failure....I have seen
corrupted root (ext4) filesystems a few times, which once repaired
(fsck.ext4) were again fully usable. In the case where the filesystems got
corrupted, the RPi units had crashed hard due to power problems. I
suspect that most of the reported "bad SD cards" are probably just
filesystem corruption.
Anyhow, there are 2 primary places where log files get written in HamVoIP:
The /var/log and /run/log/journal folders, both being volatile tmpfs (RAM
drive) filesystems.
Are you wanting to preserve the log contents on the SD card proper, or on
an external device (e.g.: USB SSD, USB thumbdrive, NAS) ??
73, David K4FXC
On Mon, 13 Mar 2023, Mark VE3JMR via ARM-allstar wrote:
>
>
> Is there a way to retain the systems logs between sessions? Each time
> the node is rebooted, the logs from the previous session are wiped. It
> would even be better if the system logs could be reopened and logging
> from the new session continue in the same log files.
>
> Thanks so much.
>
> 73 75 de VE3JMR | VE3MR
> Mark
> Port Colborne, Ontario, CANADA
More information about the ARM-allstar
mailing list