Category Archives: Linux

Enabling XFS quota

I recently needed to enable quotas on a larger XFS file system. This is quite easy, because everything you have to do is setting the proper mount options and then mount the file system again. XFS will automatically index all files and update all quota associations while mounting:

Typeenforcednot enforced
User quotauquotauqnoenforce
Group quotagquotagqnoenforce
Project quotapquotapqnoenforce
Quota parameters

But: Depending on how full the file system is, this update process may take a long time. This means, you should not try this while booting because modern Linux distributions (like RHEL7) will have a timeout detection and may thus interrupt the process.

So when enabling quota on an existing file system:

  1. edit fstab
  2. unmount the file system
  3. mount it again
  4. wait for the quota log update to finish