How to configure journaled disk quota for ext4 file system

Created:

2017-01-13 18:28:43 UTC

Modified:

2017-08-08 13:44:37 UTC

1

Was this article helpful?


Have more questions?

Submit a request

How to configure journaled disk quota for ext4 file system

Applicable to:

  • Plesk for Linux

Question

How to configure journaled disk quota for ext4 file system?

Answer

  1. Edit /etc/fstab file to enable journaled quota for data partitions. For example:

    /dev/sda3 / ext4 defaults,noatime,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1
    /dev/sda6 /home ext4 defaults,noatime,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1

    The exact flags for journaled quota is usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0

  2. Remove the quota files ( aquota.user,aquota.group ) inside / and /home folders and reboot the server to load the new quota.
  3. After successful reboot run the following commands:

    # quotaoff -a
    # quotacheck -avugm
    # quotaon -avug

    This will calculate the quota.

Have more questions? Submit a request
Please sign in to leave a comment.