OpenVZ Forum


Home » General » Support » second level quota
second level quota [message #1318] Mon, 06 February 2006 20:17 Go to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

how to activate the second level quota with kernel 2.6.15 ?

Re: second level quota [message #1320 is a reply to message #1318] Mon, 06 February 2006 20:45 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

The same way as with kernel 2.6.8 -- using vzctl set NNN --quotaugidlimit XXX --save (and you need to restart a VPS after that), where NNN is VPS ID and XXX is number of users+groups for which you want to enable quota inside that VPS.

After that, use standard quota tools inside a VPS to set up quota limits for users/groups


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: second level quota [message #1322 is a reply to message #1320] Mon, 06 February 2006 20:52 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

is not possible to use quota as virtuozzo ?

i have Cpanel + virtuozzo installed , the second level quota is actif, there is no problem to activate quota on user level...

but i try to use user quota on OpenVZ + cpanel, it doesn't work Sad

-->

quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.

i think to use kernel 2.8.15 resolve this ?

Re: second level quota [message #1324 is a reply to message #1322] Mon, 06 February 2006 20:54 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

i try to use your command :

[root@ovz2 ~]# vzctl set 204 --quotaugidlimit 500 --save
Unable to apply new quota values: ugid quota not initialized
Saved parameters for VPS 204
Re: second level quota [message #1326 is a reply to message #1324] Mon, 06 February 2006 21:00 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

ouppss

it's work now, i am stupid, stop the vps first Smile

but it's very strange :

./fixquota

quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: Block 1: Reference to illegal block 0
quotacheck: WARNING - Some data might be changed due to corruption.
quotacheck: Scanning /dev/simfs [/] Setting grace times and other flags to default values.
Assuming number of blocks is 0.
Setting grace times and other flags to default values.
Assuming number of blocks is 0.
done
quotacheck: Checked 5831 directories and 64394 files
quotacheck: Cannot turn user quotas off on /dev/simfs: Invalid argument
Kernel won't know about changes quotacheck did.
quotacheck: Cannot turn group quotas off on /dev/simfs: Invalid argument
Kernel won't know about changes quotacheck did.


???
Re: second level quota [message #1327 is a reply to message #1326] Mon, 06 February 2006 21:15 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

VPS quota is accounted by kernel, you can not (and there is no need to) use tools such as fixquota and quotacheck for that.

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: second level quota [message #1328 is a reply to message #1327] Mon, 06 February 2006 21:24 Go to previous messageGo to next message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

yes , i understand, but this is only means that I know Sad

do know an other way to reset the quota in cpanel ? because now, the quota works , but when i list the accounts, he show unlimited for all ...

Re: second level quota [message #1329 is a reply to message #1328] Mon, 06 February 2006 21:28 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Does repquota shows the same (i.e. unlimited)?

Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: second level quota [message #1330 is a reply to message #1329] Mon, 06 February 2006 21:42 Go to previous message
youp is currently offline  youp
Messages: 82
Registered: September 2005
Location: Belgium
Member

no, he show the correct value ...

for info , i have restarted the VPS , the cpanel show the correct value also ...
Previous Topic: vz initialization.
Next Topic: /dev/loop support inside VEs?
Goto Forum:
  


Current Time: Mon Jul 22 08:21:03 GMT 2024

Total time taken to generate the page: 0.02450 seconds