Skip to contentSkip to conversation

lvm_scan: use '--ignoremonitoring' rather than '--monitor n'

PATCH In review Mike Snitzer 2 participants 3 messages Mar 10, 2010 – Mar 17, 2010 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lvm_scan: use '--ignoremonitoring' rather than '--monitor n'

lvchange and vgchange '--monitor n' will not prevent lvm from attempting to dlopen the libdevmapper-event library.

dracut git commit 47ab3b6c5e introduced the use of '--monitor n' but '--ignoremonitoring' is needed now that the libdevmapper-event library isn't copied into the initramfs (ever since 0fae59d6eb3)

---
 modules.d/90lvm/lvm_scan.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
modules.d/90lvm/lvm_scan.sh +2 -2
index 85cd78e..f4f7b4a 100755
@@ -60,13 +60,13 @@ nopoll=$(
 if [ -n "$LVS" ] ; then
     info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
     lvm lvscan --ignorelockingfailure 2>&1 | vinfo
-    lvm lvchange -ay --ignorelockingfailure $nopoll --monitor n $LVS 2>&1 | vinfo    
+    lvm lvchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
 fi
 
 if [ -z "$LVS" -o -n "$VGS" ]; then
     info "Scanning devices $lvmdevs for LVM volume groups $VGS"
     lvm vgscan --ignorelockingfailure 2>&1 | vinfo
-    lvm vgchange -ay --ignorelockingfailure $nopoll --monitor n $VGS 2>&1 | vinfo
+    lvm vgchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $VGS 2>&1 | vinfo
 fi
 
 if [ "$lvmwritten" ]; then
#2 lore raw
In reply to a message not in the archive
Quoted 6 lines · Mike Snitzer

lvchange and vgchange '--monitor n' will not prevent lvm from attempting to dlopen the libdevmapper-event library.

dracut git commit 47ab3b6c5e introduced the use of '--monitor n' but '--ignoremonitoring' is needed now that the libdevmapper-event library isn't copied into the initramfs (ever since 0fae59d6eb3)

And just to be clear:
'--monitor n' is "stop monitoring this (VG or LV)" '--ignoremonitoring' is "don't do any monitoring".

We'll be fixing up lvm's vgchange and lvchange man pages so that they are more precise on what '--monitor n' means.

Mike

#3 lore raw
In reply to a message not in the archive
Quoted 33 lines · Mike Snitzer

lvchange and vgchange '--monitor n' will not prevent lvm from attempting to dlopen the libdevmapper-event library.

dracut git commit 47ab3b6c5e introduced the use of '--monitor n' but '--ignoremonitoring' is needed now that the libdevmapper-event library isn't copied into the initramfs (ever since 0fae59d6eb3)

---
  modules.d/90lvm/lvm_scan.sh |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
modules.d/90lvm/lvm_scan.sh +2 -3
index 85cd78e..f4f7b4a 100755
@@ -60,13 +60,13 @@ nopoll=$(
  if [ -n "$LVS" ] ; then
      info "Scanning devices $lvmdevs for LVM logical volumes $LVS"
      lvm lvscan --ignorelockingfailure 2>&1 | vinfo
-    lvm lvchange -ay --ignorelockingfailure $nopoll --monitor n $LVS 2>&1 | vinfo
+    lvm lvchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $LVS 2>&1 | vinfo
  fi
 
  if [ -z "$LVS" -o -n "$VGS" ]; then
      info "Scanning devices $lvmdevs for LVM volume groups $VGS"
      lvm vgscan --ignorelockingfailure 2>&1 | vinfo
-    lvm vgchange -ay --ignorelockingfailure $nopoll --monitor n $VGS 2>&1 | vinfo
+    lvm vgchange -ay --ignorelockingfailure $nopoll --ignoremonitoring $VGS 2>&1 | vinfo
  fi
 
  if [ "$lvmwritten" ]; then
--
Quoted 3 lines

To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

pushed