Go Back   cPanel Forums > General Discussion > cPanel Newbies

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-25-2009, 08:29 PM
Registered User
 
Join Date: Jun 2009
Posts: 5
gayan is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-26-2009, 02:00 AM
Registered User
 
Join Date: Feb 2003
Posts: 191
HostIt is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-26-2009, 02:55 AM
Senior Member
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,621
Spiral is on a distinguished road
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 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-26-2009, 02:57 AM
Registered User
 
Join Date: Feb 2003
Posts: 191
HostIt is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-26-2009, 09:04 AM
serversignature's Avatar
Registered User
 
Join Date: Nov 2007
Location: Bangalore
Posts: 105
serversignature is on a distinguished road
Gayan... please check if this helps you to fix ServerSignature.com - How to Fix Cpanel/WHM quota

Thanks
__________________
Serversignature.com - Professional Linux Consulting.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-26-2009, 01:01 PM
Registered User
 
Join Date: Jun 2009
Posts: 5
gayan is on a distinguished road
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-26-2009, 08:13 PM
Senior Member
 
Join Date: Jun 2005
Location: Area 51
Posts: 1,621
Spiral is on a distinguished road
Quote:
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk quotas its_joy cPanel and WHM Discussions 1 05-08-2008 08:25 AM
permenently disabling disk quotas chilihost cPanel and WHM Discussions 7 12-23-2005 01:51 PM
Disk Quotas show as doubled Snowman30 cPanel and WHM Discussions 2 08-26-2005 05:31 AM
Disk Quotas - New User Problem johnmcneely cPanel and WHM Discussions 2 08-16-2004 12:29 PM


All times are GMT -5. The time now is 04:07 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc