OpenVZ Forum


Home » General » Support » The best way to copy a VE
Re: The best way to copy a VE [message #15217 is a reply to message #15211] Sun, 22 July 2007 22:14 Go to previous message
dayid
Messages: 6
Registered: July 2007
Location: Southeast U.S.
Junior Member
I would imagine that works.

I generally copy from machine to machine (to balance multiple hardware nodes, etc) and do:

1. rsync -avzuPe 'ssh -p ####' /vz/private/$VEID master@newmachine:/vz/private/
2. vzctl stop $VEID (stopping after sync allows it to be up while moving all the files - nice if it's a bigger VE)
3. rsync -avzuPe 'ssh -p ####' --delete /vz/private/$VEID master@newmachine:/vz/private/
4. rsync -avzuPe 'ssh -p ####' /etc/sysconfig/vz-scripts/$VEID.conf master@newmachine:/etc/sysconfig/vz-scripts/
5. ssh master@newmachine
6. (set ip or iptables nat rules)
7. vzctl start $VEID
 
Read Message
Read Message
Previous Topic: *Solved* Change openVZ kernel / Downgrade
Next Topic: GRE tunnels
Goto Forum:
  


Current Time: Mon Aug 18 06:55:21 GMT 2025

Total time taken to generate the page: 0.28282 seconds