zfs replication (pvesr) for KVM guests...

hk@

Renowned Member
Feb 10, 2010
247
7
83
Vienna
kapper.net
We got two KVM guests, one ubuntu 20.04 LTS and one debian v10.
one has a 100GB disk, using roughly 54 GB, the other a 240GB disk, using roughly 146GB.
both are replicated using pvesr, both basically have static content in their filesystems (lots of images never changed).
zfs list (and -t snapshot) reports for the debian guest:
replicaA/vm-130024-disk-0 454G 13.4T 138G -
replicaA/vm-130024-disk-0@__replicate_130024-0_1674417744__ 58.8G - 196G -
on the active node, while on the replication target it reports
replicaA/vm-130024-disk-0 454G 6.01T 196G -
replicaA/vm-130024-disk-0@__replicate_130024-0_1674417744__ 0B - 196G -

anyhow, replication is usually done within seconds.

the ubuntu guest is reported as follows on the active node:
replicaA/vm-130040-disk-0 193G 13.3T 50.7G -
replicaA/vm-130040-disk-0@__replicate_130040-0_1674417822__ 40.0G - 90.1G -
and on its replication target:
replicaA/vm-130040-disk-0 193G 3.26T 90.1G -
replicaA/vm-130040-disk-0@__replicate_130040-0_1674417822__ 0B - 90.1G -

this one takes like up to 30 minutes to replicate.
any hints on how to investigate such an issue would be appreciated.
also I'd be interested if such a usage value (like 454G for a 240G disk - basically 100% more) is normal and should be accounted for storage-size planning or if there is any sound way to keep zfs usage at least near the size of those virtual disks...
 
1. please post such output in code tags, else the formatting/alignment is lost and it's really cumbersome to read
2. you are likely using raidz, which has a big overhead with zvols: https://pve.proxmox.com/pve-docs/chapter-sysadmin.html#sysadmin_zfs_raid_considerations

I am not sure what exactly your question is besides why the disks take up more space than expected (2). replication will take longer if the delta since the last one is bigger - you can check the replication logs for details (or post the full output of zfs list -o name,space -r -t all POOL/STORAGE_DATASET from both sides, in code tags..)
 

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!