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
8384956f
Unverified
Commit
8384956f
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
working busybox incantation, delayed disk wipe
parent
a5dae676
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
tsa/howto/retire-a-host.mdwn
+7
-4
7 additions, 4 deletions
tsa/howto/retire-a-host.mdwn
with
7 additions
and
4 deletions
tsa/howto/retire-a-host.mdwn
+
7
−
4
View file @
8384956f
...
@@ -6,9 +6,12 @@
...
@@ -6,9 +6,12 @@
2. if applicable, stop the VM: `virsh destroy $host`, or at least
2. if applicable, stop the VM: `virsh destroy $host`, or at least
stop the primary service on the machine
stop the primary service on the machine
3. if applicable, undefine the VM: `virsh undefine $host`
3. if applicable, undefine the VM: `virsh undefine $host`
4. wipe host data:
4. wipe host data
, possibly with a delay
:
* if applicable, remove the LVM logical volumes or virtual disk files
* if applicable, remove the LVM logical volumes or virtual disk
files:
echo 'lvremove -y vgname/lvname' | at now + 7 days
* for a normal machine or a machine we do not own the parent host
* for a normal machine or a machine we do not own the parent host
for, wipe the disks using the method described below
for, wipe the disks using the method described below
...
@@ -44,8 +47,8 @@ This will take a long time. When you return:
...
@@ -44,8 +47,8 @@ This will take a long time. When you return:
1. start a `screen` session with `busybox` as your `SHELL`
1. start a `screen` session with `busybox` as your `SHELL`
chsh
-s /bin/busybox root
ln
-s /bin/busybox
/
root
/sh
export SHELL=/
bin/busybox
export SHELL=/
root/sh
exec screen -s $SHELL
exec screen -s $SHELL
2. kill all processes but the SSH daemon, your SSH connexion and
2. kill all processes but the SSH daemon, your SSH connexion and
...
...
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