Enable Disk Quotas on plesk for Linux

First of all make sure that quota is supported by kernel. It should be compiled into the kernel or loaded as module.

You can check if quota is configured properly with this command line:
/usr/local/psa/admin/sbin/usermng –isquotable

Normally, it should return “0”.

If the utility returns the following error message:

usermng: Unable to turn on user quota. User quota not supported on device ‘/dev/sda3′
System error 3: No such process

then, make sure that quota is enabled in /etc/fstab for the partitions Plesk stores data on. You should add ‘usrquota’ as it is done in the example below:

/dev/hda1 / ext3 defaults,usrquota 1 1

The partition must be remounted after you added usrquota option into /etc/fstab, for example with:
mount -o remount /

Update users quota with this command line:

quotaon /dev/hda1

Make sure that ‘aquota’ format is used. It should be an aquota.user file
in the root of every partition where quota is enabled. If you see
the ‘quota.user’ file, please remove it and create the right one:
rm -f quota.user
touch aquota.user
/sbin/quotacheck -fmv /dev/hda1

Note: you have to use your own device instead of ‘/dev/hda1′.

You can leave a response, or trackback from your own site.

One Response to “Enable Disk Quotas on plesk for Linux”

  1. shukhratini says:

    Thanks, your article really helped solve the problem with quotas

Leave a Reply