pve-zfsync and MySQL inside the synced VM


Active Member
Apr 13, 2015
I try to use pve-zfsync to replicate a VM, and so far it looks quite good. The VM itself is a Cenos 7 with nginx/apache/mysql web site server.

My concern is, while data VM disks will be replicated nicely, the data in the VM's RAM (mostly MySQL data) won't be transferred so the replicated VM may have database broken if I start the target ("receiving side") VM.

So the question is simple: is there any way I can pass the command inside the VM to tell MySQL to flush buffers to disks just before the disks sync?

P.S. The replication purpose is to keep up-to-date copy of the VM so if one host server go down the VM on second host server can be run soon and serve the site. So to can, poor man HA ).
May you be aware, are there any time limits for agent-based actions and how much time agent has to do whatever it want?
That is, agent receives the signal and start its preparation but it takes too long and snapshot/replication starts anyway in small time?


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!