OpenVZ Forum


Home » General » Support » Change VEID without recalculating quota :: vzmlocal openvz option
Re: Change VEID without recalculating quota :: vzmlocal openvz option [message #20795 is a reply to message #20762] Wed, 26 September 2007 10:23 Go to previous messageGo to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Thanks Vasily, I tried this (your procedure was what I naturally tried in the past as well). Below are the results.


[root@beast ~]# vzctl stop 1001
Stopping VE ...
VE was stopped
VE is unmounted
[root@beast ~]# mv /vz2/private/1001 /vz2/private/1002
[root@beast ~]# mv /etc/sysconfig/vz-scripts/1001.conf /etc/sysconfig/vz-scripts/1002.conf
[root@beast ~]# grep VE_PRIV /etc/sysconfig/vz-scripts/1002.conf
VE_PRIVATE="/vz2/private/$VEID"
[root@beast ~]# mv /var/vzquota/quota.1001 /var/vzquota/quota.1002
[root@beast ~]# vzctl start 1002
Starting VE ...
vzquota : (error) quota check : stat /vz2/private/1001: No such file or directory
vzquota on failed [1]
[root@beast ~]# grep 1001 /etc/sysconfig/vz-scripts/1002.conf
[root@beast ~]#


I believe this is the problem!:

[root@beast ~]# strings /var/vzquota/quota.1002 | grep 1001
/vz2/private/1001

I am wondering if vzmlocal modifies this quota file, I will test on virtuozzo.


-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
 
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 09:12:01 GMT 2024

Total time taken to generate the page: 0.03229 seconds