Yet another quota thread (VPS)

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
34
4
58
Hi,

I searched for similar cases, however, either the suggestions are not working for me or the threads aren't resolved.

All VPS on a openvz node have the same problem. All account in them show unlimited quota and 0 or very low (MB) disk usage.

This problem started after a node upgrade (kernel involved) and restart.

I have restarted every container.

The one thing I haven't tried yet is to just restart the node.

Here are some outputs within a container:
Code:
# /scripts/fixquotas
Installing Default Quota Databases.../var/cpanel/sysinfo.config updated.
...Done
journaled quota support: not available with vzaquota (disabled)
Warning virtual file systems are mounted. Quotas may be counted as double
for users who are currently logged in. Please have jailshell users logout
before running quotacheck in the future!

All jailed users will be logged out in 60 seconds!

jailshell: no process killed
checking out /backup
checking out /backup
Quotas have been enabled and updated.
Reading package gem1_basico
Resetting quota for adin to 5120 M
Reading package geam1_Basic
Resetting quota for autream to 250 M
Resetting quota for cow to 250 M
Reading package diovi_empresarial
Resetting quota for diavi to 20000 M
Reading package dietm_DIAV
Resetting quota for dinom to 1000 M
Reading package ditm_DIM
Resetting quota for dintm to 20000 M
Resetting quota for geam1 to 0 M
Reading package geam1_Mini
Resetting quota for mevo to 1000 M
Reading package diai_standard
Resetting quota for punor to 7000 M
Reading package geam1_A3
Resetting quota for regional to 30720 M
Reading package geom1_Wordpress
Resetting quota for spleas to 2000 M
Reading package diovi_startup
Resetting quota for wwelvien to 4000 M
Resetting quota for wwani to 7000 M
Code:
# /scripts/resetquotas
Reading package geaom1_basico
Resetting quota for admin to 5120 M
Reading package geacom1_Basic
Resetting quota for autdream to 250 M
Resetting quota for co3w to 250 M
Reading package diai_empresarial
Resetting quota for diai to 20000 M
Reading package dinm_DINAV
Resetting quota for dietcom to 1000 M
Reading package dinm_DINAVM
Resetting quota for dinavm to 20000 M
Resetting quota for geom1 to 0 M
Reading package geom1_Mini
Resetting quota for meavo to 1000 M
Reading package diaovi_standard
Resetting quota for punor to 7000 M
Reading package gear1_A3
Resetting quota for regional to 30720 M
Reading package gea1_Wordpress
Resetting quota for splaeideas to 2000 M
Reading package diavi_startup
Resetting quota for wwwelvien to 4000 M
Resetting quota for wwni to 7000 M
Code:
# cat /etc/fstab
none    /dev/pts    devpts    rw,gid=5,mode=620    0    0
none    /dev/shm    tmpfs    nodev,nosuid,noexec    0    0
none    /tmp         tmpfs     nodev,nosuid,noexec     0     0
Code:
# mount
simfs on / type simfs (rw,relatime,usrquota,grpquota)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /dev type devtmpfs (rw,relatime,mode=755)
none on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
none on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime)
none on /tmp type tmpfs (rw,nosuid,nodev,noexec,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
simfs on /home/virtfs/gem1/bin type simfs (ro,nosuid,relatime,usrquota,grpquota)
none on /home/virtfs/gom1/dev type devtmpfs (rw,nosuid,noexec,relatime,mode=755)
simfs on /home/virtfs/gm1/lib type simfs (ro,nosuid,relatime,usrquota,grpquota)
simfs on /home/virtfs/gm1/opt type simfs (ro,nosuid,relatime,usrquota,grpquota)
none on /home/virtfs/gem1/tmp type tmpfs (rw,nosuid,noexec,relatime)
simfs on /home/virtfs/gem1/var type simfs (ro,nosuid,relatime,usrquota,grpquota)
simfs on /home/virtfs/gm1/sbin type simfs (ro,nosuid,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/lib64 type simfs (ro,nosuid,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/var/log type simfs (rw,nosuid,noexec,relatime,usrquota,grpquota)
simfs on /home/virtfs/geom1/etc/mail type simfs (rw,nosuid,noexec,relatime,usrquota,grpquota)
simfs on /home/virtfs/gom1/usr/sbin type simfs (ro,relatime,usrquota,grpquota)
simfs on /home/virtfs/geom1/var/spool type simfs (rw,nosuid,noexec,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/etc/pki/tls type simfs (ro,nosuid,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/var/cpanel/email_send_limits type simfs (rw,nosuid,noexec,relatime,usrquota,grpquota)
simfs on /home/virtfs/ge1/usr/local/cpanel/3rdparty/mailman type simfs (ro,relatime,usrquota,grpquota)
simfs on /home/virtfs/geom1/usr/local/cpanel/3rdparty/mailman/logs type simfs (rw,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/usr/local/cpanel/3rdparty/mailman/lists type simfs (rw,relatime,usrquota,grpquota)
simfs on /home/virtfs/geom1/usr/local/cpanel/3rdparty/mailman/locks type simfs (rw,relatime,usrquota,grpquota)
simfs on /home/virtfs/gcom1/usr/local/cpanel/3rdparty/mailman/qfiles type simfs (rw,relatime,usrquota,grpquota)
simfs on /home/virtfs/gem1/home/gearcom1 type simfs (rw,relatime,usrquota,grpquota)
Code:
# uname -a
Linux 2.6.32-042stab113.11 #1 SMP Fri Dec 18 17:32:04 MSK 2015 x86_64 x86_64 x86_64 GNU/Linux
Here some outputs from the node (regarding same container above):
Code:
# vzquota show 108
vzquota : (warning) Quota is running, so data reported from quota file may not reflect current values
   resource          usage       softlimit      hardlimit    grace
  1k-blocks       99033500       146800640      146800640     
     inodes        1725336        73400320       73400320
Code:
# vzquota on 108 -s 1
vzquota : (warning) Quota is running for id 108 already
Code:
# grep -i QUOTAUGIDLIMIT /etc/sysconfig/vz-scripts/108.conf
QUOTAUGIDLIMIT="1000"
 

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
34
4
58
Hi cPanelMichael, unfortunately not. I'm not having the errors on the thread as you can see on my outputs. Also, quotas (1st and 2nd) are enabled.

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
The one thing I haven't tried yet is to just restart the node.
You could try this if all other solutions have failed. I'm not seeing any cPanel related error messages in the output you provided, so it looks more like an issue with the VPS hardware node itself.

Thank you.
 

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
34
4
58
I'm getting new leads:

These errors are coming on cron jobs:
Code:
Cannot guess /dev/root at /usr/local/cpanel/Cpanel/Filesys/Root.pm line 24.
Also, I rebooted the node and nothing, however tried the fixquota script again and got this:
Code:
Installing Default Quota Databases......Done

journaled quota support: not available with vzaquota (disabled)

Warning virtual file systems are mounted. Quotas may be counted as double for users who are currently logged in. Please have jailshell users logout before running quotacheck in the future! All jailed users will be logged out in 60 seconds! jailshell: no process killed

checking out /backup
checking out /backup

Quotas have been enabled and updated.

Reading package gom1_basico
edquota: Cannot stat() mounted device simfs: No such file or directory No filesystems with quota detected. Resetting quota for admin to 5120 M
Reading package gom1_Basic
edquota: Cannot stat() mounted device simfs: No such file or directory No filesystems with quota detected. Resetting quota for auto4dream to 250 M
edquota: Cannot stat() mounted device simfs: No such file or directory No filesystems with quota detected. Resetting quota for cod3w to 250 M

...
...
...
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
You may need to consult with a qualified system administrator or with the OpenVZ support channels if quotas continue to fail, as quotas are handled by the OS as opposed to the cPanel software.

Thank you.
 

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
34
4
58
Well, this is the latest steps I've taken. No errors now and still cPanel not reading quotas...

Code:
rm -f /aquota.user 2>/dev/null
rm -f /aquota.group 2>/dev/null
for x in `find /proc/vz/vzaquota/ | tail -2 `; do ln -s $x / ; done
Then...
Code:
quotacheck -vagum
And finally...
Code:
# /scripts/fixquotas 
Installing Default Quota Databases......Done
journaled quota support: not available with vzaquota (disabled)
Warning virtual file systems are mounted. Quotas may be counted as double
for users who are currently logged in. Please have jailshell users logout
before running quotacheck in the future!

All jailed users will be logged out in 60 seconds!

jailshell: no process killed
checking out /backup
checking out /backup
Quotas have been enabled and updated.
Reading package gcom1_basico
Resetting quota for admin to 5120 M
Reading package gcom1_Basic
Resetting quota for dream to 250 M
Resetting quota for cw to 250 M
Reading package divi_empresarial
Resetting quota for divi to 20000 M
Reading package dinm_DINA
Resetting quota for dinam to 1000 M
Reading package din
Resetting quota for dim to 20000 M
Resetting quota for ge1 to 0 M
Reading package ge1_Mini
Resetting quota for mevo to 1000 M
Reading package diai_standard
Resetting quota for ppor to 7000 M
Reading package gem1_A3
Resetting quota for regl to 30720 M
Reading package gearcpress
Resetting quota for splaeas to 2000 M
Reading package diarrtup
Resetting quota for wwadelvien to 4000 M
Resetting quota for wwani to 7000 M
No errors, still no quotas...
 

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
34
4
58
Well, finally went back to an old openvz kernel and everything is working.