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
2015-Oct-14 18:45 UTC
Re: [libvirt-users] failed to pivot job for disk vdc
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
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