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

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