cPanel VPS: Disk Quotas are not working. Please help

gayan

Member
Jun 21, 2009
11
0
51
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
 

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
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:

Spiral

BANNED
Jun 24, 2005
2,018
8
193
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 ...
 

HostIt

Well-Known Member
Feb 22, 2003
151
1
168
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 :)
 

gayan

Member
Jun 21, 2009
11
0
51
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
 

Spiral

BANNED
Jun 24, 2005
2,018
8
193
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.