Is Kvm vps snapshot on ZFS consistent ?

yena

Renowned Member
Nov 18, 2011
372
4
83
Hello,
is Kvm (qemu) vps ZFS snapshot consistent without qemu agent installed on guest ?

There are differences between a snapshot of an LXC vps and a KVM vps using zfs ?

Thanks!
 
Hi,
is Kvm (qemu) vps ZFS snapshot consistent without qemu agent installed on guest ?
The image itself is consistency through ZFS.
But the data in the page cache of the VM are not written.
So if you want to ensure all data are written in a snapshot you have to flush your caches.
This is done by qemu-guest-agent
 
So if you want to ensure all data are written in a snapshot you have to flush your caches.

And in addition you should use software that has integrated support for this, e.g. on Windows with every software that hooks into VSS. For others, you can use qemu-agent hooks to get e.g. a database log switch and flush to disk. But in the end, you will have only crash consistency for almost all software packages that do not have such a feature.
 

About

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!