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

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