Home > Cpanel/WHM > edquota: Quota write failed (id 514): Invalid argument

edquota: Quota write failed (id 514): Invalid argument

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:)

Advertisements
Categories: Cpanel/WHM
  1. November 16, 2011 at 2:52 pm

    Thanks for the tip! I had the same error and ran ‘/sbin/quotacheck -vguma’ as you suggested. It took a loooong time to process but it fixed the problem 🙂

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: