Comments (2)
this may be related to apparmor rules or alike. I have no idea what problem libvirtd has here. Help needed.
Mar 06 10:32:08 xxxxxxx libvirtd[1903]: Unable to tear down cgroup access on /var/tmp/backup.ZB7PA.vdc
Mar 06 10:32:08 xxxxxxx libvirtd[1903]: Path '/var/tmp/backup.ZB7PA.vdc' is not accessible: No such file or directory
Mar 06 10:32:08 xxxxxxx libvirtd[1903]: internal error: unable to execute QEMU command 'nbd-server-stop': NBD server not running
it seems to me as if libvirtd wants to stop the NBD service that was used for backup, but it is already fanished.
The file reported is the so called "scratch" file that is temporary created during checkpoint creation (and is
usually removed by libvirtd itself)
I dont think these errors are caused by mis-behavior of virtnbdbackup. You could try to attempt to execute the
same libvirt commands for starting/stopping backup operations and see if your libvirtd reports the same issues.
I dont see the errors related to the NBD Service on debian bookworm, however, the Scratch file issue is
reported too. It may make sense to use the --scratchdir option and use a path that has also related apparmor
settings in your libvirtd setup.
See:
https://libvirt.org/formatbackup.html
or use option "-v" during backup to see which libvirt XML is created to operate here.
I dont think i will invest much time in analyzing what the issue is if everything is working as expected.
from virtnbdbackup.
i can reproduce these errors with plain libvirt virsh calls:
Mar 07 12:23:10 cefix libvirtd[3971189]: internal error: child reported (status=125): unable to stat: /var/tmp/backup.UGXZ9.sda: No such file or directory
Mar 07 12:23:10 cefix libvirtd[3971189]: unable to stat: /var/tmp/backup.UGXZ9.sda: No such file or directory
Mar 07 12:23:10 cefix libvirtd[3971189]: internal error: child reported (status=125): unable to stat: /var/tmp/backup.UGXZ9.sda: No such file or directory
Mar 07 12:23:10 cefix libvirtd[3971189]: unable to stat: /var/tmp/backup.UGXZ9.sda: No such file or directory
Mar 07 12:23:10 cefix libvirtd[3971189]: Unable to restore security label on /var/tmp/backup.UGXZ9.sda
consider having the following backup.xml:
<domainbackup mode="pull">
<server transport="unix" socket="/var/tmp/virtnbdbackup.718571"/>
<disks>
<disk name="sda">
<scratch file="/var/tmp/backup.UGXZ9.sda"/>
</disk>
</disks>
</domainbackup>
now start an backup task using virsh:
sudo virsh backup-begin --backupxml backup.xml vm1
Backup started
verify the task is active:
virsh # domjobinfo vm1
Job type: Unbounded
Operation: Backup
and now stop the task using domjobAbort:
virsh # domjobabort vm1
So for me, this looks like some kind of race condition in libvirtd or libvirtd's apparmor profiles trying to mess with
the scratch file even if its not yet existant.
I dont see a way to workaround these errors in virtnbdbackup, for me it works as expected.
from virtnbdbackup.
Related Issues (20)
- Output folder must not exist (during a remote restore) HOT 2
- domain not found, but shows in virsh list HOT 3
- Incremental backup fails with error "ImportError: cannot import name 'sighandle'" after previous successful full backup HOT 1
- Operation not supported: creating checkpoint for incremental backup is not supported yet HOT 4
- Progress show TB of data during backup of ~61GB disk HOT 5
- After first offline backup the second fail with "does not contain full backup" HOT 4
- restore failed with more than one disk - NDB error HOT 8
- Start virtual machines in paused state if offline to allow full/incremental/differential backup HOT 1
- fs freeze / warning domain is not running doesn't make sense with option --start-domain
- IndexError: list index out of range using virtnbdbackup tool HOT 15
- Backup (SW)TPM Device related files
- Local backup being detected as remote, fails HOT 3
- amount of backup data in human readable size (MB/GB/TB) HOT 3
- Fedora 39 - RHEL9 - ModuleNotFoundError: No module named 'nbd' HOT 9
- Plausibility check for backup (amount of data) HOT 1
- Remote Backup Problem HOT 2
- backup with compression enabled fails: unsupported operand type(s) for +: 'int' and 'dict' HOT 4
- Kubevirt/openshift virtualization: howto
- Error during checkpoint removal
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from virtnbdbackup.