search for: blockcommit

Displaying 20 results from an estimated 167 matches for "blockcommit".

2018 Sep 07
3
how "safe" is blockcommit ?
Hi, currently i'm following https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit. I 'm playing around with it and it seems to be quite nice. What i want is a daily consistent backup of my image file of the guest. I have the idea of the following procedure: - Shutdown the guest (i can live with a downtime of a few minutes, it will happen in the night). And i think it'...
2017 Jun 22
4
recovering from deleted snapshot
I have an automatic process setup. It's still pretty new and obviously in need of better error handling because now I find myself in a bad state. I run snapshot-create-as across all my vms, then do zfs replication to the target backup system, then blockcommit everything. virsh snapshot-create-as --domain $vm snap --diskspec $DISK,file=$VMPREFIX/"$vm"-snap.qcow2 --disk-only --atomic --no-metadata --quiesce ... virsh blockcommit $vm $DISK --active --pivot Normally this works fine, though something went wrong on the 20th. something happened...
2018 Sep 08
1
Re: how "safe" is blockcommit ?
...rongly suggest to experiment with rsync "--inplace no-whole-file" options to really transfer/write changed bits only. If that does not cut in, you can try with bdsync[1] or blocksync[2] [1] https://github.com/TargetHolding/bdsync [2] https://github.com/shodanshok/blocksync >> - blockcommit the overlay: blockcommit guest /path/to/testsn --active >> --wait --verbose --pivot >> - delete the snapshot: snapshot-delete guest --snapshotname testsn >> --metadata >> - remove the overlay >> >> Is that ok ? How "safe" is blockcommit on a running...
2018 Sep 10
1
Re: how "safe" is blockcommit ?
----- On Sep 7, 2018, at 9:26 PM, Eric Blake eblake@redhat.com wrote: > On 09/07/2018 12:06 PM, Lentes, Bernd wrote: >> Hi, >> >> currently i'm following >> https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit. I 'm >> playing around with it and it seems to be quite nice. >> What i want is a daily consistent backup of my image file of the guest. >> I have the idea of the following procedure: >> >> - Shutdown the guest (i can live with a downtime of a few minutes, it wil...
2016 May 03
2
Ubuntu 14.04 virsh 1.2.2 blockcommit hangs at 100% / command 'blockcommit' doesn't support option --pivot
Hello All, I think I have seen this in previous bugs. Trying to live backup qcow2 images. I am able to virsh snapshot-create-as and virsh domblklist shows correct new source, but I am unable to commit back changes to qcow base. I get the above error. Libvirt at 1.2.2-0ubuntu13.1.17 Qemu is (2.0.0+dfsg-2ubuntu1.22) I tried compiling latest libvirt, but cannot get it to connect to socket on
2018 Sep 07
0
Re: how "safe" is blockcommit ?
On 09/07/2018 12:06 PM, Lentes, Bernd wrote: > Hi, > > currently i'm following https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit. I 'm playing around with it and it seems to be quite nice. > What i want is a daily consistent backup of my image file of the guest. > I have the idea of the following procedure: > > - Shutdown the guest (i can live with a downtime of a few minutes, it will happen in the night). &...
2016 May 03
0
Re: Ubuntu 14.04 virsh 1.2.2 blockcommit hangs at 100% / command 'blockcommit' doesn't support option --pivot
...I refer to my message to this mailing list on 17/03/2016: Hi everybody, Following this user mailing list over a period of time, I saw a few messages regarding not being able using the external snapshot feature. I refer to this procedure: http://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit I would like to mention this hoping it will help those users: Using external snapshots works perfect again in qemu 2.5.0 together with this patch https://bugzilla.redhat.com/show_bug.cgi?id=1300209 Full version list on which I did my testing: Compiled against library: libvirt 1.3.1 Using library:...
2015 Oct 13
2
virsh can't support VM offline blockcommit
Hi everyone! I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to test qemu snapshot features: I tried virsh blockcommit when VM offline, the virsh blockcommit failed: the error messase as below: error: Requested operation is not valid: domain is not running when I start the VM, the virsh blockcommit work fine! my question is:we need virsh support blockcommit when VM offline。how...
2015 Oct 13
0
Re: virsh can't support VM offline blockcommit
...don't post the same message multiple times in a row. If someone hasn't responded, they're either busy, or haven't noticed this message. > I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to > test qemu snapshot features: > > I tried virsh blockcommit when VM offline, the virsh blockcommit > failed: the error messase as below: error: Requested operation is > not valid: domain is not running when I start the VM, the virsh > blockcommit work fine! my question is:we need virsh support > blockcommit when VM offlin...
2019 May 30
2
Using qemu active blockcommit results in 'Permission denied' error
Hello all, I tried following this guide: https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit Unfortunately when I try to do the final virsh blockcommit step I always get the following error: error: internal error: unable to execute QEMU command 'block-commit': Could not reopen file: Permission denied I checked directory und image file permissions, app-armor profiles (set to comp...
2020 Feb 07
2
Re: does the guest have a snapshot ?
...Lentes, Bernd wrote: ... > > Libvirt is probably lacking the metadata for the snapshot. That is not a > problem though, because since libvirt doesn't support deletion of > external snapshots anyways currently you'd need to use the below > approach anyways. > > virsh blockcommit crispor_1604 vda --active --pivot > > in the case above. that merges the > file='/var/lib/libvirt/images/crispor_1604/crispor_1604.sn'/ > into file='/var/lib/libvirt/images/crispor_1604/crispor_1604.img'/ and > finishes the job. > > If you have more complex ba...
2015 Oct 10
0
virsh can't support VM offline blockcommit
Hi everyone! I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to test qemu snapshot features: I tried virsh blockcommit when VM offline, the virsh blockcommit failed: the error messase as below: error: Requested operation is not valid: domain is not running when I start the VM, the virsh blockcommit work fine! my question is : we need virsh support blockcommit when VM offline...
2015 Oct 12
0
virsh can't support VM offline blockcommit
Hi everyone! I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to test qemu snapshot features: I tried virsh blockcommit when VM offline, the virsh blockcommit failed: the error messase as below: * error: Requested operation is not valid: domain is not running* when I start the VM, the virsh blockcommit work fine! my question is : we need virsh support blockcommit when VM offli...
2015 Oct 13
0
virsh can't support VM offline blockcommit
Hi everyone! I use the libvirt(version: 1.2.2) and QEMU(version: 2.2.1) to test qemu snapshot features: I tried virsh blockcommit when VM offline, the virsh blockcommit failed: the error messase as below: * error: Requested operation is not valid: domain is not running* when I start the VM, the virsh blockcommit work fine! my question is : we need virsh support blockcommit when VM offli...
2013 Sep 04
2
Is virsh blockcommit supported? Thanks a lot
Hi, I have another question, when I do the blockcommit command and get the result " Top image as the active layer is currently unsupported ", is it being developed? root@cvk-31:/vms/images# virsh blockcommit Vmtest /vms/images/Vmtest1;echo $? error: internal error unable to execute QEMU command 'block-commit': Top image as the active...
2015 Sep 11
2
Backup a VM (using live external snapshot and blockcommit)
..., so feel free to tell me if I'm asking the wrong questions and I should be proceeding totally differently. AFAIU, backups can be done at filesystem level (using LVM) and at virtualization level (using libvirt). We chose the libvirt way. AFAIU, live backups using libvirt may be done thanks to blockcommit as explained here on the wiki [2]. -> Considering our use case, is this the recommended way? Assuming yes, here is the plan. I wrote a script that does # Create snapshot virsh snapshot-create-as --domain $VM_NAME snap --diskspec vda,file=$VM_DIR/"$VM_NAME"-snap.qcow2 --disk-only...
2015 May 21
1
Blockcommit error
HI, I am receiving the following error when I try to run blockcommit: ============================================================== root@farnsworth:/var/lib/libvirt/images# virsh blockcommit pg94-test vda --top /var/lib/libvirt/images/pg94-test.snap4 --active --pivot --verbose error: unsupported flags (0x4) in function qemuDomainBlockCommit ========================...
2014 Apr 18
1
virsh blockcommit hangs at 100%
hi, i am trying to blockcommit a external qcow2 snapshot back into its raw backing file like: sudo virsh blockcommit myDomainName vda --wait --verbose the output just shows: Block Commit: [100 %] and stays like that (i waited about an hour or so...). No "Commit complete" message. - explicitly passing --base and/...
2015 Dec 07
3
Efficient live disk backup with active blockcommit : Failed 'block-commit': Could not reopen file: Permission denied
...in use, again. It can be noticed, the new overlay 'sn2.qcow2' is the current disk in use: virsh # domblklist vm-01 Target Source ------------------------------------------------ vda /var/lib/libvirt/sn2.qcow2 hda /dev/sr0 Now that the backup is finished, perform active blockcommit by live mergning contents of sn2 into base: ubuntu@keyurubuntu:~$ virsh blockcommit vm-01 vda --active --verbose --pivot error: internal error: unable to execute QEMU command 'block-commit': Could not reopen file: Permission denied I am not sure why this is getting as permission denied. I...
2019 May 31
4
Re: Using qemu active blockcommit results in 'Permission denied' error
Hi Peter, On 31.05.19 09:57, Peter Krempa wrote: > On Thu, May 30, 2019 at 22:12:14 +0200, Marcus Hoffmann wrote: >> Hello all, > > Hi, > >> >> I tried following this guide: >> https://wiki.libvirt.org/page/Live-disk-backup-with-active-blockcommit >> >> Unfortunately when I try to do the final virsh blockcommit step I always >> get the following error: >> >> error: internal error: unable to execute QEMU command 'block-commit': >> Could not reopen file: Permission denied >> >> I checked...