Re: [ovirt-users] ovirt-agent: is it possible to run specific actions when taking snapshots?

2015-05-17 Thread Yaniv Dary

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: yd...@redhat.com
IRC : ydary

___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] ovirt-agent: is it possible to run specific actions when taking snapshots?

2015-05-17 Thread Markus Stockhausen
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-boun...@ovirt.org [users-boun...@ovirt.org] im Auftrag von Yaniv 
Dary [yd...@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 actions 
when taking snapshots?


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
Inghttp://www.beinrohr.sk/ing.php, RHCEhttp://www.beinrohr.sk/rhce.php, 
RHCVAhttp://www.beinrohr.sk/rhce.php, LPIChttp://www.beinrohr.sk/lpic.php, 
VCAhttp://www.beinrohr.sk/vca.php,
+421-2-62410360 +421-903-482603




___
Users mailing list
Users@ovirt.orgmailto: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: yd...@redhat.commailto:yd...@redhat.com
IRC : ydary

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


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


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

2015-05-12 Thread Ernest Beinrohr
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