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

bugfix: LOG2RAM_LOG, extended by sync_to_disk, is rescued to hdd.path #236

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

HoTschir
Copy link

While sync_to_disk is executed rsync or cp copies content of path to hdd.path. Logging of this is done at $LOG2RAM_LOG, which is located at $RAM_LOG. In case of executing sync_to_disk inside stop) command, subsequently $RAM_LOG will be unmounted. Changes are lost. The fix separately copies $LOG2RAM_LOG to $HDD_LOG to keep the sync_to_disk content.

repeated start) (without stop) does not cause additional "mount --bind" anymore
LOG2RAM_LOG, extended by sync_to_disk, needs to be rescued separately
cleanup at stop)
LOG2RAM_LOG, extended by sync_to_disk, is rescued to hdd.path
@HoTschir HoTschir changed the title bugyfix: LOG2RAM_LOG, extended by sync_to_disk, is rescued to hdd.path bugfix: LOG2RAM_LOG, extended by sync_to_disk, is rescued to hdd.path Sep 25, 2024
@azlux
Copy link
Owner

azlux commented Sep 25, 2024

Since log2ram_log is for rsync/cp copy logs, I wasn't expecting copy the file into disk.
It's just to see the copy errors. If log2ram have an issue, it's will be logged on journalctl.
and if you want to keep it reboot after reboot, we need to think about logrotation.

@HoTschir
Copy link
Author

It's just to see the copy errors.:
You will not see it, after umount command. I doubt you are fast enouth to cat or open a text editor.
You are free to accept or refuse the request. Don't want to discuss about it further.

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

Successfully merging this pull request may close these issues.

2 participants