How proxmox makes zfs snapshots on vm with several disks ?

Morphushka

Well-Known Member
Jun 25, 2019
49
7
48
36
Syberia
Hello. pve-manager/6.2-4/9824574a (running kernel: 5.4.34-1-pve)

I have VM with 2 disks:
mega/vm-101-disk-0
mega/vm-101-disk-1

ZFS docs says:
"Recursive snapshots are created quickly as one atomic operation. The snapshots are created together (all at once) or not created at all. The benefit of atomic snapshot operations is that the snapshot data is always taken at one consistent time, even across descendant file systems."
for example: zfs snapshot -r tank/vm@now
but it require extra dataset as parent (vm for case above). Proxmox create all zvol in root pool level.
So, when I use snapshot from gui it creates 2 disks snapshots.

So, here is question: how prox doing it ? Are they really taken at one consistent time, or they are created sequence ?
Thanks!