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
c363a9b1
Unverified
Commit
c363a9b1
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
s/NODE/HOST for kvm
parent
10aeff14
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/ganeti.mdwn
+8
-8
8 additions, 8 deletions
tsa/howto/ganeti.mdwn
with
8 additions
and
8 deletions
tsa/howto/ganeti.mdwn
+
8
−
8
View file @
c363a9b1
...
...
@@ -227,7 +227,7 @@ Assumptions:
migrated
* `MASTER_NODE`: the master ganeti node
(e.g. `fsn-node-01.torproject.org`)
* `KVM_
NODE
`: the machine which we migrate the `INSTANCE` from
* `KVM_
HOST
`: the machine which we migrate the `INSTANCE` from
* the `INSTANCE` has only `root` and `swap` partitions
Import procedure:
...
...
@@ -236,12 +236,12 @@ Import procedure:
cluster capacity" above, when in doubt), login to the three
servers, setting the proper environment everywhere, for example:
KVM_NODE=kvm1.torproject.org
INSTANCE=test.torproject.org
SPARE_NODE=fsn-node-03.torproject.org
MASTER_NODE=fsn-node-01.torproject.org
SPARE_NODE=fsn-node-03.torproject.org
KVM_HOST=kvm1.torproject.org
INSTANCE=test.torproject.org
2. establish VM specs, on the KVM
NODE
:
2. establish VM specs, on the KVM
HOST
:
* disk space in GiB:
...
...
@@ -271,11 +271,11 @@ Import procedure:
ssh-add /etc/ssh/ssh_host_ed25519_key
cat /etc/ssh/ssh_host_ed25519_key.pub
on the KVM
NODE
:
on the KVM
HOST
:
echo "$KEY_FROM_
KVM_HOST
" >> /etc/ssh/userkeys/root
echo "$KEY_FROM_
SPARE_NODE
" >> /etc/ssh/userkeys/root
4. copy the `.qcow` file(s) over, from the KVM
host
to the SPARE NODE:
4. copy the `.qcow` file(s) over, from the KVM
HOST
to the SPARE NODE:
rsync -P $KVM_HOST:/srv/vmstore/$INSTANCE/$INSTANCE-root /srv/
rsync -P $KVM_HOST:/srv/vmstore/$INSTANCE/$INSTANCE-lvm /srv/ || true
...
...
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