... | ... | @@ -2140,6 +2140,8 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
mkdir -p /var/lib/ganeti/export &&
|
|
|
mount /dev/vg_ganeti/export /var/lib/ganeti/export
|
|
|
|
|
|
Make sure you do that on *both* ends of the migration.
|
|
|
|
|
|
2. have the right kernel modules loaded, which might require a
|
|
|
reboot of the source node:
|
|
|
|
... | ... | @@ -2151,6 +2153,7 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
after the snapshot:
|
|
|
|
|
|
gnt-backup export -n chi-node-01.torproject.org test-01.torproject.org
|
|
|
gnt-instance stop test-01.torproject.org
|
|
|
|
|
|
WARNING: this step is currently not working if there's a second
|
|
|
disk (or swap device? to be confirmed), see [this upstream issue
|
... | ... | @@ -2165,9 +2168,18 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
mkdir -p /var/lib/ganeti/export
|
|
|
rsync -ASHaxX --info=progress2 root@chi-node-01.torproject.org:/var/lib/ganeti/export/test-01.torproject.org/ /var/lib/ganeti/export/test-01.torproject.org/
|
|
|
|
|
|
Note that this assumes the target cluster has root access on the
|
|
|
source cluster. One way to make that happen is by creating a new
|
|
|
SSH key:
|
|
|
|
|
|
ssh-keygen -P "" -C 'sync key from dal-node-01'
|
|
|
|
|
|
And dump that public key in `/etc/ssh/userkeys/root.more` on the
|
|
|
source cluster.
|
|
|
|
|
|
5. on the master of the target Ganeti cluster, import the VM:
|
|
|
|
|
|
gnt-backup import -n dal-node-01:chi-node-03 --src-node=chi-node-01.torproject.org --src-dir=/var/lib/ganeti/export/test-01.torproject.org/ test-01.torproject.org
|
|
|
gnt-backup import -n dal-node-01:dal-node-02 --src-node=dal-node-01 --src-dir=/var/lib/ganeti/export/test-01.torproject.org --no-ip-check --no-name-check --net 0:ip=pool,network=gnt-dal-01 -t drbd --no-wait-for-sync test-01.torproject.org
|
|
|
|
|
|
6. enter the restored server console to change the IP address:
|
|
|
|
... | ... | |