OpenVZ Forum


Home » General » Support » Change VEID without recalculating quota :: vzmlocal openvz option
Re: Change VEID without recalculating quota :: vzmlocal openvz option [message #20762 is a reply to message #20688] Wed, 26 September 2007 05:05 Go to previous messageGo to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
Hello Rick,

When quota is enabled it watches the changes in VE private area. When quota is disabled any modification inside this subtree invalidates quota.

However you can move whole subtree of VE private area to any another place on the same filesystem (i.e. by using sys_rename for private area directory). In this case quota information will be still consistent.

In your scenario you have started VE too early. On VE start quota file has not been found (I mean NEW.quota file) and quota has been recalculated. Also I would note that each VE start modifies several files inside VE private area -- and it invalidates information in OLD quota file.

Could you please try to make the following steps:
1) move private area to any new place on the same filesystem
2) rename VE configuration file and correct VE_PRIVATE path
3) Don't forget to move quota file too.

Now your quota file is present and have correct information about new VE private subdirectory.

Then you can try to mount VE -- and I believe quota will be started without recalculation.

thank you,
Vasily Averin
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Some VPS don't restart after HN reboot
Next Topic: Limiting multiple IP's with TC from Wiki
Goto Forum:
  


Current Time: Fri Nov 15 11:18:19 GMT 2024

Total time taken to generate the page: 0.03260 seconds