Difference between revisions of "Category:HOWTO"

From OpenVZ Virtuozzo Containers Wiki
Jump to: navigation, search
(Previous change is moved to separate article)
Line 1: Line 1:
 
This category is for various HOWTOs on all the possible topics.
 
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

Revision as of 10:35, 20 November 2006

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:

  1. vzctl stop old_VEid
  2. 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)
  3. cp /etc/vz/conf/old_VEid.conf /etc/vz/conf/new_VEid.conf
  4. cp -r /vz/private/old_VEid /vz/private/new_VEid
  5. 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:

  1. 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 [1]

Dr. Sichendra Bista eParliament.org

Subcategories

This category has only the following subcategory.

Pages in category "HOWTO"

The following 142 pages are in this category, out of 142 total.

Y