Nerijus Baliunas
2015-Oct-20 20:50 UTC
Re: [libvirt-users] failed to pivot job for disk vdc
Hello, it happened with another VM: # virsh snapshot-create-as --domain rasa sn1 --diskspec vda,file=/var/lib/libvirt/images/rasa-sn1.qcow2 --disk-only --atomic --no-metadata # virsh blockcommit rasa vda --active --verbose --pivot Block commit: [100 %]error: failed to pivot job for disk vda error: block copy still active: disk 'vda' not ready for pivot yet # virsh domblklist rasa Target Source ------------------------------------------------ vda /var/lib/libvirt/images/rasa-sn1.qcow2 If blockcommit had succeeded, it would be now: vda /var/lib/libvirt/images/rasa.qcow2 Now both files rasa.qcow2 and rasa-sn1.qcow2 are written to, and # virsh blockjob rasa vda Active Block Commit: [100 %] But trying to virsh blockcommit rasa vda --active --verbose --pivot once more: error: block copy still active: disk 'vda' already in active block job How do I make rasa.qcow2 the only active vda? I use qemu-kvm-ev-2.3.0-29.1.el7. Thanks, Nerijus
Nerijus Baliunas
2015-Oct-25 22:15 UTC
Re: [libvirt-users] failed to pivot job for disk vdc
Nerijus Baliunas <nerijus@...> writes:> But trying to virsh blockcommit rasa vda --active --verbose --pivot oncemore:> error: block copy still active: disk 'vda' already in active block job > > How do I make rasa.qcow2 the only active vda?"virsh blockjob rasa vda --abort" aborts the blockcommit and then I can try to blockcommit again: # virsh blockjob rasa vda --abort # virsh blockcommit rasa vda --active --verbose --pivot Block commit: [100 %]error: failed to pivot job for disk vda error: block copy still active: disk 'vda' not ready for pivot yet But it does not succeed. I tried more than 20 times. libvirt-1.2.17-5.el7.x86_64 If I shutdown VM after unsuccessful blockcommit command, I can delete snapshot file, edit xml and VM starts OK, but if I shutdown after blockjob abort command, the VM disk is unclean if I start VM without snapshot file. I found the bug - https://bugzilla.redhat.com/show_bug.cgi?id=1197592 It seems it is still unfixed. Regards, Nerijus
Nerijus Baliunas
2015-Oct-30 13:13 UTC
Re: [libvirt-users] failed to pivot job for disk vdc
Nerijus Baliunas <nerijus@...> writes:> I found the bug - https://bugzilla.redhat.com/show_bug.cgi?id=1197592 > It seems it is still unfixed.blockcommit completes successfully if I change virtual disk Cache mode from Hypervisor default to none. Regards, Nerijus