| Change VEID without recalculating quota :: vzmlocal openvz option [message #20688] | 
			Tue, 25 September 2007 07:55   | 
		 
		
			
				
				
				
					
						  
						rickb
						 Messages: 368 Registered: October 2006 
						
					 | 
					Senior Member  | 
					 | 
		 
		 
	 | 
 
	
		Hello friends, I posted about this a few months ago but I can't find it; devs confirmed there was no solution right now but I think  I am onto one. 
 
problem: 
 
I want to change the VEID without recalculating the quota. Naturally I change /vz/private/OLD to /vz/private/NEW, OLD.conf to NEW.conf, then start NEW. Vzctl then wants to calc the fresh quota as it should. I have tried to move /var/vzquota/OLD.quota to NEW.quota but the value OLD is stored in the binary quota file and thus is a corrupt NEW quota file. 
 
solution: 
 
I then remembered that the virtuozzo tool vzmlocal can rename a VE and does not require quota [re]calculation upon start. vzmlocal is a binary tool, does anyone know if it performs some replacement on the OLD.quota binary? If so, I am interested in doing this myself. 
 
Any pointers or ideas on how to rename a VE without quota calc on openvz are appreciated. 
 
Thanks! 
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
		[Updated on: Tue, 25 September 2007 08:03] Report message to a moderator  
 |  
	| 
		
	 | 
 
 
 |