OpenVZ Forum


Home » General » Support » possible to build vzquota file after VE has started?
possible to build vzquota file after VE has started? [message #15236] Mon, 23 July 2007 18:22 Go to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi, I want to start a new VE without vzctl invoking 'vzquota on VEID x x x x xx'. Is it possible to start the VE without any quota support and then build the quota while the VE is running, and have the quota be sane after it is built?

The idea is to start a VE very quickly and not care about quota enforcement in the very short term but still have it enforced as normal later.

Rick


-------------
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: possible to build vzquota file after VE has started? [message #15240 is a reply to message #15236] Tue, 24 July 2007 03:43 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Rick,

It looks like I do not understand your question correctly:

Usually quota is saved into quota-file on VE stop and restored on next VE start. They are fast operations and as far as I understand your optimization is not required here.

Quota is recalculated on the first VE boot and in some other rare cases when quota-file has not been saved correctly on VE stop.
But IMHO it is really rare cases and therefore your optimization is not make big sense here too.

Am I miss something? Could you plese explain your Idea to me more detailed?

Thank you,
Vasily Averin
Re: possible to build vzquota file after VE has started? [message #15241 is a reply to message #15240] Tue, 24 July 2007 04:11 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi, on the very first VE start, after template unpacking, the quota is calculated on start, agree?

I wish to skip the initial quota calculation and calculate it later, after the VE has been started for the first time.


Rick


-------------
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: possible to build vzquota file after VE has started? [message #15242 is a reply to message #15241] Tue, 24 July 2007 04:38 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Ok,

thank you, I'm understand.
I'm agree, it looks reasonable

thank you,
Vasily Averin
Re: possible to build vzquota file after VE has started? [message #15273 is a reply to message #15242] Wed, 25 July 2007 16:56 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Hi Vasily, do you have any suggestions on how I can accomplish my idea?

Rick


-------------
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: possible to build vzquota file after VE has started? [message #15281 is a reply to message #15273] Thu, 26 July 2007 01:05 Go to previous messageGo to next message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hi Rick,

Currently it is not possible, and we cannot improve this feature quickly by some simple method.

Therefore we'll keep your idea in mind and will think how to implement this feature in next versions of vzctl/vzquota.

We cannot remove quota calls or move it to some other place -- because it is not help and it just move delay in other place.
However it make sense to think how to make asynchronous the quota initialization procedure.

Thank you,
Vasily Averin
Re: possible to build vzquota file after VE has started? [message #15282 is a reply to message #15281] Thu, 26 July 2007 01:07 Go to previous messageGo to next message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Excellent, thanks. One of my os templates is 2.5GB with tons and tons of files. It takes a while to calculate quota. Twisted Evil

Rick


-------------
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: possible to build vzquota file after VE has started? [message #15395 is a reply to message #15282] Sun, 29 July 2007 21:37 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
vaverin,

do you think it is possible to calculate the quota of the template, save it somewhere, then copy it to /var/vzquota/quota.VEID right before creating VEID?

[root@nickel ~]# strings /var/vzquota/quota.9890031
/vz/private/9890031
[root@nickel ~]#

can we replace that somehow?


Rick


-------------
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
Previous Topic: VPS Research
Next Topic: PPTP in venet
Goto Forum:
  


Current Time: Sun Jul 06 23:20:22 GMT 2025

Total time taken to generate the page: 0.03219 seconds