#19079·zfs

User Quota not matching du output

Author: scratchingsCreated Sep 7, 2026Updated Sep 24, 2026
LabelsType: Defect

System information

Type Version/Name
Distribution Name Red Hat Enterprise Linux
Distribution Version 9.8
Kernel Version 5.14.0-687.39.1
Architecture x86_64
OpenZFS Version 2.2.10-1

Describe the problem you're observing

We have user quotas defined on a filesystem. Several users are seeing that their userspace recorded value greatly exceeds their actual usage. They are hitting their quota limit and the only recourse is to increase the userquota value. For example, user XYZ:

# sudo zfs userspace data1/shares/homes | grep XYZ
POSIX User  XYZ       163G   244G    88.3K      none
#  sudo du -sh /data1/shares/homes/XYZ
73M	/data1/shares/homes/XYZ

But another (unaffected user):

# sudo zfs userspace data1/shares/homes | grep ABC
POSIX User  ABC      26.4G    30G     501K      none
# sudo du -sh /data1/shares/homes/ABC
27G	/data1/shares/homes/ABC

The pool is hosted on HA servers (Pacemaker with SCSI reservations) and backed up by taking snapshots/sending remotely with Sanoid/Syncoid. The current host of the pool has had the pool mounted for 21 days.

Initially expected this might be due to data held in snapshots, but removing all but last seven days of snapshots has had no impact on usage despite this issue being ongoing for several months now.

Pool is scrubbed monthly, last one completed successfully at the start of this month.

Describe how to reproduce the problem

Create lots of files then delete them.

Include any warning/errors/backtraces from the system logs

Nothing obvious in the system logs matching ZFS reporting error related to the pool.

Pool hasn't be 'upgraded' for a while:

$ zpool upgrade This system supports ZFS pool feature flags.

All pools are formatted using feature flags.

Some supported features are not enabled on the following pools. Once a feature is enabled the pool may become incompatible with software that does not support the feature. See zpool-features(7) for details.

Note that the pool 'compatibility' feature can be used to inhibit feature upgrades.

POOL  FEATURE
---------------
data1
      zilsaxattr
      head_errlog
      blake3
      block_cloning
      vdev_zaps_v2