I'm currently running a three node PVE 8.2.2 cluster (kernel: 6.8.4-3-pve) and have several LXCs participating in ZFS Storage Replication. I've noticed that the replication process seems to call lxc-freeze or some equivalent before creating the ZFS snapshots. For the most part this works out fine, but on one of my LXCs running the Frigate NVR, I've observed that the freeze process takes several seconds and that has a noticeable effect inside the LXC. This can cause processes to crash that are ingesting video from cameras.
I haven't observed the freeze interfering with normal operations in my other LXCs, and the logs indicate that the freeze + snapshot + thaw is occurring in under a second.
I understand the motivation for the freeze/thaw cycle when their is more than one mountpoint attached in order to ensure the entire container is in a crash consistent state across multiple filesystems. However, for a single ZFS dataset LXC, I would think this should be unnecessary since ZFS already ensures that a dataset snapshot is atomic.
Is it possible or planned in the future for PVE Storage Replication and Backups to avoid freezing all processes when their is only a single dataset attached? Alternately, any thoughts on why a particular LXC would take several seconds to freeze and ideas on how to shorten it?
Thanks!
I haven't observed the freeze interfering with normal operations in my other LXCs, and the logs indicate that the freeze + snapshot + thaw is occurring in under a second.
I understand the motivation for the freeze/thaw cycle when their is more than one mountpoint attached in order to ensure the entire container is in a crash consistent state across multiple filesystems. However, for a single ZFS dataset LXC, I would think this should be unnecessary since ZFS already ensures that a dataset snapshot is atomic.
Is it possible or planned in the future for PVE Storage Replication and Backups to avoid freezing all processes when their is only a single dataset attached? Alternately, any thoughts on why a particular LXC would take several seconds to freeze and ideas on how to shorten it?
Thanks!