ovirt-agent: is it possible to run specific actions when taking snapshots?

This is a multi-part message in MIME format. --------------000401040808070400080406 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit It would be nice, if ovirt snapshots were more safe. When a VM has the ovirt-agent installed, ovirt could tell the agent to run site-speficic actions. What I have in mind is: linux vms: - sync - echo 3 > /proc/sys/vm/drop_caches - zerofill empty space (this takes long but saves precious backup space) databases: - prepare databases for snapshot (flush,write-lock) - send snapshot-complete and unlock -- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2-62410360 +421-903-482603 --------------000401040808070400080406 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> It would be nice, if ovirt snapshots were more safe. When a VM has the ovirt-agent installed, ovirt could tell the agent to run site-speficic actions. What I have in mind is:<br> <br> linux vms:<br> - sync<br> - echo 3 > /proc/sys/vm/drop_caches<br> - zerofill empty space (this takes long but saves precious backup space)<br> <br> databases:<br> - prepare databases for snapshot (flush,write-lock)<br> - send snapshot-complete and unlock<br> <br> <br> <div class="moz-signature">-- <br> <div id="oernii_footer" style="color: gray;"> <span style="font-family: Lucida Console, Luxi Mono, Courier, monospace; font-size: 90%;"> Ernest Beinrohr, AXON PRO<br> <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/ing.php">Ing</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/vca.php">VCA</a>, <br> +421-2-62410360 +421-903-482603 <br> </span> </div> <img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" moz-do-not-send="true" border="0" height="1" width="1"> </div> </body> </html> --------------000401040808070400080406--

This is a multi-part message in MIME format. --------------060105060909030102090004 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit We use libvirt VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag, which uses guest agent to quiesce all mounted file systems within the domain. The qemu guest agent implements fsfreeze/fsthaw commands, which do the quiescing. On 05/12/2015 02:56 PM, Ernest Beinrohr wrote:
It would be nice, if ovirt snapshots were more safe. When a VM has the ovirt-agent installed, ovirt could tell the agent to run site-speficic actions. What I have in mind is:
linux vms: - sync - echo 3 > /proc/sys/vm/drop_caches - zerofill empty space (this takes long but saves precious backup space)
databases: - prepare databases for snapshot (flush,write-lock) - send snapshot-complete and unlock
-- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2-62410360 +421-903-482603
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
-- Yaniv Dary Technical Product Manager Red Hat Israel Ltd. 34 Jerusalem Road Building A, 4th floor Ra'anana, Israel 4350109 Tel : +972 (9) 7692306 8272306 Email: ydary@redhat.com IRC : ydary --------------060105060909030102090004 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=windows-1252" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <pre wrap="">We use libvirt VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag, which uses guest agent to quiesce all mounted file systems within the domain. The qemu guest agent implements fsfreeze/fsthaw commands, which do the quiescing. </pre> <br> <br> <div class="moz-cite-prefix">On 05/12/2015 02:56 PM, Ernest Beinrohr wrote:<br> </div> <blockquote cite="mid:5551EA74.4070205@axonpro.sk" type="cite"> <meta http-equiv="content-type" content="text/html; charset=windows-1252"> It would be nice, if ovirt snapshots were more safe. When a VM has the ovirt-agent installed, ovirt could tell the agent to run site-speficic actions. What I have in mind is:<br> <br> linux vms:<br> - sync<br> - echo 3 > /proc/sys/vm/drop_caches<br> - zerofill empty space (this takes long but saves precious backup space)<br> <br> databases:<br> - prepare databases for snapshot (flush,write-lock)<br> - send snapshot-complete and unlock<br> <br> <br> <div class="moz-signature">-- <br> <div id="oernii_footer" style="color: gray;"> <span style="font-family: Lucida Console, Luxi Mono, Courier, monospace; font-size: 90%;"> Ernest Beinrohr, AXON PRO<br> <a moz-do-not-send="true" style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/ing.php">Ing</a>, <a moz-do-not-send="true" style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a moz-do-not-send="true" style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a moz-do-not-send="true" style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a moz-do-not-send="true" style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/vca.php">VCA</a>, <br> +421-2-62410360 +421-903-482603 <br> </span> </div> <img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" moz-do-not-send="true" border="0" height="1" width="1"> </div> <br> <fieldset class="mimeAttachmentHeader"></fieldset> <br> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> <pre class="moz-signature" cols="72">-- Yaniv Dary Technical Product Manager Red Hat Israel Ltd. 34 Jerusalem Road Building A, 4th floor Ra'anana, Israel 4350109 Tel : +972 (9) 7692306 8272306 Email: <a class="moz-txt-link-abbreviated" href="mailto:ydary@redhat.com">ydary@redhat.com</a> IRC : ydary</pre> </body> </html> --------------060105060909030102090004--

------=_NextPartTM-000-2069c4dc-0b42-48fe-912e-04dd65c1098d Content-Type: multipart/alternative; boundary="_000_12EF8D94C6F8734FB2FF37B9FBEDD1735FCA004AEXCHANGEcollogi_" --_000_12EF8D94C6F8734FB2FF37B9FBEDD1735FCA004AEXCHANGEcollogi_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
From my experience I strongly advise to avoid a drop_caches with option 3. We still see commands hanging for hours if they are issued during high CPU/memory load. Even with matured Ubuntu 3.16 kernels
Staying with option 1 should be enough and much more save. Markus ________________________________ Von: users-bounces@ovirt.org [users-bounces@ovirt.org]" im Auftrag von "Yan= iv Dary [ydary@redhat.com] Gesendet: Sonntag, 17. Mai 2015 09:53 An: Ernest Beinrohr; users Betreff: Re: [ovirt-users] ovirt-agent: is it possible to run specific acti= ons when taking snapshots? We use libvirt VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag, which uses guest ag= ent to quiesce all mounted file systems within the domain. The qemu guest agent implements fsfreeze/fsthaw commands, which do the quie= scing. On 05/12/2015 02:56 PM, Ernest Beinrohr wrote: It would be nice, if ovirt snapshots were more safe. When a VM has the ovir= t-agent installed, ovirt could tell the agent to run site-speficic actions.= What I have in mind is: linux vms: - sync - echo 3 > /proc/sys/vm/drop_caches - zerofill empty space (this takes long but saves precious backup space) databases: - prepare databases for snapshot (flush,write-lock) - send snapshot-complete and unlock -- Ernest Beinrohr, AXON PRO Ing<http://www.beinrohr.sk/ing.php>, RHCE<http://www.beinrohr.sk/rhce.php>,= RHCVA<http://www.beinrohr.sk/rhce.php>, LPIC<http://www.beinrohr.sk/lpic.p= hp>, VCA<http://www.beinrohr.sk/vca.php>, +421-2-62410360 +421-903-482603 _______________________________________________ Users mailing list Users@ovirt.org<mailto:Users@ovirt.org> http://lists.ovirt.org/mailman/listinfo/users -- Yaniv Dary Technical Product Manager Red Hat Israel Ltd. 34 Jerusalem Road Building A, 4th floor Ra'anana, Israel 4350109 Tel : +972 (9) 7692306 8272306 Email: ydary@redhat.com<mailto:ydary@redhat.com> IRC : ydary --_000_12EF8D94C6F8734FB2FF37B9FBEDD1735FCA004AEXCHANGEcollogi_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html dir=3D"ltr"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-= 1"> <style type=3D"text/css" id=3D"owaParaStyle"></style> </head> <body bgcolor=3D"#FFFFFF" fpstyle=3D"1" ocsi=3D"0"> <div style=3D"direction: ltr;font-family: Tahoma;color: #000000;font-size: = 10pt;">From my experience I strongly advise to avoid a drop_caches <div>with option 3. We still see commands hanging for hours</div> <div>if they are issued during high CPU/memory load. Even with</div> <div>matured Ubuntu 3.16 kernels</div> <div><br> </div> <div>Staying with option 1 should be enough and much more save.</div> <div><br> </div> <div>Markus</div> <div><br> </div> <div> <div style=3D"font-family: Times New Roman; color: #000000; font-size: 16px= "> <hr tabindex=3D"-1"> <div id=3D"divRpF500092" style=3D"direction: ltr;"><font face=3D"Tahoma" si= ze=3D"2" color=3D"#000000"><b>Von:</b> users-bounces@ovirt.org [users-bounc= es@ovirt.org]" im Auftrag von "Yaniv Dary [ydary@redhat.com]<br> <b>Gesendet:</b> Sonntag, 17. Mai 2015 09:53<br> <b>An:</b> Ernest Beinrohr; users<br> <b>Betreff:</b> Re: [ovirt-users] ovirt-agent: is it possible to run specif= ic actions when taking snapshots?<br> </font><br> </div> <div></div> <div> <pre>We use libvirt VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE flag, which uses gue= st agent to quiesce all mounted file systems within the domain.=0A= The qemu guest agent implements fsfreeze/fsthaw commands, which do the quie= scing.=0A= </pre> <br> <br> <div class=3D"moz-cite-prefix">On 05/12/2015 02:56 PM, Ernest Beinrohr wrot= e:<br> </div> <blockquote type=3D"cite">It would be nice, if ovirt snapshots were more sa= fe. When a VM has the ovirt-agent installed, ovirt could tell the agent to = run site-speficic actions. What I have in mind is:<br> <br> linux vms:<br> - sync<br> - echo 3 > /proc/sys/vm/drop_caches<br> - zerofill empty space (this takes long but saves precious backup space)<br=
<br> databases:<br> - prepare databases for snapshot (flush,write-lock)<br> - send snapshot-complete and unlock<br> <br> <br> <div class=3D"moz-signature">-- <br> <div id=3D"oernii_footer" style=3D"color:gray"><span style=3D"font-family:L= ucida Console,Luxi Mono,Courier,monospace; font-size:90%">Ernest Beinrohr, = AXON PRO<br> <a href=3D"http://www.beinrohr.sk/ing.php" style=3D"text-decoration:none; c= olor:gray" target=3D"_blank">Ing</a>, <a href=3D"http://www.beinrohr.sk/rhce.php" style=3D"text-decoration:none; = color:gray" target=3D"_blank"> RHCE</a>, <a href=3D"http://www.beinrohr.sk/rhce.php" style=3D"text-decorat= ion:none; color:gray" target=3D"_blank"> RHCVA</a>, <a href=3D"http://www.beinrohr.sk/lpic.php" style=3D"text-decora= tion:none; color:gray" target=3D"_blank"> LPIC</a>, <a href=3D"http://www.beinrohr.sk/vca.php" style=3D"text-decorati= on:none; color:gray" target=3D"_blank"> VCA</a>, <br> +421-2-62410360 +421-903-482603 <br> </span></div> <img src=3D"http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" h= eight=3D"1" width=3D"1" border=3D"0"> </div> <br> <fieldset class=3D"mimeAttachmentHeader" target=3D"_blank"></fieldset> <br> <pre>_______________________________________________=0A= Users mailing list=0A= <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Users@ovirt.org" targe= t=3D"_blank">Users@ovirt.org</a>=0A= <a class=3D"moz-txt-link-freetext" href=3D"http://lists.ovirt.org/mailman/l= istinfo/users" target=3D"_blank">http://lists.ovirt.org/mailman/listinfo/us= ers</a>=0A= </pre> </blockquote> <br> <pre class=3D"moz-signature" cols=3D"72">-- =0A= Yaniv Dary=0A= Technical Product Manager=0A= Red Hat Israel Ltd.=0A= 34 Jerusalem Road=0A= Building A, 4th floor=0A= Ra'anana, Israel 4350109=0A= =0A= Tel : +972 (9) 7692306=0A= 8272306=0A= Email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:ydary@redhat.co= m" target=3D"_blank">ydary@redhat.com</a>=0A= IRC : ydary</pre> </div> </div> </div> </div> </body> </html> --_000_12EF8D94C6F8734FB2FF37B9FBEDD1735FCA004AEXCHANGEcollogi_-- ------=_NextPartTM-000-2069c4dc-0b42-48fe-912e-04dd65c1098d Content-Type: text/plain; name="InterScan_Disclaimer.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="InterScan_Disclaimer.txt" **************************************************************************** Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet. Über das Internet versandte E-Mails können unter fremden Namen erstellt oder manipuliert werden. Deshalb ist diese als E-Mail verschickte Nachricht keine rechtsverbindliche Willenserklärung. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln Vorstand: Kadir Akin Dr. Michael Höhnerbach Vorsitzender des Aufsichtsrates: Hans Kristian Langva Registergericht: Amtsgericht Köln Registernummer: HRB 52 497 This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. e-mails sent over the internet may have been written under a wrong name or been manipulated. That is why this message sent as an e-mail is not a legally binding declaration of intention. Collogia Unternehmensberatung AG Ubierring 11 D-50678 Köln executive board: Kadir Akin Dr. Michael Höhnerbach President of the supervisory board: Hans Kristian Langva Registry office: district court Cologne Register number: HRB 52 497 **************************************************************************** ------=_NextPartTM-000-2069c4dc-0b42-48fe-912e-04dd65c1098d--
participants (3)
-
Ernest Beinrohr
-
Markus Stockhausen
-
Yaniv Dary