Hi,
i have a problem with my VM backups.
I have a script that automatically backups .qcow2 images of running VM's everynight via external snapshots, but lately few of my larger servers have started failing on making backups successfully.
Here is my backup process:
backup for guests with guest-agent:
and for guests without:
Then i proceed to copy the base.image....
And here is where it gets stuck with the error :
The guest in question has 2 .qcow2 disks, the blockcommit is successful for the first disk image (sda) but not for the other (sdb).
I tried fixing the problem by manyally aborting the blockjob, which is successfull, but then i get the same error on blockcommit.
Any help on this is appreciated, thanks.
i have a problem with my VM backups.
I have a script that automatically backups .qcow2 images of running VM's everynight via external snapshots, but lately few of my larger servers have started failing on making backups successfully.
Here is my backup process:
backup for guests with guest-agent:
Code:
virsh snapshot-create-as --domain "$DOMAIN" --name backup --no-metadata --atomic --quiesce --disk-only $DISKSPEC >/dev/null
Code:
virsh snapshot-create-as --domain "$DOMAIN" --name backup --no-metadata --atomic --disk-only $DISKSPEC >/dev/null
Code:
virsh blockcommit "$DOMAIN" --active --wait --pivot
Code:
Block commit: [100 %]error: failed to pivot job for disk sdb
error: block copy still active: disk 'sdb' not ready for pivot yet
I tried fixing the problem by manyally aborting the blockjob, which is successfull, but then i get the same error on blockcommit.
Code:
root@server1:/var/lib/libvirt/images/Domain1# virsh blockjob Domain1 sdb --abort
root@server1:/var/lib/libvirt/images/Domain1# virsh blockcommit Domain1 sdb --wait --active --verbose --pivot
Block commit: [100 %]error: failed to pivot job for disk sdb
error: block copy still active: disk 'sdb' not ready for pivot yet