summaryrefslogtreecommitdiffstats
path: root/modules.d/90multipath/multipath-shutdown.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/90multipath/multipath-shutdown.sh')
-rwxr-xr-xmodules.d/90multipath/multipath-shutdown.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules.d/90multipath/multipath-shutdown.sh b/modules.d/90multipath/multipath-shutdown.sh
new file mode 100755
index 0000000..220da8f
--- /dev/null
+++ b/modules.d/90multipath/multipath-shutdown.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+for i in $(multipath -l -v1); do
+ if ! dmsetup table "$i" | sed -n '/.*queue_if_no_path.*/q1'; then
+ dmsetup message "$i" 0 fail_if_no_path
+ fi
+done