Wednesday, March 7, 2012

How to enable quotas on an ext4 file system. Centos 6 (Works with WHM

If you are receiving the following error when trying to enable quotas in WHM:

========
quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option
=======

You should first try doing both of the following via SSH:

/scripts/fixquotas
/scripts/fixcommonproblems

Then try to enable quotas, if the error is still occurring you may need to edit your fstab file, this can be tricky. First you will need to run:

vi /etc/fstab

Then you will need to locate where your directories are mounted on. For example, if you have this line:

/dev/mapper/vg-root / ext4 discard,noatime 1 1

You will need to replace it with:

/dev/mapper/vg-root / ext4 discard,noatime,usrquota 1 1

You should now reboot your system and once booted go into WHM and click Enable Quotas or run:

/scripts/fixquotas

No comments:

Post a Comment