Re: [ovirt-users] Backup solution using the API
Dear Liron, thanks alot, i know, i was following that, however the Live Merge Feature was missing in CentOS 7, that was already the discussion. Now on Fedora 20 the Live Merge works (we have to stick to Fedora then until this is in CentOS 7.1 ?! ) I am experimenting with scripts to iterate through all machines and do a backup for all machines on a separate VM, I will let you know how that goes Cheers Soeren -Original Message- From: Liron Aravot [mailto:lara...@redhat.com] Sent: Monday, February 16, 2015 10:15 AM To: Soeren Malchow Cc: Adam Litke; Nir Soffer; Thomas Keppler (PEBA); users@ovirt.org Subject: Re: [ovirt-users] Backup solution using the API - Original Message - > From: "Soeren Malchow" > To: "Adam Litke" , "Nir Soffer" > > Cc: "Thomas Keppler (PEBA)" , users@ovirt.org > Sent: Wednesday, February 11, 2015 7:30:48 PM > Subject: Re: [ovirt-users] Backup solution using the API > > Dear all, > > i am a little lost, i tried quite a few things with the snapshots, so > far with python scripts I can iterate through the existing machines, > take one, make a snapshot and all this. > > However, there are 2 problems I can not get around: > > 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if > I understood that correctly this relies on the Live Merge Feature > where the code is available in vdsm already but it needs a certain > libvirt version !?!? > So question here is, can I delete a snapshot or not ? can I use only > the rest API not python (excuse me I am not a developer) > > 2. when I attach a snapshot to another virtual machine, how do I do > the backup then ? Does anybody have this already ? Hi Soeren, you can find detailed example for Backup/Restore flows here - http://www.ovirt.org/Features/Backup-Restore_API_Integration thanks, laravot. > > The environment is running on CentOS 7 (hypervisors), Centos 6 (hosted > engine), the ovirt is on version 3.5.1, also we use gluster as a > storage backend where the gluster servers are managed within the > hosted engine in a separate cluster exporting the storage only. > > Regards > Soeren > > > -Original Message- > From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On > Behalf Of Adam Litke > Sent: Tuesday, January 6, 2015 5:04 PM > To: Nir Soffer > Cc: Thomas Keppler (PEBA); users@ovirt.org > Subject: Re: [ovirt-users] Backup solution using the API > > On 15/12/14 04:31 -0500, Nir Soffer wrote: > >----- Original Message - > >> From: "Blaster" > >> To: "Thomas Keppler (PEBA)" , > >> users@ovirt.org > >> Sent: Wednesday, December 10, 2014 8:06:58 PM > >> Subject: Re: [ovirt-users] Backup solution using the API > >> > >> On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: > >> > >> > >> > >> Now, before I go into any more hassle, has somebody else of you > >> done a live-backup solution for oVirt? Are there any recommendations? > >> Thanks for any help provided! > >> > >> > >> I've been looking for a similar scheme for the last year. It was > >> not > >> (really) possible in the past as there wasn't any way to destroy a > >> snapshot w/o shutting down the VM. Is this still the case, or are > >> snap shots fully implemented now? > >> > >> Basically, I'd like to: > >> Tell VM to flush it's buffers > >> suspend VM > >> take snap shot of boot virtual disk resume VM > > > >You don't need to suspend the vm, qemu can create live snapshot. When > >the snapshot is done, you don't care about future io, it will simply > >not included in the backup. > > > >> backup the virtual boot disk from the Hypervisor using standard > >> commands (tar, cp, whatever) > > > >You can by attaching the snapshot to another vm > > > >> destroy the snapshot > > > >You can in ovirt 3.5.1 - we do not depend any more on future libvirt > >features. > >Adam, can you confirm? > > Yes, on 3.5.1 you'll be able to destroy the snapshot without impacting > the running VM. > > >> > >> This would at least give some BMR capabilities of your VMs. > >> > >> Ideally, I'd also like to be able to create a snapshot from within > >> the VM, do > > > >You can do this "within" the vm by using the engine REST API. But > >this can be fragile - for example, if the vm pauses, your backup tool > >within the vm will never complete :-) > > > >> a yum u
Re: [ovirt-users] Backup solution using the API
- Original Message - > From: "Soeren Malchow" > To: "Adam Litke" , "Nir Soffer" > Cc: "Thomas Keppler (PEBA)" , users@ovirt.org > Sent: Wednesday, February 11, 2015 7:30:48 PM > Subject: Re: [ovirt-users] Backup solution using the API > > Dear all, > > i am a little lost, i tried quite a few things with the snapshots, so far > with python scripts I can iterate through the existing machines, take one, > make a snapshot and all this. > > However, there are 2 problems I can not get around: > > 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if I > understood that correctly this relies on the Live Merge Feature where the > code is available in vdsm already but it needs a certain libvirt version > !?!? > So question here is, can I delete a snapshot or not ? can I use only the rest > API not python (excuse me I am not a developer) > > 2. when I attach a snapshot to another virtual machine, how do I do the > backup then ? Does anybody have this already ? Hi Soeren, you can find detailed example for Backup/Restore flows here - http://www.ovirt.org/Features/Backup-Restore_API_Integration thanks, laravot. > > The environment is running on CentOS 7 (hypervisors), Centos 6 (hosted > engine), the ovirt is on version 3.5.1, also we use gluster as a storage > backend where the gluster servers are managed within the hosted engine in a > separate cluster exporting the storage only. > > Regards > Soeren > > > -Original Message- > From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of > Adam Litke > Sent: Tuesday, January 6, 2015 5:04 PM > To: Nir Soffer > Cc: Thomas Keppler (PEBA); users@ovirt.org > Subject: Re: [ovirt-users] Backup solution using the API > > On 15/12/14 04:31 -0500, Nir Soffer wrote: > >- Original Message - > >> From: "Blaster" > >> To: "Thomas Keppler (PEBA)" , users@ovirt.org > >> Sent: Wednesday, December 10, 2014 8:06:58 PM > >> Subject: Re: [ovirt-users] Backup solution using the API > >> > >> On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: > >> > >> > >> > >> Now, before I go into any more hassle, has somebody else of you done > >> a live-backup solution for oVirt? Are there any recommendations? > >> Thanks for any help provided! > >> > >> > >> I've been looking for a similar scheme for the last year. It was not > >> (really) possible in the past as there wasn't any way to destroy a > >> snapshot w/o shutting down the VM. Is this still the case, or are > >> snap shots fully implemented now? > >> > >> Basically, I'd like to: > >> Tell VM to flush it's buffers > >> suspend VM > >> take snap shot of boot virtual disk > >> resume VM > > > >You don't need to suspend the vm, qemu can create live snapshot. When > >the snapshot is done, you don't care about future io, it will simply > >not included in the backup. > > > >> backup the virtual boot disk from the Hypervisor using standard > >> commands (tar, cp, whatever) > > > >You can by attaching the snapshot to another vm > > > >> destroy the snapshot > > > >You can in ovirt 3.5.1 - we do not depend any more on future libvirt > >features. > >Adam, can you confirm? > > Yes, on 3.5.1 you'll be able to destroy the snapshot without impacting the > running VM. > > >> > >> This would at least give some BMR capabilities of your VMs. > >> > >> Ideally, I'd also like to be able to create a snapshot from within > >> the VM, do > > > >You can do this "within" the vm by using the engine REST API. But this > >can be fragile - for example, if the vm pauses, your backup tool within > >the vm will never complete :-) > > > >> a yum update, see if I like it or not, if I do, then destroy the snap > >> shot. > > > >Possible in 3.5.1 using REST API > > > >> If I don't, I want to promote the snapshot and boot from that, then > >> destroy the "original". > > > >Same > > > >Nir > > -- > Adam Litke > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
- Soeren Malchow wrote: > Dear all, > > thank you for the help, right now we are at a state where we can do snapshots > and remove them, since there are no ovirt packages for Fedora 21 we are using > fedora 20 + virt-preview. > Everything is working fine from a spanshot perspective. Excellent. Glad to hear it! > > Regards > Soeren > > From: Gianluca Cecchi [mailto:gianluca.cec...@gmail.com] > Sent: Wednesday, February 11, 2015 10:23 PM > To: Adam Litke > Cc: users; Soeren Malchow; Thomas Keppler (PEBA) > Subject: Re: [ovirt-users] Backup solution using the API > > > Il 11/Feb/2015 19:10 "Adam Litke" > mailto:ali...@redhat.com>> ha scritto: > > > > On 11/02/15 17:30 +, Soeren Malchow wrote: > >> > >> Dear all, > >> > >> i am a little lost, i tried quite a few things with the snapshots, so > >> far with python scripts I can iterate through the existing machines, > >> take one, make a snapshot and all this. > >> > >> However, there are 2 problems I can not get around: > >> > >> 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if > >> I understood that correctly this relies on the Live Merge Feature > >> where the code is available in vdsm already but it needs a certain > >> libvirt version !?!? So question here is, can I delete a snapshot or > >> not ? can I use only the rest API not python (excuse me I am not a > >> developer) > > > > > > I can answer this one at least. For now, Centos 7 is lacking a new > > enough version of libvirt to support Live Merge (> 1.2.7). The > > virt-preview repository for Fedora is shipping a newer libvirt. You > > can check if vdsm will support live merge by executing the following > > on the host in question: > > > > sudo vdsClient -s 0 getVdsCaps | grep liveMerge > > > > RHEL 7.1 will be shipping a version with the neccessary backports to > > support live merge so I imagine Centos 7.1 will pick those up > > automatically? > > > > > > -- > > Adam Litke > > ___ > > Users mailing list > > Users@ovirt.org<mailto:Users@ovirt.org> > > http://lists.ovirt.org/mailman/listinfo/users > > I confirm that at least on f21 tc3 I was able to live delete snapshots, also > into the active layer. > See: > http://lists.ovirt.org/pipermail/users/2014-November/029450.html > and the whole thread. > I hope that RHEL 7.1 (and CentOS) will have the merging into the active layer > too and not only into the chain history. > > Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
Dear all, thank you for the help, right now we are at a state where we can do snapshots and remove them, since there are no ovirt packages for Fedora 21 we are using fedora 20 + virt-preview. Everything is working fine from a spanshot perspective. Regards Soeren From: Gianluca Cecchi [mailto:gianluca.cec...@gmail.com] Sent: Wednesday, February 11, 2015 10:23 PM To: Adam Litke Cc: users; Soeren Malchow; Thomas Keppler (PEBA) Subject: Re: [ovirt-users] Backup solution using the API Il 11/Feb/2015 19:10 "Adam Litke" mailto:ali...@redhat.com>> ha scritto: > > On 11/02/15 17:30 +, Soeren Malchow wrote: >> >> Dear all, >> >> i am a little lost, i tried quite a few things with the snapshots, so >> far with python scripts I can iterate through the existing machines, >> take one, make a snapshot and all this. >> >> However, there are 2 problems I can not get around: >> >> 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if >> I understood that correctly this relies on the Live Merge Feature >> where the code is available in vdsm already but it needs a certain >> libvirt version !?!? So question here is, can I delete a snapshot or >> not ? can I use only the rest API not python (excuse me I am not a >> developer) > > > I can answer this one at least. For now, Centos 7 is lacking a new > enough version of libvirt to support Live Merge (> 1.2.7). The > virt-preview repository for Fedora is shipping a newer libvirt. You > can check if vdsm will support live merge by executing the following > on the host in question: > > sudo vdsClient -s 0 getVdsCaps | grep liveMerge > > RHEL 7.1 will be shipping a version with the neccessary backports to > support live merge so I imagine Centos 7.1 will pick those up > automatically? > > > -- > Adam Litke > ___ > Users mailing list > Users@ovirt.org<mailto:Users@ovirt.org> > http://lists.ovirt.org/mailman/listinfo/users I confirm that at least on f21 tc3 I was able to live delete snapshots, also into the active layer. See: http://lists.ovirt.org/pipermail/users/2014-November/029450.html and the whole thread. I hope that RHEL 7.1 (and CentOS) will have the merging into the active layer too and not only into the chain history. Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
Il 11/Feb/2015 19:10 "Adam Litke" ha scritto: > > On 11/02/15 17:30 +, Soeren Malchow wrote: >> >> Dear all, >> >> i am a little lost, i tried quite a few things with the snapshots, so >> far with python scripts I can iterate through the existing machines, >> take one, make a snapshot and all this. >> >> However, there are 2 problems I can not get around: >> >> 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if >> I understood that correctly this relies on the Live Merge Feature >> where the code is available in vdsm already but it needs a certain >> libvirt version !?!? So question here is, can I delete a snapshot or >> not ? can I use only the rest API not python (excuse me I am not a >> developer) > > > I can answer this one at least. For now, Centos 7 is lacking a new > enough version of libvirt to support Live Merge (> 1.2.7). The > virt-preview repository for Fedora is shipping a newer libvirt. You > can check if vdsm will support live merge by executing the following > on the host in question: > > sudo vdsClient -s 0 getVdsCaps | grep liveMerge > > RHEL 7.1 will be shipping a version with the neccessary backports to > support live merge so I imagine Centos 7.1 will pick those up > automatically? > > > -- > Adam Litke > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users I confirm that at least on f21 tc3 I was able to live delete snapshots, also into the active layer. See: http://lists.ovirt.org/pipermail/users/2014-November/029450.html and the whole thread. I hope that RHEL 7.1 (and CentOS) will have the merging into the active layer too and not only into the chain history. Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
On 11/02/15 17:30 +, Soeren Malchow wrote: Dear all, i am a little lost, i tried quite a few things with the snapshots, so far with python scripts I can iterate through the existing machines, take one, make a snapshot and all this. However, there are 2 problems I can not get around: 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if I understood that correctly this relies on the Live Merge Feature where the code is available in vdsm already but it needs a certain libvirt version !?!? So question here is, can I delete a snapshot or not ? can I use only the rest API not python (excuse me I am not a developer) I can answer this one at least. For now, Centos 7 is lacking a new enough version of libvirt to support Live Merge (> 1.2.7). The virt-preview repository for Fedora is shipping a newer libvirt. You can check if vdsm will support live merge by executing the following on the host in question: sudo vdsClient -s 0 getVdsCaps | grep liveMerge RHEL 7.1 will be shipping a version with the neccessary backports to support live merge so I imagine Centos 7.1 will pick those up automatically? -- Adam Litke ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
Dear all, i am a little lost, i tried quite a few things with the snapshots, so far with python scripts I can iterate through the existing machines, take one, make a snapshot and all this. However, there are 2 problems I can not get around: 1. even when on 3.5.1 I can not delete a snapshot on a running VM, if I understood that correctly this relies on the Live Merge Feature where the code is available in vdsm already but it needs a certain libvirt version !?!? So question here is, can I delete a snapshot or not ? can I use only the rest API not python (excuse me I am not a developer) 2. when I attach a snapshot to another virtual machine, how do I do the backup then ? Does anybody have this already ? The environment is running on CentOS 7 (hypervisors), Centos 6 (hosted engine), the ovirt is on version 3.5.1, also we use gluster as a storage backend where the gluster servers are managed within the hosted engine in a separate cluster exporting the storage only. Regards Soeren -Original Message- From: users-boun...@ovirt.org [mailto:users-boun...@ovirt.org] On Behalf Of Adam Litke Sent: Tuesday, January 6, 2015 5:04 PM To: Nir Soffer Cc: Thomas Keppler (PEBA); users@ovirt.org Subject: Re: [ovirt-users] Backup solution using the API On 15/12/14 04:31 -0500, Nir Soffer wrote: >- Original Message - >> From: "Blaster" >> To: "Thomas Keppler (PEBA)" , users@ovirt.org >> Sent: Wednesday, December 10, 2014 8:06:58 PM >> Subject: Re: [ovirt-users] Backup solution using the API >> >> On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: >> >> >> >> Now, before I go into any more hassle, has somebody else of you done >> a live-backup solution for oVirt? Are there any recommendations? >> Thanks for any help provided! >> >> >> I've been looking for a similar scheme for the last year. It was not >> (really) possible in the past as there wasn't any way to destroy a >> snapshot w/o shutting down the VM. Is this still the case, or are >> snap shots fully implemented now? >> >> Basically, I'd like to: >> Tell VM to flush it's buffers >> suspend VM >> take snap shot of boot virtual disk >> resume VM > >You don't need to suspend the vm, qemu can create live snapshot. When >the snapshot is done, you don't care about future io, it will simply >not included in the backup. > >> backup the virtual boot disk from the Hypervisor using standard >> commands (tar, cp, whatever) > >You can by attaching the snapshot to another vm > >> destroy the snapshot > >You can in ovirt 3.5.1 - we do not depend any more on future libvirt features. >Adam, can you confirm? Yes, on 3.5.1 you'll be able to destroy the snapshot without impacting the running VM. >> >> This would at least give some BMR capabilities of your VMs. >> >> Ideally, I'd also like to be able to create a snapshot from within >> the VM, do > >You can do this "within" the vm by using the engine REST API. But this >can be fragile - for example, if the vm pauses, your backup tool within >the vm will never complete :-) > >> a yum update, see if I like it or not, if I do, then destroy the snap shot. > >Possible in 3.5.1 using REST API > >> If I don't, I want to promote the snapshot and boot from that, then >> destroy the "original". > >Same > >Nir -- Adam Litke ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
On 15/12/14 04:31 -0500, Nir Soffer wrote: - Original Message - From: "Blaster" To: "Thomas Keppler (PEBA)" , users@ovirt.org Sent: Wednesday, December 10, 2014 8:06:58 PM Subject: Re: [ovirt-users] Backup solution using the API On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: Now, before I go into any more hassle, has somebody else of you done a live-backup solution for oVirt? Are there any recommendations? Thanks for any help provided! I've been looking for a similar scheme for the last year. It was not (really) possible in the past as there wasn't any way to destroy a snapshot w/o shutting down the VM. Is this still the case, or are snap shots fully implemented now? Basically, I'd like to: Tell VM to flush it's buffers suspend VM take snap shot of boot virtual disk resume VM You don't need to suspend the vm, qemu can create live snapshot. When the snapshot is done, you don't care about future io, it will simply not included in the backup. backup the virtual boot disk from the Hypervisor using standard commands (tar, cp, whatever) You can by attaching the snapshot to another vm destroy the snapshot You can in ovirt 3.5.1 - we do not depend any more on future libvirt features. Adam, can you confirm? Yes, on 3.5.1 you'll be able to destroy the snapshot without impacting the running VM. This would at least give some BMR capabilities of your VMs. Ideally, I'd also like to be able to create a snapshot from within the VM, do You can do this "within" the vm by using the engine REST API. But this can be fragile - for example, if the vm pauses, your backup tool within the vm will never complete :-) a yum update, see if I like it or not, if I do, then destroy the snap shot. Possible in 3.5.1 using REST API If I don't, I want to promote the snapshot and boot from that, then destroy the "original". Same Nir -- Adam Litke ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
- Original Message - > From: "Blaster" > To: "Thomas Keppler (PEBA)" , users@ovirt.org > Sent: Wednesday, December 10, 2014 8:06:58 PM > Subject: Re: [ovirt-users] Backup solution using the API > > On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: > > > > Now, before I go into any more hassle, has somebody else of you done a > live-backup solution for oVirt? Are there any recommendations? Thanks for > any help provided! > > > I've been looking for a similar scheme for the last year. It was not (really) > possible in the past as there wasn't any way to destroy a snapshot w/o > shutting down the VM. Is this still the case, or are snap shots fully > implemented now? > > Basically, I'd like to: > Tell VM to flush it's buffers > suspend VM > take snap shot of boot virtual disk > resume VM You don't need to suspend the vm, qemu can create live snapshot. When the snapshot is done, you don't care about future io, it will simply not included in the backup. > backup the virtual boot disk from the Hypervisor using standard commands > (tar, cp, whatever) You can by attaching the snapshot to another vm > destroy the snapshot You can in ovirt 3.5.1 - we do not depend any more on future libvirt features. Adam, can you confirm? > > This would at least give some BMR capabilities of your VMs. > > Ideally, I'd also like to be able to create a snapshot from within the VM, do You can do this "within" the vm by using the engine REST API. But this can be fragile - for example, if the vm pauses, your backup tool within the vm will never complete :-) > a yum update, see if I like it or not, if I do, then destroy the snap shot. Possible in 3.5.1 using REST API > If I don't, I want to promote the snapshot and boot from that, then destroy > the "original". Same Nir ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
On 12/10/2014 01:06 PM, Blaster wrote: On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: Now, before I go into any more hassle, has somebody else of you done a live-backup solution for oVirt? Are there any recommendations? Thanks for any help provided! I've been looking for a similar scheme for the last year. It was not (really) possible in the past as there wasn't any way to destroy a snapshot w/o shutting down the VM. Is this still the case, or are snap shots fully implemented now? Basically, I'd like to: Tell VM to flush it's buffers suspend VM take snap shot of boot virtual disk resume VM backup the virtual boot disk from the Hypervisor using standard commands (tar, cp, whatever) destroy the snapshot This would at least give some BMR capabilities of your VMs. Ideally, I'd also like to be able to create a snapshot from within the VM, do a yum update, see if I like it or not, if I do, then destroy the snap shot. If I don't, I want to promote the snapshot and boot from that, then destroy the "original". (Yes, I know, BTRFS is supposed to be the solution to this with in the VM at some point, isn't it?) I have looked at the oVirt backup API wiki, but the code examples look more like pseudo code than real world examples. that's "live merge". its in 3.5, but pending rhel/centos 7.1 (and accompanying 3.5.z patches around for bugs found during testing with that upcoming release) ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
On 11/27/2014 9:12 AM, Keppler, Thomas (PEBA) wrote: Now, before I go into any more hassle, has somebody else of you done a live-backup solution for oVirt? Are there any recommendations? Thanks for any help provided! I've been looking for a similar scheme for the last year. It was not (really) possible in the past as there wasn't any way to destroy a snapshot w/o shutting down the VM. Is this still the case, or are snap shots fully implemented now? Basically, I'd like to: Tell VM to flush it's buffers suspend VM take snap shot of boot virtual disk resume VM backup the virtual boot disk from the Hypervisor using standard commands (tar, cp, whatever) destroy the snapshot This would at least give some BMR capabilities of your VMs. Ideally, I'd also like to be able to create a snapshot from within the VM, do a yum update, see if I like it or not, if I do, then destroy the snap shot. If I don't, I want to promote the snapshot and boot from that, then destroy the "original". (Yes, I know, BTRFS is supposed to be the solution to this with in the VM at some point, isn't it?) I have looked at the oVirt backup API wiki, but the code examples look more like pseudo code than real world examples. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
- Original Message - > From: "Thomas Keppler (PEBA)" > To: "Liron Aravot" > Sent: Thursday, December 4, 2014 12:01:28 PM > Subject: Re: [ovirt-users] Backup solution using the API > > The Export Phase. > There's no export phase, you create a snapshot and then you backup the data present to the time of the snapshot. > -- > Best regards > Thomas Keppler > > > Am 04.12.2014 um 10:54 schrieb Liron Aravot : > > > > > > > > - Original Message - > >> From: "Thomas Keppler (PEBA)" > >> To: "Liron Aravot" > >> Sent: Thursday, December 4, 2014 11:41:13 AM > >> Subject: Re: [ovirt-users] Backup solution using the API > >> > >> This it requires you to halt the vm, therefore it's not usable for us. > > What phase requires to halt the vm? > >> -- > >> Best regards > >> Thomas Keppler > >> > >>> Am 04.12.2014 um 08:51 schrieb Liron Aravot : > >>> > >>> Hi Thomas/plysan > >>> oVirt has the Backup/Restore api designated to provide the capabilities > >>> to > >>> backup/restore a vm. > >>> see here: > >>> http://www.ovirt.org/Features/Backup-Restore_API_Integration > >>> > >>> - Original Message - > >>>> From: "plysan" > >>>> To: "Thomas Keppler (PEBA)" > >>>> Cc: users@ovirt.org > >>>> Sent: Thursday, December 4, 2014 3:51:24 AM > >>>> Subject: Re: [ovirt-users] Backup solution using the API > >>>> > >>>> Hi, > >>>> > >>>> For the live-backup, i think you can make a live snapshot of the vm, and > >>>> then > >>>> clone a new vm from that snapshot, after that you can do export. > >>>> > >>>> 2014-11-27 23:12 GMT+08:00 Keppler, Thomas (PEBA) < > >>>> thomas.kepp...@kit.edu > >>>> : > >>>> > >>>> > >>>> > >>>> Hello, > >>>> > >>>> now that our oVirt Cluster runs great, I'd like to know if anybody has > >>>> done a > >>>> backup solution for oVirt before. > >>>> > >>>> My basic idea goes as follows: > >>>> - Create a JSON file with machine's preferences for later restore, > >>>> create > >>>> a > >>>> snapshot, snatch the disk by its disk-id (copy it to the fileserver), > >>>> then > >>>> deleting the snapshot and be done with it. > >>>> - On restore I'd just create a new VM with the Disks and NICs specified > >>>> in > >>>> the preferences; then I'd go ahead and and put back the disk... t > >>>> > >>>> I've played a little bit around with building a JSON file and so far it > >>>> works > >>>> great; I haven't tried to make a VM with that, though... > >>>> > >>>> Using the export domain or a simple export command is not what I want > >>>> since > >>>> you'd have to turn off the machine to do that - AFAIK. Correct me if > >>>> that > >>>> should not be true. > >>>> > >>>> Now, before I go into any more hassle, has somebody else of you done a > >>>> live-backup solution for oVirt? Are there any recommendations? Thanks > >>>> for > >>>> any help provided! > >>>> > >>>> Best regards > >>>> Thomas Keppler > >>>> > >>>> ___ > >>>> Users mailing list > >>>> Users@ovirt.org > >>>> http://lists.ovirt.org/mailman/listinfo/users > >>>> > >>>> > >>>> > >>>> ___ > >>>> Users mailing list > >>>> Users@ovirt.org > >>>> http://lists.ovirt.org/mailman/listinfo/users > >> > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
Hi Thomas/plysan oVirt has the Backup/Restore api designated to provide the capabilities to backup/restore a vm. see here: http://www.ovirt.org/Features/Backup-Restore_API_Integration - Original Message - > From: "plysan" > To: "Thomas Keppler (PEBA)" > Cc: users@ovirt.org > Sent: Thursday, December 4, 2014 3:51:24 AM > Subject: Re: [ovirt-users] Backup solution using the API > > Hi, > > For the live-backup, i think you can make a live snapshot of the vm, and then > clone a new vm from that snapshot, after that you can do export. > > 2014-11-27 23:12 GMT+08:00 Keppler, Thomas (PEBA) < thomas.kepp...@kit.edu > > : > > > > Hello, > > now that our oVirt Cluster runs great, I'd like to know if anybody has done a > backup solution for oVirt before. > > My basic idea goes as follows: > - Create a JSON file with machine's preferences for later restore, create a > snapshot, snatch the disk by its disk-id (copy it to the fileserver), then > deleting the snapshot and be done with it. > - On restore I'd just create a new VM with the Disks and NICs specified in > the preferences; then I'd go ahead and and put back the disk... t > > I've played a little bit around with building a JSON file and so far it works > great; I haven't tried to make a VM with that, though... > > Using the export domain or a simple export command is not what I want since > you'd have to turn off the machine to do that - AFAIK. Correct me if that > should not be true. > > Now, before I go into any more hassle, has somebody else of you done a > live-backup solution for oVirt? Are there any recommendations? Thanks for > any help provided! > > Best regards > Thomas Keppler > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [ovirt-users] Backup solution using the API
Hi, For the live-backup, i think you can make a live snapshot of the vm, and then clone a new vm from that snapshot, after that you can do export. 2014-11-27 23:12 GMT+08:00 Keppler, Thomas (PEBA) : > Hello, > > now that our oVirt Cluster runs great, I'd like to know if anybody has > done a backup solution for oVirt before. > > My basic idea goes as follows: > - Create a JSON file with machine's preferences for later restore, create > a snapshot, snatch the disk by its disk-id (copy it to the fileserver), > then deleting the snapshot and be done with it. > - On restore I'd just create a new VM with the Disks and NICs specified in > the preferences; then I'd go ahead and and put back the disk... t > > I've played a little bit around with building a JSON file and so far it > works great; I haven't tried to make a VM with that, though... > > Using the export domain or a simple export command is not what I want > since you'd have to turn off the machine to do that - AFAIK. Correct me if > that should not be true. > > Now, before I go into any more hassle, has somebody else of you done a > live-backup solution for oVirt? Are there any recommendations? Thanks for > any help provided! > > Best regards > Thomas Keppler > > ___ > Users mailing list > Users@ovirt.org > http://lists.ovirt.org/mailman/listinfo/users > > ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users