Skip to content
Snippets Groups Projects
Commit 496ef483 authored by Hiro's avatar Hiro :surfer:
Browse files

Update documentation on how to retire a host - WIP

parent 7f8c37ee
No related branches found
No related tags found
No related merge requests found
......@@ -2,15 +2,22 @@
1. long before (weeks or months) the machine is decomissioned, make
sure users are aware it will go away and of its replacement services
2. if applicable, stop the VM: `virsh shutdown $host`, or at least
stop the primary service on the machine
3. if applicable, undefine the VM: `virsh undefine $host`
2. if applicable, stop the VM:
* If the VM is on a KVM host: `virsh shutdown $host`, or at least stop the
primary service on the machine
* If the machine is on ganeti: gnt-instance remove $host
3. On KVM hosts, undefine the VM: `virsh undefine $host`
4. wipe host data, possibly with a delay:
* if applicable, remove the LVM logical volumes or virtual disk
files:
echo 'lvremove -y vgname/lvname' | at now + 7 days
* On KVM hosts, remove the LVM logical volumes or virtual disk files:
`lvs` will list the logical volumes on the machine
`echo 'lvremove -y vgname/lvname' | at now + 7 days`
* for a normal machine or a machine we do not own the parent host
for, wipe the disks using the method described below
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment