problem fix quotas cpanel error : edquota: Quota write failed (id ): Invalid argument

In my vps virtuozzo have troble on quota unlimited for some user, Two days back I came across an issue, where one customer was unable to change the quota settings of a user from WHM. In WHM no errors are reported, but in the cpanel error log quota writing failure messages were reported. Running the fixquotas script also didn’t helped. The output of that command is pasted below,
———————————“
-bash-3.2# /scripts/fixquotas
Installing Default Quota Databases……Done
Linux Quota Support
Quotas are now on
Resetting quota for blo3 to 2500 M
edquota: Quota write failed (id 504): Invalid argument
Resetting quota for agre to 200 M
edquota: Quota write failed (id 513): Invalid argument
Resetting quota for earn to 500 M
edquota: Quota write failed (id 503): Invalid argument
Resetting quota for elks to 1000 M
edquota: Quota write failed (id 521): Invalid argument
Resetting quota for usan to 500 M
edquota: Quota write failed (id 514): Invalid argument
-bash-3.2#
———€”â———————–

The solution for this fix was to run the quotacheck command with the following options,
/sbin/quotacheck -vguma

The details about the switches are pasted below,
-v :- quotacheck reports its operation as it progresses.
-g :- Only group quotas listed in /etc/mtab or on the filesystems specified are to be checked
-u :- Only user quotas listed in /etc/mtab or on the filesystems specified are to be checked. This is the default action
-m :- Don’t try to remount filesystem read-only
-a :- Check all mounted non-NFS filesystems in /etc/mtab

Running the above quotacheck command solved the issue in my case. Hope this might help someone:)

Be Sociable, Share!

Leave a Reply

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