More colo box setup

On the new box:

  • Boot it up
  • Shut down all three domUs with “xm shutdown”
  • Mount all three domU disks in /mnt/xen[1-3]

On the old box:

  • Set up an authorized key so that root on the new box can ssh into root on the old box
  • Make a snapshot of one of the disks with lvcreate -L 100G -s -n xen1-snapshot /dev/xen-space/xen1-disk
  • Mount it with mount /dev/xen-space/xen1-snapshot /mnt/xen1

On the new box:

  • Copy the changed files using rsync -aSuvrx --numeric-ids --delete -e ssh --exclude /lib/modules root@xen.xcski.com:/mnt/xen1/ /mnt/xen1

On the old box:

  • Unmount the snapshot
  • Remove the snapshot with lvremove /dev/xen-space/xen1-snapshot