Managing Quotas for Btrfs Subvolumes With Quota Groups
Note:
Be aware that the quota groups feature is available as a Technology Preview only in Oracle Linux 8. Working with this feature requires that you boot the system by using UEK R6 or later.
Enable quotas by running following command on a newly created Btrfs file system before any creating any subvolumes:
sudo btrfs quota enable volume
Assign a quota-group limit to a subvolume by using the following command:
sudo btrfs qgroup limit size /volume/subvolume
The following example shows how you would use this command:
sudo btrfs qgroup limit 1g /myvol/subvol1
sudo btrfs qgroup limit 512m /myvol/subvol2
To find out the quota usage for a subvolume, use the btrfs qgroup show path command.