Cannot create new quotafile ?

August 8, 2009 in Coding Mines, Murphy's law by ArtistPlug.ME

I’ve been busy with a very strange bug lately. A few weeks ago I’ve tried to fix it by using the normal quota procedures but still I was getting that dreadful DirectAdmin message with:

Error with system Quotas
setquota: Mountpoint (or device) /home not found.
setquota: Not all specified mountpoints are using quota.

Normally, the line /sbin/quotaoff -a ; /sbin/quotacheck -avugm ; /sbin/quotaon -a should fix it, but still, I got a rather nasty error with that:

root@mother:/# /sbin/quotacheck -avugm
quotacheck: Cannot create new quotafile //aquota.user.new: File exists
quotacheck: Cannot initialise IO on new quotafile: File exists
quotacheck: Cannot create new quotafile //aquota.group.new: File exists
quotacheck: Cannot initialise IO on new quotafile: File exists
quotacheck: Scanning /dev/cciss/c0d1p1 [/home]
....

I’ve solved this finally by renaming four files and running the same command again. Seems to be a (new) bug in Debian Etch? ..


cd / ; mv aquota.user.new aquota.user.trash ; cd /home ; mv aquota.user.new aquota.user.trash

I’ve had no group quotas defined, the same probably has to be done with aquota.group.new.