Results 1 to 7 of 7

Thread: cPanel VPS: Disk Quotas are not working. Please help

  1. #1
    Member
    Join Date
    Jun 2009
    Posts
    10

    Default cPanel VPS: Disk Quotas are not working. Please help

    Hello everyone,

    I have an issue with disc quotas with my vps. Though i have specified in my packages a quota limit, it is not being applied to the users. This only happens to disk quotas. All other settings are working fine.

    I've also run the initial quota setup via the root login with no luck.

    My setup is:

    cPanel 11.24.4-R36167 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 x86_64 virtuozzo on vps

    It would be great if anyone could help me in this.


    Thanks

  2. #2
    Member
    Join Date
    Feb 2003
    Posts
    191

    Default

    Do you have "usrquota" set up for the partition your sites are on? Check /etc/fstab for something like the following - where you can see /dev/sda2 has "usrquota" enabled:
    Code:
    # /etc/fstab: static file system information.
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    proc            /proc           proc    defaults        0       0
    /dev/sda1 none swap sw 0 0
    /dev/sda2 / ext3 noatime,nodiratime,usrquota,errors=remount-ro 0 1
    /usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
    If not, I've found the least complicated way to enable quotas is to edit /etc/fstab manually, adding "usrquota" for the partition(s) needed, reboot the server and then run "/scripts/initquotas; /scripts/fixquotas" from shell once it has rebooted.

    (Disclaimer: Take caution when editing /etc/fstab if you're not 100% sure of what you're doing. As with any significant system file, you are best advised to back it up before making any changes. Should failure result, you should be able to reboot in rescue mode and restore the backup)
    Last edited by HostIt; 06-26-2009 at 02:07 AM.

  3. #3
    BANNED
    Join Date
    Jun 2005
    Posts
    2,023

    Default

    Quote Originally Posted by HostIt View Post
    If not, I've found the least complicated way to enable quotas is to edit /etc/fstab manually, adding "usrquota" for the partition(s) needed, reboot the server and then run "/scripts/initquotas; /scripts/fixquotas" from shell once it has rebooted.
    Or just remount the partitions ...

  4. #4
    Member
    Join Date
    Feb 2003
    Posts
    191

    Default

    Quote Originally Posted by Spiral View Post
    Or just remount the partitions ...
    Yeah I was going to mention that, but that can bring it's own set of headaches and perhaps isn't as intuitive. Always several ways to skin a cat as they say

  5. #5
    Member serversignature's Avatar
    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    107

    Default

    Gayan... please check if this helps you to fix ServerSignature.com - How to Fix Cpanel/WHM quota

    Thanks
    Serversignature.com - Professional Linux Consulting.

  6. #6
    Member
    Join Date
    Jun 2009
    Posts
    10

    Default

    Hey fellas,

    i'm really sorry for no responding to this. For sum strange reason email notifications didn't arrive to me.

    I will post back as i'm in the process of rebuilding the vps. Though i have to mention i didn't have anything similar what HostIt posted. the fstab file had only one line.

    Anyways once things are rebuilt i will let you know.

    Thanks

  7. #7
    BANNED
    Join Date
    Jun 2005
    Posts
    2,023

    Default

    I have an issue with disc quotas with my vps...
    It just occurred to me you said "VPS" ...

    There are several reasons why I don't generally like to use VPS servers ...

    1. Cannot manage base server time clock from within VPS environments
    unless you have control of the physical machine so if your clock is
    off time for anything other than timezone, you are generally S.O.L.

    2. Many if not most of the VPS environments do not correctly pass
    down quota permissions or do not correctly enforce quotas which
    can become a headache managing heavily used accounts.


    3. The vast majority of VPS accounts have resources incorrectly allocated
    or overextended and the base amount of memory on VPS accounts is
    far too often exceedingly and dreadfully inadequate.

    4. Cannot set immutable permissions in most VPS environments

    5. More security issues than I care to name in a single post which could
    be the subject of their own security textbook by themselves.

Similar Threads

  1. Disk inodes on vps for cpanel
    By nitaish in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 02-03-2011, 11:34 AM
  2. Can't fully disable disk quotas
    By vgv in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 10-15-2010, 07:23 AM
  3. Disk quotas
    By its_joy in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-08-2008, 08:25 AM
  4. Disk Quotas show as doubled
    By Snowman30 in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 08-26-2005, 05:31 AM
  5. Disk Quotas for rearranged accounts
    By ialex03 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 12-02-2004, 11:39 AM