search for: blockcopy

Displaying 20 results from an estimated 93 matches for "blockcopy".

2013 Jun 09
2
virsh snapshot-create and blockcopy
Hello. I just tried the following: virsh dumpxml --security-info gentoo-template > gentoo-template.xml virsh snapshot-create gentoo-template virsh undefine gentoo-template virsh blockcopy gentoo-template vda /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 --wait --verbose --finish virsh define gentoo-template.xml virsh snapshot-delete gentoo-template --current But if i restore the /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 the snapshot is...
2013 Jun 10
2
Re: virsh snapshot-create and blockcopy
...e: You cannot undefine a guest with a snapshot without first deleting its metadata > > To cleanly delete, maybe you should've done: > > $ virsh snapshot-delete --domain gentoo-template SNAPSHOTID --metadata Did that. But that deletes that snapshot too, no? > >> virsh blockcopy gentoo-template vda >> /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 --wait --verbose --finish >> virsh define gentoo-template.xml > > Can you also paste the output of: > > $ qemu-img info --backing-chain \ > /opt/virt-backup-blockcopy/gentoo-temp...
2015 Jan 16
3
How do you force a VM reboot (when its KPd etc) without interrupting a blockcopy?
My question is this: If you have an ongoing blockcopy (drive-mirror) of a running transient VM, and the VM kernel panics, can you restart the VM without interrupting the ongoing blockcopy? A virsh reboot won't work since if the VM is kernel panicked, its not going to respond to ACPI requests.
2013 Jun 10
1
Re: virsh snapshot-create and blockcopy
...gt; >>> $ virsh snapshot-delete --domain gentoo-template SNAPSHOTID --metadata >> >> Did that. But that deletes that snapshot too, no? > > Yes. (I just understood what you wanted to do). Noted my details below. > > >> >>> >>>> virsh blockcopy gentoo-template vda >>>> /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 --wait --verbose --finish >>>> virsh define gentoo-template.xml >>> >>> Can you also paste the output of: >>> >>> $ qemu-img info --backing-chain \...
2020 Mar 16
1
live storage migration using blockcopy
Hello, I'm seeking the solution to live storage migration using blockcopy. Previously, the "virsh undefine" is required before blockcopy. https://www.redhat.com/archives/libvirt-users/2015-October/msg00027.html QEMU has "block-dirty-bitmap-*" operations now, are there steps for the live storage migration using blockcopy without undefine? By the way,...
2014 Dec 23
2
Re: Using virsh blockcopy -- what's it supposed to accomplish?
On Mon, Dec 22, 2014 at 03:50:58PM -0700, Eric Blake wrote: > On 12/22/2014 03:27 PM, Gary R Hook wrote: > > I am experimenting with the blockcopy command, and after figuring out > > how to integrate qemu-nbd, nbd-client and > > dumpxml/undefine/blockcopy/define/et. al. I have one remaining question: > > > > What's the point? > > Among other uses, live storage migration. > > Let's say you are run...
2013 Jul 02
2
Re: backup procedure using blockcopy
> virsh dumpxml --security-info dom > dom.xml > virsh undefine dom Hello. Someone was talking about this (undefining the VM) would not be neccessary anymore when qemu-1.5 has been released. Is that true? > virsh blockcopy dom vda /path/to/backup-vda > polling loop - check periodically until 'virsh blockjob dom vda' > shows 100% completion > virsh suspend dom > virsh save dom /path/to/memory-backup --running This does not work for me. hn ~ # virsh blockjob gentoo-template vda Block Copy:...
2013 Jun 10
0
Re: virsh snapshot-create and blockcopy
...delete, maybe you should've done: >> >> $ virsh snapshot-delete --domain gentoo-template SNAPSHOTID --metadata > > Did that. But that deletes that snapshot too, no? Yes. (I just understood what you wanted to do). Noted my details below. > >> >>> virsh blockcopy gentoo-template vda >>> /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 --wait --verbose --finish >>> virsh define gentoo-template.xml >> >> Can you also paste the output of: >> >> $ qemu-img info --backing-chain \ >> /opt/virt-ba...
2015 Oct 14
2
virsh blockcopy without undefine
2014 Feb 05
4
Re: Can I move the disk image of the guest while it is running?
...Will I loose anything if - for example - there is not enough space on the target device? Or it will still use the original disk image? AFAIK, a transient guest only means it will disappear after the virtualisation session ends. > virsh dumpxml $dom > file > virsh undefine $dom > virsh blockcopy $dom /ssd/image.raw /hdd/image.raw \ > --wait --verbose --pivot > virsh define file I could not find anything about "pivot" or "pivoting"? What does --pivot do in this case? Thank you. -- Üdvözlettel / Best regards Horváth Gergely | gergely.horvath@inepex.com IneTr...
2014 Dec 22
7
Using virsh blockcopy -- what's it supposed to accomplish?
I am experimenting with the blockcopy command, and after figuring out how to integrate qemu-nbd, nbd-client and dumpxml/undefine/blockcopy/define/et. al. I have one remaining question: What's the point? The "replication" disk file is not, from what I can ascertain, bootable. I expect this operation to create a pristi...
2013 Jun 10
0
Re: virsh snapshot-create and blockcopy
...is that really the command you used after "snapshot-create" ? Because: You cannot undefine a guest with a snapshot without first deleting its metadata To cleanly delete, maybe you should've done: $ virsh snapshot-delete --domain gentoo-template SNAPSHOTID --metadata > virsh blockcopy gentoo-template vda > /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 --wait --verbose --finish > virsh define gentoo-template.xml Can you also paste the output of: $ qemu-img info --backing-chain \ /opt/virt-backup-blockcopy/gentoo-template/gentoo-template.qcow2 >...
2014 Jul 02
7
virsh blockcopy: doesn't seem to flatten the chain by default
...lost+found ><fs> quit 'snap1' has files: bar, baz, jazz $ guestfish --ro -a snap1.qcow2 [. . .] ><fs> run ><fs> mount /dev/sda1 / ><fs> ls / bar baz jazz lost+found ><fs> Now, let's do a live blockcopy (with a '--finish' to graecully finish the mirroring): $ virsh blockcopy --domain testvm2 vda \ /export/dst/copy.qcow2 \ --wait --verbose --finish Examine the contents of the above 'copy': $ guestfish --ro -a copy.qcow2 [. . .] ><fs> run...
2013 Jul 02
2
Re: backup procedure using blockcopy
...t; sure if Paolo plans on getting it in before 1.6) > 2. libvirt has code added to use persistent bitmaps > > so unfortunately, you'll still have to use undefining for a bit longer. > > Meanwhile, qemu 1.6 is adding a new block-backup command that is nicer > than the current blockcopy (it does not require a persistent bitmap, and > takes the snapshot at the point in time where it is started, not where > it is ended); I'm also trying to figure out what API additions are > needed to libvirt to expose that capability as an alternative. Okay, understood. >> &gt...
2014 Dec 10
1
How to use blockcopy in libvirt-java
Hi, ALL, I just look for the class and method to use blockcopy in libvirt-java on this page: http://libvirt.org/sources/java/javadoc/ However, I can not find out. Libvirt-java Support blockcopy ? Thanks. Best Regards, Star Guo
2015 Jan 16
0
Re: How do you force a VM reboot (when its KPd etc) without interrupting a blockcopy?
On 01/16/2015 10:21 AM, Scott Sullivan wrote: > My question is this: > > If you have an ongoing blockcopy (drive-mirror) of a running transient VM, and the VM kernel panics, can you restart the VM without interrupting the ongoing blockcopy? Sadly, this is not yet possible. There is work being done in upstream qemu to add persistent bitmap support, and the libvirt would have to be taught to drive it....
2013 Jul 02
0
Re: backup procedure using blockcopy
...missed 1.5, and I'm not even sure if Paolo plans on getting it in before 1.6) 2. libvirt has code added to use persistent bitmaps so unfortunately, you'll still have to use undefining for a bit longer. Meanwhile, qemu 1.6 is adding a new block-backup command that is nicer than the current blockcopy (it does not require a persistent bitmap, and takes the snapshot at the point in time where it is started, not where it is ended); I'm also trying to figure out what API additions are needed to libvirt to expose that capability as an alternative. > >> virsh blockcopy dom vda /path/...
2014 Dec 22
0
Re: Using virsh blockcopy -- what's it supposed to accomplish?
On 12/22/2014 03:27 PM, Gary R Hook wrote: > I am experimenting with the blockcopy command, and after figuring out > how to integrate qemu-nbd, nbd-client and > dumpxml/undefine/blockcopy/define/et. al. I have one remaining question: > > What's the point? Among other uses, live storage migration. Let's say you are running on a cluster, where your VM is runn...
2015 Jan 08
2
Re: Using virsh blockcopy -- what's it supposed to accomplish?
On 01/08/2015 12:44 PM, Gary R Hook wrote: > I've learned how to use the blockcopy command to create a local copy in > a simple disk file: > > virsh dumpxml my_domain > my_domain.xml > virsh undefine my_domain > virsh blockcopy --domain my_domain vda $PWD/dsk.copy.qcow2 --wait > --verbose --finish > virsh define my_domain.xml > > and the resulting...
2015 Oct 14
0
Re: virsh blockcopy without undefine
...> virsh dumpxml --inactive "$DOMAIN" > "$TMP/${DOMAIN}.xml" && \ > virsh dumpxml --inactive "$DOMAIN" > "$DESTINATION_XML" && \ > virsh undefine "$DOMAIN" && \ > virsh blockcopy "$DOMAIN" "$SOURCE_DISK" "$DESTINATION_DISK" > --wait --verbose --finish && \ > virsh define "$TMP/${DOMAIN}.xml" > > It's basic and did work for creating basic backups. Is there a way to do > this without undefinin...