projects
/
mirror
/
dsa-wiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
216a578
)
Revert "Fix multipath removal script"
author
Aurelien Jarno
<aurelien@aurel32.net>
Sat, 23 Mar 2019 12:05:29 +0000
(13:05 +0100)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Sat, 23 Mar 2019 12:05:29 +0000
(13:05 +0100)
This reverts commit
216a5781deb7d262384450c36d2641c015853545
.
The original command works provided the path is not yet removed from
/etc/multipath.conf.
input/howto/decomission.mdwn
patch
|
blob
|
history
diff --git
a/input/howto/decomission.mdwn
b/input/howto/decomission.mdwn
index
68ed36d
..
5a33096
100644
(file)
--- a/
input/howto/decomission.mdwn
+++ b/
input/howto/decomission.mdwn
@@
-36,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 $2
}') &&
+dm=$(sudo multipath -ll | grep "$path
" | awk '{print $3
}') &&
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 &&