Some additional ideas (in no specific order):
-
Check journal: OH2.2 suddenly logging stopped this morning - #12 by Milmi12
-
Check that the owner of the files is
openhab
, see Oh2 stopped logging - what went wrong? (old post, OH 2 …). -
Check zram:
sudo zramctl
-
Disable zram (not recommended; see Logs stop ZRAM issue? - #3 by liketofly)
-
Check SD card for defects (out of reserved spare blocks?).
-
Replace SD card.
-
Stop OH and power cycle.
-
Reduce the amount of logging (openHab log and events stopped working / java.lang.NullPointerException - #13 by Markus2020).