-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange issue where hdd.log is on RAM and not syncing to SD #197
Comments
Having a look through some of the other issues it appears I have a similar problem with log2ram service not being recognized as 'started' at boot. When I start the service it seems to load the hdd.log into RAM as well and then the syncs work fine between the RAM hdd.log and the RAM log, but obviously once I lose power, it reverts back to the SD log. It seems log2ram is loading at boot but the systemctl status shows it failed (although the mounts are there and they are using the RAM). This then doesn't allow the daily timer to run and so doesn't automatically sync. Others had mentioned reverting to 1.5.2 and doing a manual install. I'm currently running 1.6, but would prefer to help find a solution moving forward then revert. |
Hi, |
So, when the Pi reboots I get the mount points for log2ram, and I can verify that my log2ram folders are indeed on ram, however, systemctl status shows the service failed (result: timeout) with the only line in the journal as: If I start the service with The only thing I seem to be able to do to get log2ram functioning properly is: |
hi, i have same problem, i installed log2ram on proxmox running on USB flash drive.
on another proxmox instances where OS is installed on SSD, seems to work as expected. |
upd, i found solution here: #163 (comment) |
So hopefully I can explain my problem. I have a standard config of log2ram and it all seems to work great... except...
Once the Pi is booted mount and df shows the /var/log mount. I can move large files to it and I know it's on the RAM.
The servive log2ram.service fails to start due to trying to start too early or something, I would have to restart the Pi to get the output. However, I am able to restart it manually and get it running once everything is booted up. However this creates and interesting problem....
I ended up with multiple mounts, one for /var/log and one for /var/hdd.log. Testing whether it's on the SD or in RAM i transfer large files to the folders. When the log2ram service is running both /var/log and /var/hdd.log appear to be on RAM!? When I stop the service, hdd.log acts as though it is actually on the SD, and the timestamps of everything revert to when I first installed log2ram. It seems like log2ram has never been able to sync properly back to hdd.log.
I can attach screenshots if necessary but hopefully the description is enough to get an idea and help me figure out if this is a normal process or log2ram?
The text was updated successfully, but these errors were encountered: