Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

OpenVZ / Proxmox 3.4 quotas broken

Discussion in 'General Discussion' started by mathx, Jan 16, 2017.

Tags:
  1. mathx

    mathx Member

    Joined:
    Jan 16, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    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)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,378
    Likes Received:
    1,857
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice