[SOLVED] Rebooting resets log files

Started by lodex, May 30, 2024, 10:35:50 PM

Previous topic - Next topic
May 30, 2024, 10:35:50 PM Last Edit: May 30, 2024, 10:59:37 PM by lodex
Hey folks!

Recently installed OPNsense 24.1 on a PVE host. The initial update was to 24.1.7 and I just installed the update to 24.1.8 (I'm not sure with which release the problem occured first, I'm just mentioning it so you know what the upgrade path was).
After rebooting I noticed that all log files were reset. I checked the logging settings, they are still set to default with local logging enabled, 31 log files preserved and no maximum file size. The file system has plenty of free space and I couldn't find any log entries that hinted to any problem.
The only suspicious thing I noticed is that '/var/log' is mounted as a 'tmpfs':
# mount
/dev/gpt/rootfs on / (ufs, local, soft-updates, journaled soft-updates)
devfs on /dev (devfs)
/dev/gpt/efifs on /boot/efi (msdosfs, local)
tmpfs on /var/log (tmpfs, local)
tmpfs on /tmp (tmpfs, local)
devfs on /var/dhcpd/dev (devfs)
devfs on /var/unbound/dev (devfs)
/usr/local/lib/python3.11 on /var/unbound/usr/local/lib/python3.11 (nullfs, local, read-only, soft-updates, journaled soft-updates)
/lib on /var/unbound/lib (nullfs, local, read-only, soft-updates, journaled soft-updates)

I'm pretty sure this in not correct, at least it's not the case with the 21.7.6 release we are running in a testing environment at work:
# mount
/dev/gpt/rootfs on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
devfs on /var/dhcpd/dev (devfs, local, multilabel)


Any ideas?

System > Settings > Miscellaneous
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)

Wow, I totally forgot that I set this option. I remember assuming that logs would be written to the file system periodically. Would have helped if I had read the info text...

Thanks a lot for the quick reply and help!

This option is intended for embedded devices running from e.g eMMC or even worse an SD card and low write tolerance.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)