Skip to content
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

log2ram failed to update writes to disk at reboot #219

Open
jult opened this issue Jan 10, 2024 · 3 comments
Open

log2ram failed to update writes to disk at reboot #219

jult opened this issue Jan 10, 2024 · 3 comments

Comments

@jult
Copy link

jult commented Jan 10, 2024

I have seen this a couple of times on different debian bookworm instances where log2ram is installed;
When I do a reboot (shutdown -r now, or reboot), I see in syslog that the log2ram service indeed stops, but after having returned and checking the hdd.* dir contents, they are not updated to the latest versions that were there, and the current version at that boot is an older one. Pretty bad actually. I've lost some work due to not expecting this.
Something's not correctly running rsync back to disk properly around shutting down. I have not been able to pinpoint the cause.

I have installed log2ram via apt, and not changed service timers or anything, only the dirs that should be in RAM.

@SiddharthManthan
Copy link

SiddharthManthan commented Apr 13, 2024

I am encountering this issue too. In journal logs, I see :

Apr 13 21:00:11 swizzin log2ram[85]: mount: /var/hdd.log: cannot mount none read-only.
Apr 13 21:00:11 swizzin log2ram[109]: building file list ... done
Apr 13 21:00:11 swizzin log2ram[109]: log2ram.log
Apr 13 21:00:11 swizzin log2ram[109]: sent 123 bytes  received 36 bytes  318.00 bytes/sec
Apr 13 21:00:11 swizzin log2ram[109]: total size is 23  speedup is 0.14
Apr 13 21:00:11 swizzin log2ram[113]: mount: /var/lib/hdd.vnstat: cannot mount none read-only.
Apr 13 21:00:11 swizzin log2ram[171]: building file list ... done
Apr 13 21:00:11 swizzin log2ram[171]: log2ram.log
Apr 13 21:00:11 swizzin log2ram[171]: sent 123 bytes  received 36 bytes  318.00 bytes/sec
Apr 13 21:00:11 swizzin log2ram[171]: total size is 23  speedup is 0.14

This does not happen on debian 12 hosts. It has happened on Ubuntu 22.04 so far.

In my case, the data is lost and the /var/log folder is recreated.

@SiddharthManthan
Copy link

SiddharthManthan commented Apr 15, 2024 via email

@scara
Copy link

scara commented Apr 15, 2024

Which distro ? I think it's mostly an issue with ubuntu. It works fine on debian.

Thanks for your reply: there is a more specific follow-up here: #222.

HTH,
Matteo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants