OpenVZ Forum


Home » General » Support » Change VEID without recalculating quota :: vzmlocal openvz option
Re: Change VEID without recalculating quota :: vzmlocal openvz option [message #20796 is a reply to message #20795] Wed, 26 September 2007 10:29 Go to previous message
rickb is currently offline  rickb
Messages: 368
Registered: October 2006
Senior Member
Yes this is definitely the key, see below:

[root@germanium ~]# md5sum /var/vzquota/quota.9889792
78f3b64633a22139dcd3834beb2bb2ef /var/vzquota/quota.9889792
[root@germanium ~]# vzmlocal 9889792:12345
Moving/copying VE#9889792 -> VE#12345, [], [] ...
Moving private area '/vz/private/9889792'->'/vz/private/12345'
done
Copying/modifying config scripts of VE#9889792 ...
done
Successfully completed
[root@germanium ~]# md5sum /var/vzquota/quota.12345
16288b19128a28c734370d3c50b36a4d /var/vzquota/quota.12345
[root@germanium ~]# strings /var/vzquota/quota.12345 | grep 12345
/vz/private/12345
[root@germanium ~]#


strace output:

write(1, "Copying/modifying config scripts"..., 49) = 49
stat64("/var/vzquota/quota.9889792", {st_mode=S_IFREG|0644, st_size=1365, ...}) = 0
open("/var/vzquota/quota.9889792", O_RDONLY) = 4
open("/var/vzquota/quota.12345", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5
fstat64(4, {st_mode=S_IFREG|0644, st_size=1365, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4010c000
read(4, "\'\274\334\376\4\0\0\0\0\0\0\300\1\0\0\0\0\0\0\200\1\0"..., 8192) = 1365
read(4, "", 4096) = 0
read(4, "", 8192) = 0
fstat64(5, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4010d000
write(5, "\'\274\334\376\4\0\0\0\0\0\0\300\1\0\0\0\0\0\0\200\1\0"..., 1365) = 1365
close(5) = 0
munmap(0x4010d000, 4096) = 0
close(4) = 0


vzmlocal is a magical tool! Do you know how we can safely modify this binary file without vzmlocal?

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: Wed, 26 September 2007 10:57]

Report message to a moderator

 
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 12:19:14 GMT 2024

Total time taken to generate the page: 0.03345 seconds