quotas and qgroups
Enable Quotas: sudo btrfs quota enable
-
Setting Limits Quotas are managed by “qgroups” (quota groups), which form a hierarchy.
Set Limit: sudo btrfs qgroup limit
(e.g., sudo btrfs qgroup limit 20G /mnt/my-subvol) Remove Limit: Set the size to none Setting Limits on Subvolumes: Limits can be set on existing subvolumes or even before they are created. -
Viewing Quota Information
Show Detailed Usage: sudo btrfs qgroup show -pcre
Raw Output (Bytes): sudo btrfs qgroup show --raw
btrfs filesystem du -s
Wont umount
try lazy umount
umount -l [mountpoint]
find process using mount
lsof +f -- [mountpoint] (– just terminates lsof looking for parameters)
No data copy-on-write (CoW)
Must be done on the directory level to be inherited by it’s children.
This can be done with chattr +C /mnt/subvol.
Only new files affected ofcourse.