Introduction
This is a basic checklist of things for me to do when I decommission a system.
Procedure
- Shutdown the machine.
- Expect complaints from:
- Check_MK
- rdw (or other backup software)
- rocon-check
- Wait two weeks (and possibly add a wake up call to my calendar).
- If the system is a VM then:
- On each VM server run:
virsh undefine <vm-name>
- On each storage server that hosts the VM’s image run:
drbdadm down <drbd-vol-name> ... rm /etc/drbd.d/<vm-name>.res ... lvremove /dev/vg0/<vm-name> ...
- On each VM server run:
- Remove the system from Check_MK.
- Remove the system from the backup server’s configuration but do not delete the backups themselves yet by running:
ssh root@<backup-server> rdw --del-dle nightly <host>-boot rdw --del-dle nightly <host>-root ... rdw --del-client <host>
- Remove the system from the rocon server’s /etc/rocon.conf file.
- Remove the system from DNS.
- Remove the system’s own WordPress page, its link on the Computing page and any other links that a search results in.
- Wait six weeks (and possibly add a wake up call to my calendar).
- Remove the system’s own WordPress page from the bin (if the bin has not been purged recently).
- Remove the system’s backups by running:
this bit to be written (02/06/2019)