OpenVZ Forum


Home » General » Support » Problem In Cpanel, Disk Quota Doesnt working
Problem In Cpanel, Disk Quota Doesnt working [message #26507] Fri, 25 January 2008 09:50 Go to next message
ataomega is currently offline  ataomega
Messages: 24
Registered: November 2007
Junior Member

hi all,
in whm , i see quota for all users is unlimited and disk space used is 0 mb!
how can i fix it? can anyone please help me?



thanks
Re: Problem In Cpanel, Disk Quota Doesnt working [message #26509 is a reply to message #26507] Fri, 25 January 2008 10:27 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
search feature || wiki -> http://wiki.openvz.org/Cpanel_quotas

-------------
Common Terms I post with: http://wiki.openvz.org/Category:Definitions

UBC. Learn it, love it, live it: http://wiki.openvz.org/Proc/user_beancounters
Re: Problem In Cpanel, Disk Quota Doesnt working [message #26528 is a reply to message #26507] Fri, 25 January 2008 15:50 Go to previous messageGo to next message
Arbvps.com is currently offline  Arbvps.com
Messages: 1
Registered: January 2008
Location: Egypt
Junior Member
uname -a
icon11.gif  Re: Problem In Cpanel, Disk Quota Doesnt working [message #26651 is a reply to message #26507] Wed, 30 January 2008 07:59 Go to previous messageGo to next message
powervps is currently offline  powervps
Messages: 54
Registered: December 2007
Member
Laughing Laughing Laughing
you need to change in the

/etc/sysconfig/vz-scripts/xxx.conf

xxx node nr

setup it to QUOTAUGIDLIMIT="3000"

that will fix the problems

Re: Problem In Cpanel, Disk Quota Doesnt working [message #29402 is a reply to message #26651] Sat, 12 April 2008 04:02 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
powervps wrote on Wed, 30 January 2008 09:59

Laughing Laughing Laughing
you need to change in the

/etc/sysconfig/vz-scripts/xxx.conf

xxx node nr

setup it to QUOTAUGIDLIMIT="3000"

that will fix the problems




Can you please explain to me what exactly this does / means?
Re: Problem In Cpanel, Disk Quota Doesnt working [message #29414 is a reply to message #29402] Sat, 12 April 2008 10:19 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

it the same like:

# vzctl set <CTID> --quotaugidlimit num

man page of vzctl, "Disk quota parameters":

[...]
--quotaugidlimit num--quotaugidlimit num

sets maximum number of user/group IDs in a VE for which disk quota
inside the VE will be accounted. If this value is set to 0, user
and group quotas will not be accounted inside the VE.

Note that if you have previously set value of this parameter to 0,
changing it while the VE is running will not take effect.
[...]

Re: Problem In Cpanel, Disk Quota Doesnt working [message #29422 is a reply to message #26507] Sat, 12 April 2008 11:03 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
ok, so setting the --diskspace won't make a difference then?

I currently have a VE with 10GB space, but want to increase it to 15 GB, which didn't work, as can be seen here:

vzquota show 1001; vzctl exec 1001 df -H
vzquota : (warning) Quota is running, so data reported from quota file may not reflect current values
   resource          usage       softlimit      hardlimit    grace
  1k-blocks        3374996        15728640       16777216
     inodes         122722          600000         660000
Filesystem             Size   Used  Avail Use% Mounted on
simfs                  8.9G   4.6G   3.6G  57% /


I used

vzctl set --diskspace 15G:16G 1001 --save


Reading throught the man page again, http://openvz.org/documentation/mans/vzctl.8 - I don't fully understand this statement

--quotaugidlimit num
sets maximum number of user/group IDs in a VE for which disk quota inside the VE will be accounted. If this value is set to 0, user and group quotas will not be accounted inside the VE. Note that if you have previously set value of this parameter to 0, changing it while the VE is running will not take effect



what gid is this that it's talking about?
Re: Problem In Cpanel, Disk Quota Doesnt working [message #29426 is a reply to message #26507] Sat, 12 April 2008 11:40 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
I've tried increasing he quota, but got an error:


vzctl set 1001 --quotaugidlimit 15 --save
Setting quota ugidlimit: 15
Unable to apply new quota values: ugid quota not initialized
Saved parameters for VE 1001

[root@gandalf ~]# vzctl exec 1001 df -H
Filesystem             Size   Used  Avail Use% Mounted on
simfs                  8.9G   4.6G   3.6G  57% /



What is the proper way of increasing the quota? I have searched the forum already, which is how I got to this thread, but didn't find an answer
Re: Problem In Cpanel, Disk Quota Doesnt working [message #29507 is a reply to message #26507] Tue, 15 April 2008 13:14 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
Can someone please help me? I urgently need to upgrade the space on a VPS for a client, but can't
Re: Problem In Cpanel, Disk Quota Doesnt working [message #29516 is a reply to message #29507] Tue, 15 April 2008 16:41 Go to previous messageGo to next message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

sorry for delay,
there a two "quota systems" used by OpenVZ:

1 Level Quota:
--------------
Space Hostnode to Container:
is set by --diskspace barrier:limit (/--diskinode barrier:limit)
config how much a container can use the diskspace/indodes on the hardwarenode

2Level Quota:
-------------
is how many User/Group in this container can use the space above,
set by --quotaugidlimit num (= limit of quota u(ser) g(roup)id) set how many User/Groups ID are accounted)

For setting User/Group Quota in your CT you can use the console quota tools, like edquota etc or use any config (panel) software.

> "you must restart your CT for taken any effects and ..."
restart your CT and you can use the 2level quota, but increase the number of quotaugidlimit, it's to small!

Re: Problem In Cpanel, Disk Quota Doesnt working [message #29530 is a reply to message #26507] Tue, 15 April 2008 19:39 Go to previous messageGo to next message
SoftDux is currently offline  SoftDux
Messages: 55
Registered: November 2007
Location: Johannesburg, South Afric...
Member
Thank you for that explanation, it wish it was in the wiki Smile

so, if I have 100 accounts in cPanel, then 150 should be a good amount for the gidquota?
icon7.gif  Re: Problem In Cpanel, Disk Quota Doesnt working [message #36740 is a reply to message #26507] Tue, 14 July 2009 12:46 Go to previous message
hostingbiniz is currently offline  hostingbiniz
Messages: 1
Registered: July 2009
Location: Turkey
Junior Member
OK here is the solution for VPS.
Please try following it worked for me.

1- First change the /etc/fstab file similsr to as follows:

# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3,usrquota defaults 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmps defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0

2- change in the

/etc/sysconfig/vz-scripts/xxx.conf

setup it to QUOTAUGIDLIMIT="3000"
reboot
3- this command as well as in sequence :

quotaoff -av
quotaon -av
/scripts/fixquotas

it should solve the issue



aikazemi
hostingbizniz.com
Previous Topic: "vzctl stop" - hangs
Next Topic: Problems with local network interface
Goto Forum:
  


Current Time: Tue May 14 14:47:58 GMT 2024

Total time taken to generate the page: 0.01479 seconds