3 * Get rid of any services running on the host.
4 * Optional, shut down the machine, then wait a month
7 badblocks -v -s -p 5 -w -f DEVICE_GOES_HERE
9 * Revoke puppet certificate
10 * on handel: `puppet node clean $HOST.debian.org`
11 * on handel: `puppet node deactivate $HOST.debian.org`
12 * reinit samhain on handel
14 * including references such as subgroup: foo@hostname or supplementarygid: foo@hostname
15 * rerun puppet on backuphost / the backup host
16 * reinit samhain on backuphost
18 * Remove any references from puppet configuration
19 * Remove references to the host from DNS files, including reverse DNS
20 * Get rid of the HW (tell the hoster to get rid of it or other as appropriate)
21 * Update password file information for the $HOST
22 * Remove MQ queues related to machine (see [[doc/mq]] for details)
24 for queue in $(rabbitmqadmin -N rainier list queues name | \
25 grep unger.debian.org | \
26 awk '{print $2}') ; do
27 rabbitmqadmin -N rainier -V dsa delete queue name=$queue
30 * If the machine is a Ganeti VM, do not forget to remove it from the cluster:
32 gnt-instance remove unger.debian.org
34 * Remove disks from the MSA
35 * run multipath -ll on the KVM host and find all disks on that multipath
37 echo -n "multipath device to remove: " &&
40 dm=$(sudo multipath -ll | grep "$path " | awk '{print $3}') &&
41 cd /sys/devices/virtual/block/$dm/slaves &&
43 blockdev --flushbufs /dev/$dm &&
45 for device in $(echo $devices); do blockdev --flushbufs /dev/$device; echo 1 > "/sys/block/$device/device/delete"; done
47 * remove the paths in the MSA
49 Three months after decomissioning: