[libvirt-users] failed to pivot job for disk vdc

Hello, I did a virsh snapshot-create-as --domain meta sn1 --diskspec vda,file=/var/lib/libvirt/images/meta-sn1.qcow2 --disk-only --atomic --no-metadata Then I successfully blockcommitted 2 disks: virsh blockcommit meta vda --active --verbose --pivot virsh blockcommit meta vdb --active --verbose --pivot But when doing virsh blockcommit meta vdc --active --verbose --pivot I got: Block commit: [100 %]error: failed to pivot job for disk vdc error: block copy still active: disk 'vdc' not ready for pivot yet Domain snapshot sn1 created And now it looks like this: virsh domblklist meta Target Source ------------------------------------------------ vda /var/lib/libvirt/images/meta.qcow2 vdb /var/lib/libvirt/images/meta-home.qcow2 vdc /var/lib/libvirt/images/meta-pgsql.sn1 How do I make vdc to be the initial disk, not the snapshot one? Regards, Nerijus

Nerijus Baliunas <nerijus@...> writes:
How do I make vdc to be the initial disk, not the snapshot one?
I powered off the VM, with "virsh edit meta" changed vdc source file from meta-pgsql.sn1 to meta-pgsql.qcow2 and started VM. Is it possible to achieve this without powering off VM? Thanks, Nerijus

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 <nerijus@...> writes:
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?
"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 <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
participants (1)
-
Nerijus Baliunas