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. Working with this feature requires that you boot the system by using UEK R8 .

  1. Use the btrfs quota enable command to enable quotas on a volume:

    Enable quotas by running following command on a newly created Btrfs file system before any creating any subvolumes:

    sudo btrfs quota enable volume
  2. Assign a quota-group limit to a subvolume by using the btrfs qgroup limit command:

    The following example shows how you would use this command:

    sudo btrfs qgroup limit 1g /myvol/subvol1
    sudo btrfs qgroup limit 512m /myvol/subvol2
  3. To find out the quota usage for a subvolume, use the btrfs qgroup show command.

    For example, run:

    btrfs qgroup show /myvol/subvol1