... | ... | @@ -2063,10 +2063,10 @@ VMs one at a time, if only a subset of the cluster needs to be |
|
|
evacuated.
|
|
|
|
|
|
1. find nodes to host the exported VM on the source cluster and the
|
|
|
target cluster; it needs enough disk space in `/srv/ganeti` to
|
|
|
target cluster; it needs enough disk space in `/var/lib/ganeti/export` to
|
|
|
keep a copy of a snapshot of the VM:
|
|
|
|
|
|
df -h /srv/ganeti
|
|
|
df -h /var/lib/ganeti/export
|
|
|
|
|
|
2. have the right kernel modules loaded, which might require a
|
|
|
reboot of the source node:
|
... | ... | @@ -2080,10 +2080,14 @@ evacuated. |
|
|
|
|
|
gnt-backup export -n fsn-node-01.torproject.org test-01.torproject.org
|
|
|
|
|
|
WARNING: this step is currently not working if there's a second
|
|
|
disk (or swap device? to be confirmed, see
|
|
|
https://github.com/ganeti/instance-debootstrap/issues/18
|
|
|
|
|
|
4. copy the VM snapshot from the source node to node in the target
|
|
|
cluster:
|
|
|
|
|
|
scp /srv/ganeti/... root@chi-node-02.torproject.org:/srv/ganeti
|
|
|
rsync -a /var/lib/ganeti/export/test-01.torproject.org/ root@chi-node-02.torproject.org:/srv/ganeti/test-01.torproject.org/
|
|
|
|
|
|
5. on the master of the target Ganeti cluster, import the VM:
|
|
|
|
... | ... | |