[pve-devel] qemu_drive_mirror

Alexandre DERUMIER aderumier at odiso.com
Mon May 6 09:19:01 CEST 2013


Seem that the block-job die.
Last time I have see that, it was because of a sector error on the volume.
Do you have tried with another volume ?
(does the backup work?)

We should be able to see what exactly happen it with qmp events, but last time I have tried, I can't get them ....

Maybe does it work since this commit ??:

"do not delete unmatched content from $$input"
https://git.proxmox.com/?p=qemu-server.git;a=blobdiff;f=PVE/QMPClient.pm;h=45fcba4befad6ad252b53a3472aa41bc5e1d452a;hp=6782c377b77cac5577b82eee4a946c54638c8bd4;hb=f4fde4d3760b0b7bfa8537be751fad3910fa39ad;hpb=194d171e6cfedbc5fbf07956259d65ef294b3a0f



I have use drive-mirror in production on around 200 volumes without error, the only one dying was a sector error on drive.



----- Mail original ----- 

De: "Dietmar Maurer" <dietmar at proxmox.com> 
À: "Alexandre DERUMIER (aderumier at odiso.com)" <aderumier at odiso.com> 
Cc: pve-devel at pve.proxmox.com 
Envoyé: Lundi 6 Mai 2013 09:10:33 
Objet: qemu_drive_mirror 



For me drive-mirror is totally unstable, any idea whats wrong? 

create full clone of drive virtio0 (local:200/vm-200-disk-1.qcow2) 
Formatting 
'/var/lib/vz/images/102/vm-102-disk-1.qcow2', fmt=qcow2 
size=34359738368 encryption=off cluster_size=65536 
preallocation='metadata' lazy_refcounts=off 
transferred: 0 bytes remaining: 34359738368 bytes total: 34359738368 bytes progression: 0.00 % 
transferred: 41943040 bytes remaining: 34317795328 bytes total: 34359738368 bytes progression: 0.12 % 
transferred: 125829120 bytes remaining: 34233909248 bytes total: 34359738368 bytes progression: 0.37 % 
transferred: 241172480 bytes remaining: 34118565888 bytes total: 34359738368 bytes progression: 0.70 % 
transferred: 367001600 bytes remaining: 33992736768 bytes total: 34359738368 bytes progression: 1.07 % 
transferred: 492830720 bytes remaining: 33866907648 bytes total: 34359738368 bytes progression: 1.43 % 
TASK ERROR: clone failed: mirroring error: at /usr/share/perl5/PVE/QemuServer.pm line 4639. 

or 

create full clone of drive virtio0 (local:200/vm-200-disk-1.qcow2) 
Formatting '/var/lib/vz/images/103/vm-103-disk-1.qcow2', fmt=qcow2 size=34359738368 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off 
transferred: 0 bytes remaining: 34359738368 bytes total: 34359738368 bytes progression: 0.00 % 
transferred: 31457280 bytes remaining: 34328281088 bytes total: 34359738368 bytes progression: 0.09 % 
transferred: 62914560 bytes remaining: 34296823808 bytes total: 34359738368 bytes progression: 0.18 % 
transferred: 136249344 bytes remaining: 34223489024 bytes total: 34359738368 bytes progression: 0.40 % 
transferred: 251592704 bytes remaining: 34108145664 bytes total: 34359738368 bytes progression: 0.73 % 
transferred: 377421824 bytes remaining: 33982316544 bytes total: 34359738368 bytes progression: 1.10 % 
transferred: 492765184 bytes remaining: 33866973184 bytes total: 34359738368 bytes progression: 1.43 % 
transferred: 608108544 bytes remaining: 33751629824 bytes total: 34359738368 bytes progression: 1.77 % 
transferred: 1069481984 bytes remaining: 33290256384 bytes total: 34359738368 bytes progression: 3.11 % 
transferred: 1604255744 bytes remaining: 32755482624 bytes total: 34359738368 bytes progression: 4.67 % 
transferred: 2139029504 bytes remaining: 32220708864 bytes total: 34359738368 bytes progression: 6.23 % 
TASK ERROR: clone failed: mirroring error: VM 200 qmp command 'block-job-cancel' failed - got timeout 



More information about the pve-devel mailing list