Blame SOURCES/0087-lvm-lvm_scan.sh-handle-one-LV-at-a-time-with-lvchang.patch

18971c
From 3c4e663251aa64d7946e8a2c91a8bc5eae444182 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Fri, 24 Jan 2014 16:37:13 +0100
18971c
Subject: [PATCH] lvm:lvm_scan.sh handle one LV at a time with lvchange
18971c
18971c
---
18971c
 modules.d/90lvm/lvm_scan.sh | 12 +++++++-----
18971c
 1 file changed, 7 insertions(+), 5 deletions(-)
18971c
18971c
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
18971c
index 85ecd4df..f87831c7 100755
18971c
--- a/modules.d/90lvm/lvm_scan.sh
18971c
+++ b/modules.d/90lvm/lvm_scan.sh
18971c
@@ -107,11 +107,13 @@ fi
18971c
 if [ -n "$LVS" ] ; then
18971c
     info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
18971c
     lvm lvscan --ignorelockingfailure 2>&1 | vinfo
18971c
-    if [ -z "$sysinit" ]; then
18971c
-        lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
18971c
-    else
18971c
-        lvm lvchange --yes -ay $sysinit $LVS 2>&1 | vinfo
18971c
-    fi
18971c
+    for LV in $LVS; do
18971c
+        if [ -z "$sysinit" ]; then
18971c
+            lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo
18971c
+        else
18971c
+            lvm lvchange --yes -ay $sysinit $LV 2>&1 | vinfo
18971c
+        fi
18971c
+    done
18971c
 fi
18971c
 
18971c
 if [ -z "$LVS" -o -n "$VGS" ]; then