projects
/
mirror
/
dsa-wiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix multipath removal script
[mirror/dsa-wiki.git]
/
input
/
howto
/
decomission.mdwn
diff --git
a/input/howto/decomission.mdwn
b/input/howto/decomission.mdwn
index
a2a6978
..
68ed36d
100644
(file)
--- a/
input/howto/decomission.mdwn
+++ b/
input/howto/decomission.mdwn
@@
-8,7
+8,8
@@
* Revoke puppet certificate
* Revoke puppet certificate
- * on handel: puppet node clean $HOST
+ * on handel: puppet node clean $HOST.debian.org
+ * on handel: puppet node deactivate $HOST.debian.org
* reinit samhain on handel
* Remove from LDAP
* reinit samhain on handel
* Remove from LDAP
@@
-35,7
+36,7
@@
echo -n "multipath device to remove: " &&
export LC_ALL=C &&
read path &&
echo -n "multipath device to remove: " &&
export LC_ALL=C &&
read path &&
-dm=$(sudo multipath -ll | grep "$path
" | awk '{print $3
}') &&
+dm=$(sudo multipath -ll | grep "$path
" | awk '{print $2
}') &&
cd /sys/devices/virtual/block/$dm/slaves &&
devices=$(ls -1) &&
blockdev --flushbufs /dev/$dm &&
cd /sys/devices/virtual/block/$dm/slaves &&
devices=$(ls -1) &&
blockdev --flushbufs /dev/$dm &&