The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel VPS: Disk Quotas are not working. Please help

Discussion in 'Data Protection' started by gayan, Jun 25, 2009.

  1. gayan

    gayan Member

    Joined:
    Jun 21, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    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)
     
    #2 HostIt, Jun 26, 2009
    Last edited: Jun 26, 2009
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Or just remount the partitions ...
     
  4. HostIt

    HostIt Well-Known Member

    Joined:
    Feb 22, 2003
    Messages:
    151
    Likes Received:
    1
    Trophy Points:
    18
    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. serversignature

    serversignature Well-Known Member

    Joined:
    Nov 26, 2007
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore
  6. gayan

    gayan Member

    Joined:
    Jun 21, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    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. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    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.
     
Loading...

Share This Page