cP disk quotas stuck on zero/unlimited, WHM fixed

sysnop

Member
May 22, 2005
12
0
151
Quotas for both bandwidth AND disk were 0/unlimited in both WHM and cPanel. I had the dc enable quotas for my Virtuozo VPS which corrected bandwidth quotas in WHM and CP, plus disk quotas in WHM were fixed. cPanel is the problem. Remaining are 0/unlimited disk quotas for al CP users. I've searched high and low in this and other forums. I've tried lots of suggestions but nothing works.

Some fixes I tried that are common...

# /scripts/fixquotas

...returns this console message (also when quotacheck is run):

Installing Default Quota Databases......Done
Quotas are now on
Updating Quota Files......
quotacheck: Scanning /dev/vzfs [/] done
quotacheck: Checked 15508 directories and 168571 files
quotacheck: Cannot turn user quotas off on /dev/vzfs: Device or resource busy
Kernel won't know about changes quotacheck did.
quotacheck: Cannot turn group quotas off on /dev/vzfs: Device or resource busy
Kernel won't know about changes quotacheck did.

I've seen reference to this file, mine looks unusual:
# more /etc/usrtab
none /dev/pts devpts rw 0 0

This file was empty, I added the one line shown:
# more /etc/rc.conf
enable_quotas="YES"

When I run:
# /scripts/resetquotas --useplanquotas
it acts like quotas have been reset but cPanel remains at 0/unlimited. Again, WHM numbers are good.

The file /etc/quota.conf shows current and old users and disk quotas. I removed users from this list that were deleted from WHM. With one particular user, old and new references are the same user; the domain was deleted from WHM and added back with a different user name. Although I suspect this may cause an ownership problem, there's no pattern. All other users that were created only once illustrate the same disk quota problem: zero usage, unlimited quota.

I've also seen reference to backup storage related to quota problems. Backups are disabled on my system.

Today I ran /scripts/cpup which brought me to WHM 10.6.0 cPanel 10.8.0-S21; running on CentOS 3.4. Then I ran initquotas. And fixquotas after that. No luck.

Support through my dc is normally excellent but they can't help with this problem.

Help is appreciated, particularly if I can be supported by cPanel (once winds have died down in Houston).
 
Last edited:

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,466
30
473
Go on, have a guess
You need to speak to your VPS provider, only they can fix the problem as it's peculiar to VPS systems. If you search a bit further (if you actually runs the VPS systems on the physical server) someone posted a solution recently.
 

sachink

Member
Oct 15, 2006
15
0
151
fixquotas Error

Hello,

/scripts/fixquotas

quotacheck: Scanning /dev/hda6 [/] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 1977 directories and 102857 files
quotacheck: Scanning /dev/hda2 [/home] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 22806 directories and 405573 files
quotacheck: Scanning /dev/hda3 [/usr] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 7136 directories and 85705 files
quotacheck: Scanning /dev/hda5 [/var] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 732 directories and 8689 files


quotacheck: Scanning /dev/hda6 [/] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 1977 directories and 102857 files
quotacheck: Scanning /dev/hda2 [/home] quotacheck: Old group file not found. Usage will not be substracted.
done
quotacheck: Checked 22806 directories and 405573 files
quotacheck: Scanning /dev/hda3 [/usr] quotacheck: Old group file not found. Usage will not be substracted.
done

Thank You,
Sachin