How to ext4 Disk quota (journaled ) in cPanel

This article help you to configure journaled disk quota.  It is one of the latest and fast quota format. Please do the following steps to enable quota

1) Enable journaled quota in  /etc/fstab for all data partitions , see an example below

------------
/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

Now  remove or empty the quota files under / and /home

After that reboot your  server  to load the new quota. If you don’t like reboot you can remount all the above partitions

2) After successful reboot do the following

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

This will calculate the quota. If you are in cPanel server please execute the following script.

# /scripts/fixquotas

You can use this method to setup  journaled quota in Any linux server with ext4 file system.