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 dumpxml <vm-name> > ~/tmp/<vm-name>.xml virsh undefine <vm-name>
- On each storage server that hosts the VM’s image run:
drbd-overview | grep <vm-name> drbdadm down <drbd-vol-name> ... rm /etc/drbd.d/<vm-name>.res ... lvs | grep <vm-name> # check not 'a' 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> rdw2 --del-dle nightly <host>-boot rdw2 --del-dle nightly <host>-root ... rdw2 --del-client <host>
- Remove the system from the rocon server’s /etc/rocon.conf file.
- Remove the system from DNS.
- Remove the system from mini-checkmk.
- Remove the system from cert-checker.
- 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 backups.