=== User Quotas ===
Set a quota of 1 Gigabyte for the user 4000187 (the values are in kilobytes, so 1048576 kilobyte are 1024 megabytes which corresponds to 1 gigabyte):
/usr/sbin/setquota xfs_quota -u 4000187 0 x -c 'limit bhard=1048576 0 0 4000187' /var/backup
Read the quota information for the user 4000187:
quota -uv 4000187
Disk quotas for user 4000187 (uid 4000187):
Filesystem blocks quota limit grace files quota limit grace
/dev/vdb1 0 0 1048576 0 0 0
Using xfs_quota gives us a nicer result:
xfs_quota -x -c 'quota -v -N -u 4000187' /var/backup
If the user has data in the project, that belongs to him, the result will change:
/dev/vdb1 512000 0 1048576 00 [--------] /var/backup
Removing a quota for a user:
xfs_quota -x -c 'limit bhard=0 4000187' /var/backup
The following command should give you an empty result:
xfs_quota -x -c 'quota -v -N -u 4000187' /var/backup
=== Project (Directory) Quotas ===