lvm causes "No such file or directory" error #1147
Labels
No labels
blocked
breaking
bug
data loss
design finalized
good first issue
new feature area
question / support
security
waiting for response
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
borgmatic-collective/borgmatic#1147
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What I'm trying to do and why
Backing up some virtual machine disk image files (.vdi). To avoid them changing while the backup is running, I use the
lvm:feature to take an LVM snapshot. Neat! The backup works fine, but at the end there's a "No such file or directory" error after the umount command for the snapshot. This causes healthcheck.io to say the job failed, although the backup did succeed.Steps to reproduce
Here's /etc/backup.d/vm-home.yaml:
And /etc/backup.d/vm-home.patterns:
Actual behavior
Here's the whole run log. Everything works fine until near the end:
Note that the missing directory is the parent of the snapshot directory that just got unmounted. Not sure why it went away, but
lsconfirms that it did.Expected behavior
No errors.
Other notes / implementation ideas
No response
borgmatic version
1.9.14
borgmatic installation method
Ubuntu package
Borg version
1.2.8
Python version
Python 3.12.3
Database version (if applicable)
No response
Operating system and version
Ubuntu 24.04.3 LTS (noble)
Good news! This was very likely already fixed in #1071, so if you can upgrade to a newer version of borgmatic (at least 2.0.3, but 2.0.7+ would be even better), you shouldn't get this error anymore. Please let me know if that's not the case.
Doh. Sorry, I neglected to look at the closed issues, or I would've spotted that. Yes, the patch that fixed #1071 also fixes this one.
ignore_errors=True- nice! Thanks for your help. Closing.No worries! I'm glad to hear that was it.