Snapshots & clone support from datastore

--_000_MWHPR11MB166305908F1E2918F9B3FE4AEDCB0MWHPR11MB1663namp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hey Guys, I am newbie to ovirt, and wanted to confirm whats the best way to leverage = snapshot, clone features provided by the datastore filesystem. I have a btrfs datastore exported and wanted use btrfs snapshots for vm sna= pshot & clones. Does ovirt offers any hooks/APIs so that image snapshots are created by the= filesystem? Thanks & Regards, Deepak --_000_MWHPR11MB166305908F1E2918F9B3FE4AEDCB0MWHPR11MB1663namp_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> </head> <body dir=3D"ltr"> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Hey Guys,</p> <p><br> </p> <p>I am newbie to ovirt, and wanted to confirm whats the best way to levera= ge snapshot, clone features </p> <p>provided by the datastore filesystem.</p> <p>I have a btrfs datastore exported and wanted use btrfs snapshots fo= r vm snapshot & clones.</p> <p>Does ovirt offers any hooks/APIs so that image snapshots are created by = the filesystem?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p> </p> </div> </body> </html> --_000_MWHPR11MB166305908F1E2918F9B3FE4AEDCB0MWHPR11MB1663namp_--

Unfortunately, there's no such integration point at the moment. On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hey Guys,
I am newbie to ovirt, and wanted to confirm whats the best way to leverage snapshot, clone features
provided by the datastore filesystem.
I have a btrfs datastore exported and wanted use btrfs snapshots for vm snapshot & clones.
Does ovirt offers any hooks/APIs so that image snapshots are created by the filesystem?
Thanks & Regards,
Deepak
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

--_000_DM5PR11MB1657164B114E44AEAF747A8EEDCB0DM5PR11MB1657namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Allon! Best Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com> Sent: Tuesday, June 6, 2017 2:43:17 PM To: Deepak Jagtap Cc: devel@ovirt.org Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Unfortunately, there's no such integration point at the moment. On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com<mail= to:deepak.jagtap@maxta.com>> wrote: Hey Guys, I am newbie to ovirt, and wanted to confirm whats the best way to leverage = snapshot, clone features provided by the datastore filesystem. I have a btrfs datastore exported and wanted use btrfs snapshots for vm sna= pshot & clones. Does ovirt offers any hooks/APIs so that image snapshots are created by the= filesystem? Thanks & Regards, Deepak _______________________________________________ Devel mailing list Devel@ovirt.org<mailto:Devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/devel --_000_DM5PR11MB1657164B114E44AEAF747A8EEDCB0DM5PR11MB1657namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Thanks Allon!</p> <p><br> </p> <p>Best Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Allon Mureinik <am= ureini@redhat.com><br> <b>Sent:</b> Tuesday, June 6, 2017 2:43:17 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> devel@ovirt.org<br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"> <div class=3D"gmail_default" style=3D"font-family:monospace,monospace">Unfo= rtunately, there's no such integration point at the moment.</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <s= pan dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"ltr"> <div id=3D"m_-4873246095173968224divtagdefaultwrapper" style=3D"font-size:1= 2pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"lt= r"> <p>Hey Guys,</p> <p><br> </p> <p>I am newbie to ovirt, and wanted to confirm whats the best way to levera= ge snapshot, clone features </p> <p>provided by the datastore filesystem.</p> <p>I have a btrfs datastore exported and wanted use btrfs snapshots fo= r vm snapshot & clones.</p> <p>Does ovirt offers any hooks/APIs so that image snapshots are created by = the filesystem?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p> </p> </div> </div> <br> ______________________________<wbr>_________________<br> Devel mailing list<br> <a href=3D"mailto:Devel@ovirt.org">Devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/devel" rel=3D"noreferrer= " target=3D"_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><= br> </blockquote> </div> <br> </div> </div> </body> </html> --_000_DM5PR11MB1657164B114E44AEAF747A8EEDCB0DM5PR11MB1657namp_--

--_000_MWHPR11MB1663F5706A4201A33C8C7759EDC50MWHPR11MB1663namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Allon, After going through current vdsm code base, noticed that after taking a sna= pshot vm starts referring the newly created qcow image/volume. For internal snapshots which are not qcow is it configurable somehow so th= at vm continues doing writes to same base image? Thanks & Regards, Deepak ________________________________ From: Deepak Jagtap Sent: Tuesday, June 6, 2017 3:37:03 PM To: Allon Mureinik Cc: devel@ovirt.org Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Thanks Allon! Best Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com> Sent: Tuesday, June 6, 2017 2:43:17 PM To: Deepak Jagtap Cc: devel@ovirt.org Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Unfortunately, there's no such integration point at the moment. On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com<mail= to:deepak.jagtap@maxta.com>> wrote: Hey Guys, I am newbie to ovirt, and wanted to confirm whats the best way to leverage = snapshot, clone features provided by the datastore filesystem. I have a btrfs datastore exported and wanted use btrfs snapshots for vm sna= pshot & clones. Does ovirt offers any hooks/APIs so that image snapshots are created by the= filesystem? Thanks & Regards, Deepak _______________________________________________ Devel mailing list Devel@ovirt.org<mailto:Devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/devel --_000_MWHPR11MB1663F5706A4201A33C8C7759EDC50MWHPR11MB1663namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Hi Allon,</p> <p><br> </p> <p>After going through current vdsm code base, noticed that after= taking a snapshot vm starts referring the newly created qcow image/volume.= </p> <p>For internal snapshots which are not qcow is it configurable = somehow so that vm continues doing writes to same base image?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Deepak Jagtap<br> <b>Sent:</b> Tuesday, June 6, 2017 3:37:03 PM<br> <b>To:</b> Allon Mureinik<br> <b>Cc:</b> devel@ovirt.org<br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div><style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;= margin-bottom:0;} --></style> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Thanks Allon!</p> <p><br> </p> <p>Best Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Allon Mureinik <am= ureini@redhat.com><br> <b>Sent:</b> Tuesday, June 6, 2017 2:43:17 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> devel@ovirt.org<br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"> <div class=3D"gmail_default" style=3D"font-family:monospace,monospace">Unfo= rtunately, there's no such integration point at the moment.</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <s= pan dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"ltr"> <div id=3D"m_-4873246095173968224divtagdefaultwrapper" style=3D"font-size:1= 2pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"lt= r"> <p>Hey Guys,</p> <p><br> </p> <p>I am newbie to ovirt, and wanted to confirm whats the best way to levera= ge snapshot, clone features </p> <p>provided by the datastore filesystem.</p> <p>I have a btrfs datastore exported and wanted use btrfs snapshots fo= r vm snapshot & clones.</p> <p>Does ovirt offers any hooks/APIs so that image snapshots are created by = the filesystem?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p> </p> </div> </div> <br> ______________________________<wbr>_________________<br> Devel mailing list<br> <a href=3D"mailto:Devel@ovirt.org">Devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/devel" rel=3D"noreferrer= " target=3D"_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><= br> </blockquote> </div> <br> </div> </div> </div> </body> </html> --_000_MWHPR11MB1663F5706A4201A33C8C7759EDC50MWHPR11MB1663namp_--

Not sure I understand the question. Could you give an example of what you mean perhpas? On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
After going through current vdsm code base, noticed that after taking a snapshot vm starts referring the newly created qcow image/volume.
For internal snapshots which are not qcow is it configurable somehow so that vm continues doing writes to same base image?
Thanks & Regards,
Deepak ------------------------------ *From:* Deepak Jagtap *Sent:* Tuesday, June 6, 2017 3:37:03 PM *To:* Allon Mureinik *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Thanks Allon!
Best Regards,
Deepak ------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 6, 2017 2:43:17 PM *To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Unfortunately, there's no such integration point at the moment.
On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hey Guys,
I am newbie to ovirt, and wanted to confirm whats the best way to leverage snapshot, clone features
provided by the datastore filesystem.
I have a btrfs datastore exported and wanted use btrfs snapshots for vm snapshot & clones.
Does ovirt offers any hooks/APIs so that image snapshots are created by the filesystem?
Thanks & Regards,
Deepak
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

--_000_MWHPR11MB1663D3BF9B01DB6E1142AB1DEDDA0MWHPR11MB1663namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Allon, I am trying to leverage snapshot capability of underlying filesystem. As per my understanding current snapshot works like this: Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm sta= rts writing on newly created qcow image. So in this case vm is going to do all new writes on snap2(qcow) voulme and = will redirect read IOs to snap1 & Base image as required. But in my case snapshots created by the filesystem are read only and it's i= n raw format. As a result after creating snapshot vm disk configuration won't change afte= r taking snapshot but will continue doing writes on same base image. So snapshots will look like this: Base Image(raw)--->snap1(raw)->snap2(raw) Base Image will always remain writable, while the snapshots will remain rea= d only raw format. Just wanted to confirm is this configurable so that vm continues referring= base image after the snapshot instead of newly created qcow image? Thanks & Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com> Sent: Tuesday, June 20, 2017 7:59:03 PM To: Deepak Jagtap Cc: devel@ovirt.org Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Not sure I understand the question. Could you give an example of what you m= ean perhpas? On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com<ma= ilto:deepak.jagtap@maxta.com>> wrote: Hi Allon, After going through current vdsm code base, noticed that after taking a sna= pshot vm starts referring the newly created qcow image/volume. For internal snapshots which are not qcow is it configurable somehow so th= at vm continues doing writes to same base image? Thanks & Regards, Deepak ________________________________ From: Deepak Jagtap Sent: Tuesday, June 6, 2017 3:37:03 PM To: Allon Mureinik Cc: devel@ovirt.org<mailto:devel@ovirt.org> Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Thanks Allon! Best Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com<mailto:amureini@redhat.com>> Sent: Tuesday, June 6, 2017 2:43:17 PM To: Deepak Jagtap Cc: devel@ovirt.org<mailto:devel@ovirt.org> Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Unfortunately, there's no such integration point at the moment. On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com<mail= to:deepak.jagtap@maxta.com>> wrote: Hey Guys, I am newbie to ovirt, and wanted to confirm whats the best way to leverage = snapshot, clone features provided by the datastore filesystem. I have a btrfs datastore exported and wanted use btrfs snapshots for vm sna= pshot & clones. Does ovirt offers any hooks/APIs so that image snapshots are created by the= filesystem? Thanks & Regards, Deepak _______________________________________________ Devel mailing list Devel@ovirt.org<mailto:Devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/devel --_000_MWHPR11MB1663D3BF9B01DB6E1142AB1DEDDA0MWHPR11MB1663namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
amureini@redhat.com</a>><br> <b>Sent:</b> Tuesday, June 6, 2017 2:43:17 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> <a href=3D"mailto:devel@ovirt.org" target=3D"_blank">devel@ovirt= .org</a><br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"> <div class=3D"gmail_default" style=3D"font-family:monospace,monospace">Unfo= rtunately, there's no such integration point at the moment.</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <s=
</head> <body> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Hi Allon,</p> <p><br> </p> <p>I am trying to leverage snapshot capability of underlying fil= esystem.</p> <p><span style=3D"font-size: 12pt;">As per my understanding current snapsho= t </span><span style=3D"font-size: 12pt;"></span><span style=3D"font-s= ize: 12pt;">works like this:</span></p> <p>Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each s= napshot vm starts writing on newly created qcow image.</p> <p>So in this case vm is going to do all new writes on snap2(qcow) voulme a= nd will redirect read IOs to snap1 & Base image as required.</p> <p><br> </p> <p>But in my case snapshots created by the filesystem are read only and it'= s in raw format.</p> <p>As a result after creating snapshot vm disk configuration won't change a= fter taking snapshot but will continue doing writes on same base image.</p> <p>So snapshots will look like this:</p> <p><span style=3D"font-family: Calibri, Arial, Helvetica, sans-serif, Emoji= Font, "Apple Color Emoji", "Segoe UI Emoji", NotoColorE= moji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;= font-size: 16px;">Base Image(raw)--->snap1(raw)->snap2(raw)</span><b= r> </p> <p><span style=3D"font-family: Calibri, Arial, Helvetica, sans-serif, Emoji= Font, "Apple Color Emoji", "Segoe UI Emoji", NotoColorE= moji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;= font-size: 16px;">Base Image will always remain writable, while the s= napshots will remain read only raw format.</span></p> <p><br> </p> <p>Just wanted to confirm is this configurable so that vm continues r= eferring base image after the snapshot instead of newly created qcow image?= </p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p><span style=3D"font-family: Calibri, Arial, Helvetica, sans-serif, Emoji= Font, "Apple Color Emoji", "Segoe UI Emoji", NotoColorE= moji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;= font-size: 16px;"><br> </span></p> <p><span style=3D"font-family: Calibri, Arial, Helvetica, sans-serif, Emoji= Font, "Apple Color Emoji", "Segoe UI Emoji", NotoColorE= moji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;= font-size: 16px;"><br> </span></p> <p><br> </p> <p> </p> </div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Allon Mureinik <am= ureini@redhat.com><br> <b>Sent:</b> Tuesday, June 20, 2017 7:59:03 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> devel@ovirt.org<br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"> <div class=3D"gmail_default" style=3D"font-family:monospace,monospace">Not = sure I understand the question. Could you give an example of what you = mean perhpas?</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap = <span dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div> <div id=3D"m_5891938740723837127divtagdefaultwrapper" style=3D"font-size:12= pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"ltr= "> <p>Hi Allon,</p> <p><br> </p> <p>After going through current vdsm code base, noticed that after= taking a snapshot vm starts referring the newly created qcow image/volume.= </p> <p>For internal snapshots which are not qcow is it configurable = somehow so that vm continues doing writes to same base image?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_5891938740723837127divRplyFwdMsg" dir=3D"ltr"><font face=3D"Ca= libri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b> = Deepak Jagtap<br> <b>Sent:</b> Tuesday, June 6, 2017 3:37:03 PM<br> <b>To:</b> Allon Mureinik<span class=3D""><br> <b>Cc:</b> <a href=3D"mailto:devel@ovirt.org" target=3D"_blank">devel@ovirt= .org</a><br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</span></font> <div> </div> </div> <span class=3D""> <div> <div id=3D"m_5891938740723837127divtagdefaultwrapper" style=3D"font-size:12= pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"ltr= "> <p>Thanks Allon!</p> <p><br> </p> <p>Best Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_5891938740723837127divRplyFwdMsg" dir=3D"ltr"><font face=3D"Ca= libri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b> = Allon Mureinik <<a href=3D"mailto:amureini@redhat.com" target=3D"_blank"= pan dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"ltr"> <div id=3D"m_5891938740723837127m_-4873246095173968224divtagdefaultwrapper"= style=3D"font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,= sans-serif" dir=3D"ltr"> <p>Hey Guys,</p> <p><br> </p> <p>I am newbie to ovirt, and wanted to confirm whats the best way to levera= ge snapshot, clone features </p> <p>provided by the datastore filesystem.</p> <p>I have a btrfs datastore exported and wanted use btrfs snapshots fo= r vm snapshot & clones.</p> <p>Does ovirt offers any hooks/APIs so that image snapshots are created by = the filesystem?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p> </p> </div> </div> <br> ______________________________<wbr>_________________<br> Devel mailing list<br> <a href=3D"mailto:Devel@ovirt.org" target=3D"_blank">Devel@ovirt.org</a><br=
<a href=3D"http://lists.ovirt.org/mailman/listinfo/devel" rel=3D"noreferrer= " target=3D"_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><= br> </blockquote> </div> <br> </div> </div> </div> </span></div> </blockquote> </div> <br> </div> </div> </body> </html> --_000_MWHPR11MB1663D3BF9B01DB6E1142AB1DEDDA0MWHPR11MB1663namp_--

On Wed, Jun 21, 2017 at 10:28 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
I am trying to leverage snapshot capability of underlying filesystem.
As per my understanding current snapshot works like this:
Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm starts writing on newly created qcow image.
So in this case vm is going to do all new writes on snap2(qcow) voulme and will redirect read IOs to snap1 & Base image as required.
But in my case snapshots created by the filesystem are read only and it's in raw format.
As a result after creating snapshot vm disk configuration won't change after taking snapshot but will continue doing writes on same base image.
So snapshots will look like this:
Base Image(raw)--->snap1(raw)->snap2(raw)
Base Image will always remain writable, while the snapshots will remain read only raw format.
Just wanted to confirm is this configurable so that vm continues referring base image after the snapshot instead of newly created qcow image?
It is not. It'll need code modification to allow externally taking snapshots of VM disks. Y.
Thanks & Regards,
Deepak
------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 20, 2017 7:59:03 PM
*To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Not sure I understand the question. Could you give an example of what you mean perhpas?
On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
After going through current vdsm code base, noticed that after taking a snapshot vm starts referring the newly created qcow image/volume.
For internal snapshots which are not qcow is it configurable somehow so that vm continues doing writes to same base image?
Thanks & Regards,
Deepak ------------------------------ *From:* Deepak Jagtap *Sent:* Tuesday, June 6, 2017 3:37:03 PM *To:* Allon Mureinik *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Thanks Allon!
Best Regards,
Deepak ------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 6, 2017 2:43:17 PM *To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Unfortunately, there's no such integration point at the moment.
On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hey Guys,
I am newbie to ovirt, and wanted to confirm whats the best way to leverage snapshot, clone features
provided by the datastore filesystem.
I have a btrfs datastore exported and wanted use btrfs snapshots for vm snapshot & clones.
Does ovirt offers any hooks/APIs so that image snapshots are created by the filesystem?
Thanks & Regards,
Deepak
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

--_000_MWHPR11MB1663B80CFB0DAD1AD0B0C09CEDDA0MWHPR11MB1663namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Yaniv! ________________________________ From: Yaniv Kaul <ykaul@redhat.com> Sent: Wednesday, June 21, 2017 1:47:26 PM To: Deepak Jagtap Cc: Allon Mureinik; devel@ovirt.org Subject: Re: [ovirt-devel] Snapshots & clone support from datastore On Wed, Jun 21, 2017 at 10:28 PM, Deepak Jagtap <deepak.jagtap@maxta.com<ma= ilto:deepak.jagtap@maxta.com>> wrote: Hi Allon, I am trying to leverage snapshot capability of underlying filesystem. As per my understanding current snapshot works like this: Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm sta= rts writing on newly created qcow image. So in this case vm is going to do all new writes on snap2(qcow) voulme and = will redirect read IOs to snap1 & Base image as required. But in my case snapshots created by the filesystem are read only and it's i= n raw format. As a result after creating snapshot vm disk configuration won't change afte= r taking snapshot but will continue doing writes on same base image. So snapshots will look like this: Base Image(raw)--->snap1(raw)->snap2(raw) Base Image will always remain writable, while the snapshots will remain rea= d only raw format. Just wanted to confirm is this configurable so that vm continues referring= base image after the snapshot instead of newly created qcow image? It is not. It'll need code modification to allow externally taking snapshot= s of VM disks. Y. Thanks & Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com<mailto:amureini@redhat.com>> Sent: Tuesday, June 20, 2017 7:59:03 PM To: Deepak Jagtap Cc: devel@ovirt.org<mailto:devel@ovirt.org> Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Not sure I understand the question. Could you give an example of what you m= ean perhpas? On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com<ma= ilto:deepak.jagtap@maxta.com>> wrote: Hi Allon, After going through current vdsm code base, noticed that after taking a sna= pshot vm starts referring the newly created qcow image/volume. For internal snapshots which are not qcow is it configurable somehow so th= at vm continues doing writes to same base image? Thanks & Regards, Deepak ________________________________ From: Deepak Jagtap Sent: Tuesday, June 6, 2017 3:37:03 PM To: Allon Mureinik Cc: devel@ovirt.org<mailto:devel@ovirt.org> Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Thanks Allon! Best Regards, Deepak ________________________________ From: Allon Mureinik <amureini@redhat.com<mailto:amureini@redhat.com>> Sent: Tuesday, June 6, 2017 2:43:17 PM To: Deepak Jagtap Cc: devel@ovirt.org<mailto:devel@ovirt.org> Subject: Re: [ovirt-devel] Snapshots & clone support from datastore Unfortunately, there's no such integration point at the moment. On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com<mail= to:deepak.jagtap@maxta.com>> wrote: Hey Guys, I am newbie to ovirt, and wanted to confirm whats the best way to leverage = snapshot, clone features provided by the datastore filesystem. I have a btrfs datastore exported and wanted use btrfs snapshots for vm sna= pshot & clones. Does ovirt offers any hooks/APIs so that image snapshots are created by the= filesystem? Thanks & Regards, Deepak _______________________________________________ Devel mailing list Devel@ovirt.org<mailto:Devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/devel _______________________________________________ Devel mailing list Devel@ovirt.org<mailto:Devel@ovirt.org> http://lists.ovirt.org/mailman/listinfo/devel --_000_MWHPR11MB1663B80CFB0DAD1AD0B0C09CEDDA0MWHPR11MB1663namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
</head> <body> <style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi= n-bottom:0;} --></style> <div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font= -family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr"> <p>Thanks Yaniv!</p> </div> <hr style=3D"display:inline-block;width:98%" tabindex=3D"-1"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st= yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Yaniv Kaul <ykaul@= redhat.com><br> <b>Sent:</b> Wednesday, June 21, 2017 1:47:26 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> Allon Mureinik; devel@ovirt.org<br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"><br> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Wed, Jun 21, 2017 at 10:28 PM, Deepak Jagtap = <span dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div> <div id=3D"m_-9072135902178749810divtagdefaultwrapper" style=3D"font-size:1= 2pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"lt= r"> <p>Hi Allon,</p> <p><br> </p> <p>I am trying to leverage snapshot capability of underlying fil= esystem.</p> <p><span style=3D"font-size:12pt">As per my understanding current snapshot&= nbsp;</span><span style=3D"font-size:12pt"></span><span style=3D"font-size:= 12pt">works like this:</span></p> <p>Base Image(raw)--->snap1(qcow)-><wbr>snap2(qcow), i.e after e= ach snapshot vm starts writing on newly created qcow image.</p> <p>So in this case vm is going to do all new writes on snap2(qcow) voulme a= nd will redirect read IOs to snap1 & Base image as required.</p> <p><br> </p> <p>But in my case snapshots created by the filesystem are read only and it'= s in raw format.</p> <p>As a result after creating snapshot vm disk configuration won't change a= fter taking snapshot but will continue doing writes on same base image.</p> <p>So snapshots will look like this:</p> <p><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,= "Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,&qu= ot;Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:1= 6px">Base Image(raw)--->snap1(raw)-><wbr>snap2(raw)</span><br> </p> <p><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,= "Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,&qu= ot;Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:1= 6px">Base Image will always remain writable, while the snapshots will = remain read only raw format.</span></p> <p><br> </p> <p>Just wanted to confirm is this configurable so that vm continues r= eferring base image after the snapshot instead of newly created qcow image?= </p> </div> </div> </blockquote> <div><br> </div> <div>It is not. It'll need code modification to allow externally taking sna= pshots of VM disks.</div> <div>Y.</div> <div> </div> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div> <div id=3D"m_-9072135902178749810divtagdefaultwrapper" style=3D"font-size:1= 2pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"lt= r"> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,= "Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,&qu= ot;Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:1= 6px"><br> </span></p> <p><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,EmojiFont,= "Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,&qu= ot;Segoe UI Symbol","Android Emoji",EmojiSymbols;font-size:1= 6px"><br> </span></p> <p><br> </p> <p> </p> </div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_-9072135902178749810divRplyFwdMsg" dir=3D"ltr"><font face=3D"C= alibri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b>= Allon Mureinik <<a href=3D"mailto:amureini@redhat.com" target=3D"_blank= ">amureini@redhat.com</a>><br> <b>Sent:</b> Tuesday, June 20, 2017 7:59:03 PM <div> <div class=3D"h5"><br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> <a href=3D"mailto:devel@ovirt.org" target=3D"_blank">devel@ovirt= .org</a><br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</div> </div> </font> <div> </div> </div> <div> <div class=3D"h5"> <div> <div dir=3D"ltr"> <div style=3D"font-family:monospace,monospace">Not sure I understand the qu= estion. Could you give an example of what you mean perhpas?</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap = <span dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div> <div id=3D"m_-9072135902178749810m_5891938740723837127divtagdefaultwrapper"= style=3D"font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,= sans-serif" dir=3D"ltr"> <p>Hi Allon,</p> <p><br> </p> <p>After going through current vdsm code base, noticed that after= taking a snapshot vm starts referring the newly created qcow image/volume.= </p> <p>For internal snapshots which are not qcow is it configurable = somehow so that vm continues doing writes to same base image?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_-9072135902178749810m_5891938740723837127divRplyFwdMsg" dir=3D= "ltr"><font face=3D"Calibri, sans-serif" style=3D"font-size:11pt" color=3D"= #000000"><b>From:</b> Deepak Jagtap<br> <b>Sent:</b> Tuesday, June 6, 2017 3:37:03 PM<br> <b>To:</b> Allon Mureinik<span><br> <b>Cc:</b> <a href=3D"mailto:devel@ovirt.org" target=3D"_blank">devel@ovirt= .org</a><br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</span></font> <div> </div> </div> <span> <div> <div id=3D"m_-9072135902178749810m_5891938740723837127divtagdefaultwrapper"= style=3D"font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,= sans-serif" dir=3D"ltr"> <p>Thanks Allon!</p> <p><br> </p> <p>Best Regards,</p> <p>Deepak</p> </div> <hr style=3D"display:inline-block;width:98%"> <div id=3D"m_-9072135902178749810m_5891938740723837127divRplyFwdMsg" dir=3D= "ltr"><font face=3D"Calibri, sans-serif" style=3D"font-size:11pt" color=3D"= #000000"><b>From:</b> Allon Mureinik <<a href=3D"mailto:amureini@redhat.= com" target=3D"_blank">amureini@redhat.com</a>><br> <b>Sent:</b> Tuesday, June 6, 2017 2:43:17 PM<br> <b>To:</b> Deepak Jagtap<br> <b>Cc:</b> <a href=3D"mailto:devel@ovirt.org" target=3D"_blank">devel@ovirt= .org</a><br> <b>Subject:</b> Re: [ovirt-devel] Snapshots & clone support from datast= ore</font> <div> </div> </div> <div> <div dir=3D"ltr"> <div style=3D"font-family:monospace,monospace">Unfortunately, there's no su= ch integration point at the moment.</div> </div> <div class=3D"gmail_extra"><br> <div class=3D"gmail_quote">On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <s= pan dir=3D"ltr"> <<a href=3D"mailto:deepak.jagtap@maxta.com" target=3D"_blank">deepak.jag= tap@maxta.com</a>></span> wrote:<br> <blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p= x #ccc solid;padding-left:1ex"> <div dir=3D"ltr"> <div id=3D"m_-9072135902178749810m_5891938740723837127m_-487324609517396822= 4divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font-family:Ca= libri,Arial,Helvetica,sans-serif" dir=3D"ltr"> <p>Hey Guys,</p> <p><br> </p> <p>I am newbie to ovirt, and wanted to confirm whats the best way to levera= ge snapshot, clone features </p> <p>provided by the datastore filesystem.</p> <p>I have a btrfs datastore exported and wanted use btrfs snapshots fo= r vm snapshot & clones.</p> <p>Does ovirt offers any hooks/APIs so that image snapshots are created by = the filesystem?</p> <p><br> </p> <p>Thanks & Regards,</p> <p>Deepak</p> <p> </p> </div> </div> <br> ______________________________<wbr>_________________<br> Devel mailing list<br> <a href=3D"mailto:Devel@ovirt.org" target=3D"_blank">Devel@ovirt.org</a><br=
<a href=3D"http://lists.ovirt.org/mailman/listinfo/devel" rel=3D"noreferrer= " target=3D"_blank">http://lists.ovirt.org/mailman<wbr>/listinfo/devel</a><= br> </blockquote> </div> <br> </div> </div> </div> </span></div> </blockquote> </div> <br> </div> </div> </div> </div> </div> <br> ______________________________<wbr>_________________<br> Devel mailing list<br> <a href=3D"mailto:Devel@ovirt.org">Devel@ovirt.org</a><br> <a href=3D"http://lists.ovirt.org/mailman/listinfo/devel" rel=3D"noreferrer= " target=3D"_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/devel</a><= br> </blockquote> </div> <br> </div> </div> </div> </body> </html> --_000_MWHPR11MB1663B80CFB0DAD1AD0B0C09CEDDA0MWHPR11MB1663namp_--

Hi, You can have a look at the libfgapi patches as the are the first to externalize the snapshot process to separate implementation. Thanks, YANIV LAVI (YANIV DARY) SENIOR TECHNICAL PRODUCT MANAGER Red Hat Israel Ltd. <https://www.redhat.com/> 34 Jerusalem Road, Building A, 1st floor Ra'anana, Israel 4350109 ylavi@redhat.com T: +972-9-7692306/8272306 F: +972-9-7692223 IM: ylavi <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> @redhatnews <https://twitter.com/redhatnews> Red Hat <https://www.linkedin.com/company/red-hat> Red Hat <https://www.facebook.com/RedHatInc> On Wed, Jun 21, 2017 at 11:57 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Thanks Yaniv! ------------------------------ *From:* Yaniv Kaul <ykaul@redhat.com> *Sent:* Wednesday, June 21, 2017 1:47:26 PM *To:* Deepak Jagtap *Cc:* Allon Mureinik; devel@ovirt.org
*Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
On Wed, Jun 21, 2017 at 10:28 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
I am trying to leverage snapshot capability of underlying filesystem.
As per my understanding current snapshot works like this:
Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm starts writing on newly created qcow image.
So in this case vm is going to do all new writes on snap2(qcow) voulme and will redirect read IOs to snap1 & Base image as required.
But in my case snapshots created by the filesystem are read only and it's in raw format.
As a result after creating snapshot vm disk configuration won't change after taking snapshot but will continue doing writes on same base image.
So snapshots will look like this:
Base Image(raw)--->snap1(raw)->snap2(raw)
Base Image will always remain writable, while the snapshots will remain read only raw format.
Just wanted to confirm is this configurable so that vm continues referring base image after the snapshot instead of newly created qcow image?
It is not. It'll need code modification to allow externally taking snapshots of VM disks. Y.
Thanks & Regards,
Deepak
------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 20, 2017 7:59:03 PM
*To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Not sure I understand the question. Could you give an example of what you mean perhpas?
On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
After going through current vdsm code base, noticed that after taking a snapshot vm starts referring the newly created qcow image/volume.
For internal snapshots which are not qcow is it configurable somehow so that vm continues doing writes to same base image?
Thanks & Regards,
Deepak ------------------------------ *From:* Deepak Jagtap *Sent:* Tuesday, June 6, 2017 3:37:03 PM *To:* Allon Mureinik *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Thanks Allon!
Best Regards,
Deepak ------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 6, 2017 2:43:17 PM *To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Unfortunately, there's no such integration point at the moment.
On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hey Guys,
I am newbie to ovirt, and wanted to confirm whats the best way to leverage snapshot, clone features
provided by the datastore filesystem.
I have a btrfs datastore exported and wanted use btrfs snapshots for vm snapshot & clones.
Does ovirt offers any hooks/APIs so that image snapshots are created by the filesystem?
Thanks & Regards,
Deepak
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

On Thu, Jun 22, 2017 at 3:39 PM Yaniv Lavi (Dary) <ylavi@redhat.com> wrote:
Hi, You can have a look at the libfgapi patches as the are the first to externalize the snapshot process to separate implementation.
Snapshots in libgfapi are not using any external process. The only difference is modifying the volume from file path (/rhev/data-center/mnt/server:path/sd_id/images/img_id/vol_id) to gluster path (volume/sd_id/images/img_id/vol_id). This modification is done when we prepare a volume. This is basically a hack since gluster connections are not managed properly in engine like other types of storage. Nir
Thanks,
YANIV LAVI (YANIV DARY)
SENIOR TECHNICAL PRODUCT MANAGER
Red Hat Israel Ltd. <https://www.redhat.com/>
34 Jerusalem Road, Building A, 1st floor
Ra'anana, Israel 4350109
ylavi@redhat.com T: +972-9-7692306/8272306 F: +972-9-7692223 IM: ylavi <https://red.ht/sig> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted> @redhatnews <https://twitter.com/redhatnews> Red Hat <https://www.linkedin.com/company/red-hat> Red Hat <https://www.facebook.com/RedHatInc>
On Wed, Jun 21, 2017 at 11:57 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Thanks Yaniv! ------------------------------ *From:* Yaniv Kaul <ykaul@redhat.com> *Sent:* Wednesday, June 21, 2017 1:47:26 PM *To:* Deepak Jagtap *Cc:* Allon Mureinik; devel@ovirt.org
*Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
On Wed, Jun 21, 2017 at 10:28 PM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
I am trying to leverage snapshot capability of underlying filesystem.
As per my understanding current snapshot works like this:
Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm starts writing on newly created qcow image.
So in this case vm is going to do all new writes on snap2(qcow) voulme and will redirect read IOs to snap1 & Base image as required.
But in my case snapshots created by the filesystem are read only and it's in raw format.
As a result after creating snapshot vm disk configuration won't change after taking snapshot but will continue doing writes on same base image.
So snapshots will look like this:
Base Image(raw)--->snap1(raw)->snap2(raw)
Base Image will always remain writable, while the snapshots will remain read only raw format.
Just wanted to confirm is this configurable so that vm continues referring base image after the snapshot instead of newly created qcow image?
It is not. It'll need code modification to allow externally taking snapshots of VM disks. Y.
Thanks & Regards,
Deepak
------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 20, 2017 7:59:03 PM
*To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Not sure I understand the question. Could you give an example of what you mean perhpas?
On Tue, Jun 20, 2017 at 10:01 PM, Deepak Jagtap <deepak.jagtap@maxta.com
wrote:
Hi Allon,
After going through current vdsm code base, noticed that after taking a snapshot vm starts referring the newly created qcow image/volume.
For internal snapshots which are not qcow is it configurable somehow so that vm continues doing writes to same base image?
Thanks & Regards,
Deepak ------------------------------ *From:* Deepak Jagtap *Sent:* Tuesday, June 6, 2017 3:37:03 PM *To:* Allon Mureinik *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Thanks Allon!
Best Regards,
Deepak ------------------------------ *From:* Allon Mureinik <amureini@redhat.com> *Sent:* Tuesday, June 6, 2017 2:43:17 PM *To:* Deepak Jagtap *Cc:* devel@ovirt.org *Subject:* Re: [ovirt-devel] Snapshots & clone support from datastore
Unfortunately, there's no such integration point at the moment.
On Tue, Jun 6, 2017 at 5:57 AM, Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hey Guys,
I am newbie to ovirt, and wanted to confirm whats the best way to leverage snapshot, clone features
provided by the datastore filesystem.
I have a btrfs datastore exported and wanted use btrfs snapshots for vm snapshot & clones.
Does ovirt offers any hooks/APIs so that image snapshots are created by the filesystem?
Thanks & Regards,
Deepak
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel
_______________________________________________ Devel mailing list Devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/devel

On Wed, Jun 21, 2017 at 11:03 PM Deepak Jagtap <deepak.jagtap@maxta.com> wrote:
Hi Allon,
I am trying to leverage snapshot capability of underlying filesystem.
As per my understanding current snapshot works like this:
Base Image(raw)--->snap1(qcow)->snap2(qcow), i.e after each snapshot vm starts writing on newly created qcow image.
So in this case vm is going to do all new writes on snap2(qcow) voulme and will redirect read IOs to snap1 & Base image as required.
Right But in my case snapshots created by the filesystem are read only and it's
in raw format.
As a result after creating snapshot vm disk configuration won't change after taking snapshot but will continue doing writes on same base image.
So snapshots will look like this:
Base Image(raw)--->snap1(raw)->snap2(raw)
Not sure what is snap1 and snap2 - how do you create and use them with your file system? what is the underlying file system?
Base Image will always remain writable, while the snapshots will remain read only raw format.
This works like ceph volumes. Our flow for ceph is: 1. engine invokes VM.freeze vdsm api to ensure that guest file systems are consistent 2. engine create new snapshot via cinder api 3. engine may invokes VM.snapshot vdsm api (without the ceph disk) if memory snapshot is needed. memory snapshot is stored in a new disk created by engine before this flow 4. engine invokes VM.thaw to unfreeze guest file systems
Just wanted to confirm is this configurable so that vm continues referring base image after the snapshot instead of newly created qcow image?
No, it will use new image, this is not possible with snapshot. Vdsm has the basic building blocks to do what you need, except creating and deleting snapshots. To implement such feature you need to add a new type of storage in engine that will call the right vdsm apis when creating and deleting snapshots, and new vdsm apis to create and delete snapshots. Nir
participants (5)
-
Allon Mureinik
-
Deepak Jagtap
-
Nir Soffer
-
Yaniv Kaul
-
Yaniv Lavi (Dary)