Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
947a732b
Verified
Commit
947a732b
authored
2 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
export/import actually works
parent
40e9ab1b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
howto/ganeti.md
+15
-4
15 additions, 4 deletions
howto/ganeti.md
with
15 additions
and
4 deletions
howto/ganeti.md
+
15
−
4
View file @
947a732b
...
...
@@ -2133,17 +2133,28 @@ 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
disk (or swap device? to be confirmed), see [this upstream issue
for details](https://github.com/ganeti/instance-debootstrap/issues/18). for now we're deploying the "nocloud"
export/import mechanisms through Puppet to workaround that problem
which means the whole disk is copied (as opposed to only the used
parts)
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:/
srv/ganeti
/test-01.torproject.org/
rsync -a /var/lib/ganeti/export/test-01.torproject.org/ root@chi-node-02.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.torproject.org --src-node=chi-node-02.torproject.org --src-dir=/srv/ganeti/??? test-01.torproject.org
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
6.
enter the restored server console to change the IP address:
gnt-instance console test-01.torproject.org
7.
if everything looks well, change the IP in LDAP
8.
destroy the old VM
### Mass migrating instances to a new cluster
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment