Last week I had to move one of our Windows VPS’s from one xen server to another. Now we use LVM and not files as backend for the the VPS disks so I couldn’t use a simple copy of a diskfile from server to server. And I couldn’t rely on the NTFS support in Linux, to complete the copy on a file by file basis, directly from the VPS filesystem on the old server, to the new one on the new server. Instead I chose to use dd over SSH to move it. Here’s the command I ran:
dd bs=1k if=/dev/xenvolume/vps01-disk conv=sync,noerror | gzip -c | ssh -c blowfish new.xen.server "gunzip - | dd of=/dev/xenvolume/vps01-disk bs=1k"
With a VPS with a 25GB disk, it took about 22 minutes to complete the move. It’s a method I can recommend if you haven’t got storage shared between your xenservers.Share