Changes

Jump to: navigation, search

Category:HOWTO

935 bytes added, 10:35, 20 November 2006
no edit summary
This category is for various HOWTOs on all the possible topics.
 
 
== C ==
 
Clone VPS
 
This is important if you host several VEs in the same Hardware Node so that you don't have to repeat the same process again and again.
 
Just do this:
 
# vzctl stop old_VEid
#cp /vz/root/old_VEid /vz/root/new_VEid (don't know why but a file of that name was there, so I made a copy)
#cp /etc/vz/conf/old_VEid.conf /etc/vz/conf/new_VEid.conf
#cp -r /vz/private/old_VEid /vz/private/new_VEid
#vzctl start new_VEid; vzctl start old_VEid
 
If it starts well, the VE is cloned. However, if you have created a VE with the same ID before and destroyed it (vzctl destroy VEid), then do not forget to delete files relating to that:
 
#rm /vz/root/destroyed_VEid /etc/vz/conf/destroyed_VEid.conf.destroyed
 
Maybe you need a HN reboot like in my case, but not sure.
 
I ackknowledge the help of Mr. Vasily Tarasov at [http://forum.openvz.org/index.php?t=tree&th=878&mid=4749&&rev=&reveal=]
 
Dr. Sichendra Bista
eParliament.org
4
edits

Navigation menu