Re: [libvirt-users] KVM incremental backup using CBT

2014-11-03 Thread Thomas Stein
Am 03.11.14 09:39, schrieb Eric Blake: > On 11/02/2014 02:13 PM, Thomas Stein wrote: > >> After a little bit of fiddling i've got this running. Here is what's >> neccessary in case someone wanna try this too. > > That's awesome news! Thanks for sharing. > > >> https://github.com/qemu/qemu/blob

Re: [libvirt-users] KVM incremental backup using CBT

2014-11-03 Thread Eric Blake
On 11/02/2014 02:13 PM, Thomas Stein wrote: > After a little bit of fiddling i've got this running. Here is what's > neccessary in case someone wanna try this too. That's awesome news! Thanks for sharing. > https://github.com/qemu/qemu/blob/master/scripts/qemu-guest-agent/fsfreeze-hook.d/mysql

Re: [libvirt-users] KVM incremental backup using CBT

2014-11-02 Thread Thomas Stein
> > A quick google search found this: > > http://callecalle.uach.cl/ovirt-engine/docs/manual/en_US/html/Technical_Gu > > id e/QEMU_Guest_Agent_Overview.html > > > > Sadly, it didn't spell out the name of where you install hook scripts > > into the guest. But this commit is pretty telling: > > ht

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-29 Thread Thomas Stein
On Wednesday 29 October 2014 13:29:25 Eric Blake wrote: > On 10/29/2014 01:07 PM, Thomas Stein wrote: > > About the --quiesce option. Do i need to do something inside the vm? The > > most commonly would probably be a sql server running inside the vm. Do i > > need to tell the sql server something a

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-29 Thread Eric Blake
On 10/29/2014 01:07 PM, Thomas Stein wrote: > About the --quiesce option. Do i need to do something inside the vm? The most > commonly would probably be a sql server running inside the vm. Do i need to > tell the sql server something about the --quiesce option i use? I read this > article here w

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-29 Thread Thomas Stein
On Saturday 11 October 2014 10:13:14 Kashyap Chamarthy wrote: > 2. Create an external live snapshot: > > $ virsh snapshot-create-as --domain vm1 sn1 \ > --diskspec vda,file=/export/images/sn1.qcow2 \ > --disk-only --atomic --no-metadata > > Note (thanks Eric Blake): Above

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-14 Thread Kashyap Chamarthy
On Mon, Oct 13, 2014 at 08:11:44PM +0200, Thomas Stein wrote: > On Monday 13 October 2014 16:35:15 Thomas Stein wrote: > > Am 13.10.14 16:25, schrieb Eric Blake: > > > On 10/13/2014 03:56 AM, Thomas Stein wrote: > > >> Hello. > > >> > > >>> blockcommit vm1 vda --active --verbose --pivot > > >> >

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Jd
On 10/13/14, 7:23 AM, Eric Blake wrote: On 10/12/2014 10:19 PM, Jd wrote: [please don't top-post on technical lists] Thanks Kashyap, The command line examples makes thing quite clear :) rsync for image (large) files create a new file for every little change, that was the reason I started look

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Thomas Stein
On Monday 13 October 2014 16:35:15 Thomas Stein wrote: > Am 13.10.14 16:25, schrieb Eric Blake: > > On 10/13/2014 03:56 AM, Thomas Stein wrote: > >> Hello. > >> > >>> blockcommit vm1 vda --active --verbose --pivot > >> > >> That's where libvirt stops working at the moment, right? > >> > >> virsh

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Thomas Stein
Am 13.10.14 16:25, schrieb Eric Blake: > On 10/13/2014 03:56 AM, Thomas Stein wrote: >> Hello. >> >>> blockcommit vm1 vda --active --verbose --pivot >> >> That's where libvirt stops working at the moment, right? >> >> virsh # blockcommit puppet-test vda --active --verbose --pivot >> error: unsup

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Eric Blake
On 10/13/2014 03:56 AM, Thomas Stein wrote: > Hello. > >> blockcommit vm1 vda --active --verbose --pivot > > That's where libvirt stops working at the moment, right? > > virsh # blockcommit puppet-test vda --active --verbose --pivot > error: unsupported flags (0x4) in function qemuDomainBlockCom

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Eric Blake
On 10/12/2014 10:19 PM, Jd wrote: [please don't top-post on technical lists] > Thanks Kashyap, > The command line examples makes thing quite clear :) > rsync for image (large) files create a new file for every little > change, that was the reason I started looking in to using dirty bitmaps. Ups

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Eric Blake
On 10/12/2014 10:14 PM, Jd wrote: > > So this seems to be already in qemu. How can I try this with KVM > context. Do I need to build from source ? or some version of KVM already > has this ? KVM is the kernel technology that allows user-space virtualization. qemu is the user-space program that t

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-13 Thread Thomas Stein
Hello. > blockcommit vm1 vda --active --verbose --pivot That's where libvirt stops working at the moment, right? virsh # blockcommit puppet-test vda --active --verbose --pivot error: unsupported flags (0x4) in function qemuDomainBlockCommit cheers t. ___

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-12 Thread Jd
Thanks Kashyap, The command line examples makes thing quite clear :) rsync for image (large) files create a new file for every little change, that was the reason I started looking in to using dirty bitmaps. /Jd On 10/11/14, 1:13 AM, Kashyap Chamarthy wrote: On Fri, Oct 10, 2014 at 07:32:06PM

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-12 Thread Jd
Thanks Eric.. inline. On 10/10/14, 6:32 PM, Eric Blake wrote: On 10/10/2014 11:37 AM, Jd wrote: Hi Looking in to implementing (CBT like) delta backup for KVM. Not quite sure what you mean by CBT. Sorry vmware term.. CBT -> changed block tracking. (dirty block) The following looks

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-12 Thread Kashyap Chamarthy
On Fri, Oct 10, 2014 at 07:32:06PM -0600, Eric Blake wrote: > On 10/10/2014 11:37 AM, Jd wrote: > > Hi > > Looking in to implementing (CBT like) delta backup for KVM. > > Not quite sure what you mean by CBT. > > > > > The following looks promising..(last paragraph) > > http://wiki.q

Re: [libvirt-users] KVM incremental backup using CBT

2014-10-10 Thread Eric Blake
On 10/10/2014 11:37 AM, Jd wrote: > Hi > Looking in to implementing (CBT like) delta backup for KVM. Not quite sure what you mean by CBT. > > The following looks promising..(last paragraph) > http://wiki.qemu.org/Features/Snapshots2 > Libvirt hasn't yet been patched to take advant

[libvirt-users] KVM incremental backup using CBT

2014-10-10 Thread Jd
Hi Looking in to implementing (CBT like) delta backup for KVM. The following looks promising..(last paragraph) http://wiki.qemu.org/Features/Snapshots2 * In the last para, there is a mention of copy the blocks from the disk using dirty-bitmap as reference. How to accomplish th