Browse Source

Merge pull request #76 from fabiand/activationskip

Revert "lvm: Don't activate LVs with activationskip set"
master
Harald Hoyer 10 years ago
parent
commit
08eca6756f
  1. 4
      modules.d/90lvm/lvm_scan.sh

4
modules.d/90lvm/lvm_scan.sh

@ -106,10 +106,6 @@ if [ -n "$LVS" ] ; then @@ -106,10 +106,6 @@ if [ -n "$LVS" ] ; then
info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
lvm lvscan --ignorelockingfailure 2>&1 | vinfo
for LV in $LVS; do
if [ "x$(lvm lvs --noheadings --select "lv_attr =~ k" $LV | wc -l)" = "x0" ]; then
info "Skipping activation of '$LV' because activationskip is set."
continue
fi
if [ -z "$sysinit" ]; then
lvm lvchange --yes -ay --ignorelockingfailure $nopoll --ignoremonitoring $LV 2>&1 | vinfo
else

Loading…
Cancel
Save