OpenVZ / Proxmox 3.4 quotas broken

mathx

Active Member
Jan 16, 2017
26
3
3
Toronto
cPanel Access Level
DataCenter Provider
I assume the mysterious 'other usage' for a user is just the difference between /sbin/quota $user and du ~ user, yes?

if so, quotas under OpenVZ/proxmox 3.4 are broken.

I'm running on proxmox ve 3.4 for this openvz container and I have secondary quota option turned on. I can fix quotas by shutting down the container, clearing out the quota files and letting OpenVZ retally diskusage for the entire server, then run /scripts/fixquota but that's not very sustainable.

I use

# vzctl stop $CTID; vzquota off $CTID; vzquota drop $CTID; vzquota on $CTID -s 1; rm /var/lib/vz/private/$CTID/aquota.*; vzctl restart $CTID; vzctl enter $CTID

inside the container I then /scripts/fixquotas.

which fixes it, for now (and also fixes general quota issues).
  • CENTOS 5.8 x86_64 virtuozzo
  • WHM 56.0 (build 41)[/URL]

In /etc/vz/*.conf I have

# Disk quota parameters (in form of softlimit:hardlimit)
DISKSPACE="104857600:115343360"
DISKINODES="20000000:22000000"
QUOTATIME="0"
QUOTAUGIDLIMIT="5000".

And on the container

#mount
/dev/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 tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,relatime)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

so usrquota and grpquota are enabled. And yet quota does not work for users and shows extra usage or missing usage constantly.

(Just created a 1gb file in user's homedir, it was not tallied to his account under quota $user)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.