[SOLVED] Garbage collection deletes all chunks

redtex

Renowned Member
Sep 13, 2012
28
1
68
Hi all !!

I have very strange situation. Proxmox Backup Server 3.2-7
Garbage collection deletes all chunks on ZFS datastore, on ext4/xfs datastore - it's ok, no extra chunks deleted. The system is ubuntu 24.04, ZFS version 2.2.2-0ubuntu9
When i make the same install on Debian 12 - it's ok, no extra chunks deleted on ZFS datastore. ZFS version 2.2.4-pve1
I've compared all zfs and zpool properties - on both systems they are same !!!
 
Hi,
Garbage collection deletes all chunks on ZFS datastore
garbage collection uses the atime to decide which chunks can be deleted [0], so I guess that it is not updated as required.

The system is ubuntu 24.04, ZFS version 2.2.2-0ubuntu9
This is not a supported setup, I would recommend either to install using the official ISO or on top of Debian [1].

[0] https://pbs.proxmox.com/docs/backup-client.html#garbage-collection
[1] https://pbs.proxmox.com/docs/installation.html#installation
 
The problem solved with zfs 2.2.5 from zfs-experimental ppa.

The promblem's essence is that Ubuntu's zfs 2.2.2 has bug - on file "touch" atime flushes to 0 epoch seconds i.e. to "1970-01-01" date. When you "cat" file atime becomes correct. No matter which settings on zfs dataset are.