OpenVZ Forum


Home » General » Discussions » OpenVZ Live Migration
OpenVZ Live Migration [message #31953] Tue, 15 July 2008 21:51 Go to next message
shrin_krishnan is currently offline  shrin_krishnan
Messages: 2
Registered: July 2008
Junior Member
I was trying to understand better how Live Migration works in OpenVZ. Does it require shared storage, or does it move the checkpoint file over ?

If it does not use shared storage how does it maintain consistent fd's if say I am reading a file and doing a network file transfer.

Further, is there any residue on the originating host i.e are there connections maintained on the originating host ? How is the network connection migrated over. Xen and VMware require a shared switch where you send ARP's and change MAC registration. Is the same principle followed here
Re: OpenVZ Live Migration [message #31966 is a reply to message #31953] Wed, 16 July 2008 08:16 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

Checkpoint file it copied over the network. After migration an ARP announce is sent telling «this IP is now here». There is a short period of time when network packets are dropped and this is pretty normal — TCP packets will be resent, while UDP packets are supposed to be lost sometimes (application level handle it). Opened files and opened network connections are migrated.

If you need more details, see the OpenVZ kernel source code, the directory is kernel/cpt


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: OpenVZ Live Migration [message #31969 is a reply to message #31966] Wed, 16 July 2008 15:09 Go to previous messageGo to next message
shrin_krishnan is currently offline  shrin_krishnan
Messages: 2
Registered: July 2008
Junior Member

What does it mean by opened files are migrated ? If shared storage is not a requirement, then either you copy the complete file over which could be pretty large. unless files are left on the original system and a connection is maintained.
Re: OpenVZ Live Migration [message #32801 is a reply to message #31969] Sun, 31 August 2008 05:29 Go to previous message
elronxenu is currently offline  elronxenu
Messages: 5
Registered: November 2007
Junior Member

vzmigrate copies the entire root filesystem.
Previous Topic: VZAgent problem
Next Topic: everyday at 12am AEST VPSID 470 stops and the NPROC drops to 1,
Goto Forum:
  


Current Time: Sat May 18 23:34:40 GMT 2024

Total time taken to generate the page: 0.00432 seconds