log2ram - ERROR: /var/log.hdd/ doesn't exist! Can't sync
-
- OMV 3.x
- NothingNowhere
-
-
I just register, I cannot reply to you post now.
It is the last version of log2ram you use ? (I don't have versionning, do you have the date you have install it ?)
You can try the command : "/usr/local/bin/log2ram write"
is you log2ram running right ? check "df -h" et look if log2ram exist.
What to you have if you check the /var/ folder ("ls -ali /var") ?
What is you parameter ? ("cat /etc/log2ram.conf")The final answer is to create the folder manually "mkdir /var/log.hdd" and redone "/usr/local/bin/log2ram write" to remake the synchronization. But if I want to avoid this issue and upgrade the log2ram tool, I will need the data asked.
What give you "sudo service log2ram status" ?
-
I get this daily as well, what's odd is that I don't have log2ram installed, I do have folder2ram configured.
-
-
Can you please report back what happens if you simply do a
If this fixes it entirely I have to remove this as part of the OMV installation quirk in Armbian.
@Kosmatik are you aware that I answered regarding your SMART issues: https://forum.armbian.com/inde…u4-and-omv/#comment-33086
-
I've removed the cron job, have to wait 21 hours for it to run again, I also double checked, I do have log2ram installed.
The cron job tries to write a log to /var/log.hdd/ but fails due to the folder not existing. -
The cron job tries to write a log to /var/log.hdd/ but fails due to the folder not existing.
In other words it does no harm even if I forgot to disable the cron job as well. Currently only the start of log2ram gets disabled on the OMV Armbian variants: https://github.com/armbian/bui…ze-image.sh.template#L102
Should be fixed with next OMV images being build: https://github.com/armbian/bui…288a4ff6180186699fefcb947
On already rolled out installations it's necessary to delete /etc/cron.daily/log2ram manually to prevent the script further spamming syslog and sending emails.
-
-
No email today, looks solid.
-
Hi
I'm experiencing this too on my XU4, but instead of deleting the cronjob, I created the directory. The "write" function works without complaint, and the directory fills with appropriate files.However tkaiser, can you explain your rationale for removing the function, please?
Thanks
Peter -
However tkaiser, can you explain your rationale for removing the function, please?
OMV has an advanced mechanism active by default called 'folder2ram'. With latest 3.5 flashmemory plugin this looks now like this (df -h):
Codefolder2ram 403M 1.7M 401M 1% /var/log folder2ram 403M 0 403M 0% /var/tmp folder2ram 403M 328K 402M 1% /var/lib/openmediavault/rrd folder2ram 403M 508K 402M 1% /var/spool folder2ram 403M 12M 391M 3% /var/lib/rrdcached folder2ram 403M 4.0K 403M 1% /var/lib/monit folder2ram 403M 0 403M 0% /var/lib/php5 folder2ram 403M 4.0K 403M 1% /var/lib/netatalk/CNID
How does your 'df -h' output looks like?
-
-
Hi tkaiser
Yes, my 'df -h' looks similar to yours.Researching 'folder2ram" I see that it was created for Openmediavault. Was this to cover shortcomings of log2ram? Just attempting to understand.
And to clarify, we should disable 'log2ram' within openmediavault?
Thanks
Peter -
Was this to cover shortcomings of log2ram? Just attempting to understand.
No. It was created to cover the shortcomings of fs2ram.
And to clarify, we should disable 'log2ram' within openmediavault?
You do not need log2ram if you are using the flashmemory plugin/folder2ram.
-
Researching 'folder2ram" I see that it was created for Openmediavault. Was this to cover shortcomings of log2ram?
No, they try to address the same problem: Flash media wearing out too fast. Those OMV ARM images are all based on Armbian which uses log2ram (coping with /var/log/ only) so to avoid conflicts with folder2ram coping also with a lot of other 'high write activity' candidates log2ram gets deactivated by the OMV installation routine.
But I simply forgot to remove the cron job on older OMV images so all you have to do if you get this message is a 'rm /etc/cron.daily/log2ram' and you're done.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!