-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
restore failed with more than one disk - NDB error #163
Comments
hi, I tried with virtual machines up to 4 disks, restoring multiple times and it works .. |
Hi, thank you for your response. Yes i can reproduce this problem. Here is the log. |
main]: Started [qemu-nbd] process: [processInfo(pid=224816, logFile='/tmp/qemu-nbdep3138ds.log', err='', out='', pidFile='')] Anything in that Logfile? i think this is probably a Race condition where the first qemu-nbd process is Not yet finished writing .. is the restore Target storage slow? |
Hi, the logfile is empty. The restore source is a SAS-HDD RAID5 and the target is a NVMe RAID1. With dd and oflag=direct i get 3,5 GB/s. A restore from HDD to the same HDD end up in the same error. |
so what happens during restore is for each disk:
steps are repeated for next disk, using the same socket file. I guess that maybe between step 2 and 3, there may be still some action to be taken on the nbd server that takes a little longer and blocks the socket file for the next disk.. Ive just pushed this commit: maybe it calling flush() on the handle helps. |
whats strange is that the behavior shouldnt happen because qemu-nbd would fail if another process would still use the socket:
and the function which starts the qemu-nbd process for the second disk would catch this error..
is apparmor aktive on the system? Maybe this is another apparmor sheaningan.. One way to diagnose would be to check during the timeout of 20 seconds while it retries:
if the qemu-nbd process started as reported in the logfile is running and if it is reachable maybe by using |
Thank you very much! With the latest master the restore of both disks runs. |
thanks for confirming! |
Version used
Provide output of
virtnbdbackup -V
2.1
Describe the bug
The restore of the first disk ends successfully. The restore of the second disk ends up with an NBD error.
Expected behavior
Successfully restore of both disks (qcow2 files).
Hypervisor information:
Logfiles:
Workaround:
Restore in two steps with the --disk parameter works fine.
The text was updated successfully, but these errors were encountered: