Blame 0007-Revert-lvm-Don-t-activate-LVs-with-activationskip-se.patch
|
Harald Hoyer |
0840a3 |
From d4b93a092db1105a29a3f768d1d49ece8b90547a Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
0840a3 |
From: Fabian Deutsch <fabiand@fedoraproject.org>
|
|
Harald Hoyer |
0840a3 |
Date: Thu, 25 Jun 2015 11:17:59 +0200
|
|
Harald Hoyer |
0840a3 |
Subject: [PATCH] Revert "lvm: Don't activate LVs with activationskip set"
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
This reverts commit cfa365a32d47388c8476064b23d7d4684f1e591b.
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
The logic in commit cfa365a was added to prevent (odl) lvms from
|
|
Harald Hoyer |
0840a3 |
activating snapshots which should not be activated.
|
|
Harald Hoyer |
0840a3 |
Newer lvms however do this automatically (not enabling an LV if the
|
|
Harald Hoyer |
0840a3 |
the 'k' attribute set), thus we can revert the previous commit.
|
|
Harald Hoyer |
0840a3 |
---
|
|
Harald Hoyer |
0840a3 |
modules.d/90lvm/lvm_scan.sh | 4 ----
|
|
Harald Hoyer |
0840a3 |
1 file changed, 4 deletions(-)
|
|
Harald Hoyer |
0840a3 |
|
|
Harald Hoyer |
0840a3 |
diff --git a/modules.d/90lvm/lvm_scan.sh b/modules.d/90lvm/lvm_scan.sh
|
|
Harald Hoyer |
0840a3 |
index ce46e14..7495644 100755
|
|
Harald Hoyer |
0840a3 |
--- a/modules.d/90lvm/lvm_scan.sh
|
|
Harald Hoyer |
0840a3 |
+++ b/modules.d/90lvm/lvm_scan.sh
|
|
Harald Hoyer |
0840a3 |
@@ -106,10 +106,6 @@ if [ -n "$LVS" ] ; then
|
|
Harald Hoyer |
0840a3 |
info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
|
|
Harald Hoyer |
0840a3 |
lvm lvscan --ignorelockingfailure 2>&1 | vinfo
|
|
Harald Hoyer |
0840a3 |
for LV in $LVS; do
|
|
Harald Hoyer |
0840a3 |
- if [ "x$(lvm lvs --noheadings --select "lv_attr =~ k" $LV | wc -l)" = "x0" ]; then
|
|
Harald Hoyer |
0840a3 |
- info "Skipping activation of '$LV' because activationskip is set."
|
|
Harald Hoyer |
0840a3 |
- continue
|
|
Harald Hoyer |
0840a3 |
- fi
|
|
Harald Hoyer |
0840a3 |
if [ -z "$sysinit" ]; then
|
|
Harald Hoyer |
0840a3 |
lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo
|
|
Harald Hoyer |
0840a3 |
else
|