... | ... | @@ -2133,6 +2133,13 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
|
|
|
df -h /var/lib/ganeti/export
|
|
|
|
|
|
Typically, you'd make a logical volume to fit more data in there:
|
|
|
|
|
|
lvcreate -n export vg_ganeti -L200g &&
|
|
|
mkfs -t ext4 /dev/vg_ganeti/export &&
|
|
|
mkdir -p /var/lib/ganeti/export &&
|
|
|
mount /dev/vg_ganeti/export /var/lib/ganeti/export
|
|
|
|
|
|
2. have the right kernel modules loaded, which might require a
|
|
|
reboot of the source node:
|
|
|
|
... | ... | @@ -2143,7 +2150,7 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
downtime on the VM *and* you are ready to lose data accumulated
|
|
|
after the snapshot:
|
|
|
|
|
|
gnt-backup export -n fsn-node-01.torproject.org test-01.torproject.org
|
|
|
gnt-backup export -n chi-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 [this upstream issue
|
... | ... | @@ -2155,11 +2162,12 @@ possible through things like [zerofree](https://tracker.debian.org/pkg/zerofree) |
|
|
4. copy the VM snapshot from the source node to node in the target
|
|
|
cluster:
|
|
|
|
|
|
rsync -a /var/lib/ganeti/export/test-01.torproject.org/ root@chi-node-02.torproject.org:/var/lib/ganeti/export/test-01.torproject.org/
|
|
|
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/
|
|
|
|
|
|
5. on the master of the target Ganeti cluster, import the VM:
|
|
|
|
|
|
gnt-backup import -n chi-node-08:chi-node-07 --src-node=chi-node-02.torproject.org --src-dir=/var/lib/ganeti/export/test-01.torproject.org/ test-01.torproject.org
|
|
|
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
|
|
|
|
|
|
6. enter the restored server console to change the IP address:
|
|
|
|
... | ... | |