OpenVZ Forum


Home » General » Support » Quota
icon5.gif  Quota [message #35950] Tue, 05 May 2009 19:38 Go to next message
SamTzu is currently offline  SamTzu
Messages: 6
Registered: May 2009
Junior Member
I have been trying to find how to set User and Group quota inside a container but I can't seem to find a clear answer.

Normally I would do this in a fstab file but I'm not sure that works here. (What would be the /dev/sda1 ?)

Here is the command I would like to implement...
/dev/sda1 / ext3 errors=remount-ro,usrquota,grpquota 0 1


Sam

Re: Quota [message #35954 is a reply to message #35950] Wed, 06 May 2009 07:38 Go to previous messageGo to next message
SamTzu is currently offline  SamTzu
Messages: 6
Registered: May 2009
Junior Member
This way imposes limits from the outset.

# vzyum <VEID> install quota
# vzctl set <VEID> --quotatime 0 --quotaugidlimit 500 --save
# vzctl restart <VEID>

How can I enable the quota without comitting to a predefined quota?


Sam

Re: Quota [message #35993 is a reply to message #35954] Sun, 10 May 2009 23:51 Go to previous messageGo to next message
jakob is currently offline  jakob
Messages: 19
Registered: June 2008
Junior Member
To enable quota for one guest, do

vzctl set <VEID> --quotaugidlimit 500 --save

That's it. You are not setting any quota with this. You are just limiting the number of different users that own files to 500.
icon14.gif  Re: Quota [message #35996 is a reply to message #35993] Mon, 11 May 2009 06:21 Go to previous message
SamTzu is currently offline  SamTzu
Messages: 6
Registered: May 2009
Junior Member
thx

Sam
Previous Topic: [SOLVED] Errors when resuming live-migration
Next Topic: vps config
Goto Forum:
  


Current Time: Sun Jul 14 14:01:10 GMT 2024

Total time taken to generate the page: 0.02355 seconds