How to enable Journaled quota in a RHEL/CentOS/Fedora ext3/ext4 filesystem

I am using a  Red Hat Enterprise Linux 6 system with both ext3 and ext4 filesystem in mixed use. I have encountered an the below problem on running quotacheck

#quotacheck -vug /data/sdk2
“quotacheck: Your kernel probably supports journaled quota but you are not using it. Consider switching to journaled quota to avoid running quotacheck after an unclean shutdown.”

How to enable journal quota for ext3/ext4 filesystem so that the above warning can be avoided?

Solution

To enable journal quota on ext3/ext4 filesystem, do the following:
1. Edit /etc/fstab file and add support to the filesystem that needs journal quota support. For only user quota support use something like:

/data/sdk2     /data/sdk2     <filesystem type>     defaults,usrjquota=aquota.user,jqfmt=vfsv0     0     0

For group quota support use:

/data/sdk2     /data/sdk2     <filesystem type>    defaults,grpjquota=aquota.grp,jqfmt=vfsv0     0     0

If user and group quota is needed, then use:

/data/sdk2     /data/sdk2     <filesystem type>   defaults,usrjquota=aquota.user,grpjquota=aquota.grp,jqfmt=vfsv0     0     0

2. Remount the filesystem:

#mount -o remount /data/sdk2

3. Re-check the filesystem:

#quotacheck -vug /data/sdk2

The journal quota will now be enabled and the warnings messages will not appear anymore.

Note: <filesystem type> should be replaced with ext3/ext4.

2 Comments

on “How to enable Journaled quota in a RHEL/CentOS/Fedora ext3/ext4 filesystem
2 Comments on “How to enable Journaled quota in a RHEL/CentOS/Fedora ext3/ext4 filesystem
  1. My spouse and I stumbled over here different page and thought I may as well check things out.
    I like what I see so i am just following you. Look forward to looking at your web page for a second time.

Leave a Reply to Anonymous Cancel reply

Your email address will not be published. Required fields are marked *

*