I am using Hass OS on a Raspberry Pi 4 with an SD-Card. In order to increase the life of my SD-Card, I do not want to write to it too often.
I increased the commit-interval of the recorder, and now what writes most often to the card is the journald.
I searched a lot, but
the journald.conf is on a read-only filesystem, so I cannot set Storage to volatile
I cannot remove or umount /var/log/journald
This link explains in general how to reduce life cycles, there is also a section about using “Log2Ram”, but I cannot install it on HassOS (again readonly file systems and some other issues).
In the end, what I found out is that I can use umount -l /var/log/journal/. When doing this, there are no more logs at all. When I restart journald, the folder /var/log/journal/ is recreated again, but this time on tmpfs, which is in RAM. But when I reboot the Pi, the log gets persisted again.
Is there really no solution to change journald to log to RAM only on Hass OS with a Pi?
I use high quality SD cards (I think SD card reliability is much better now) and excellent backups so I don’t worry about the number of write operations or an SD card failure.
In addition to the link you found for reducing writes, there is also this link.
But back to your original question,
I don’t know but I would not worry about it if I have backups I can trust.
How long do you want the SD card to last?
Do you know how long it will last if you reduce the amount of writes to the SD card?
And what will you do when the SD card fails or becomes corrupt (because it or something else will fail eventually).