diff -Nru hw-detect-1.114ubuntu2udevreload1/debian/changelog hw-detect-1.114ubuntu2udevreload1mpathlvm1/debian/changelog --- hw-detect-1.114ubuntu2udevreload1/debian/changelog 2016-02-24 16:39:56.000000000 -0300 +++ hw-detect-1.114ubuntu2udevreload1mpathlvm1/debian/changelog 2016-02-24 16:59:56.000000000 -0300 @@ -1,3 +1,10 @@ +hw-detect (1.114ubuntu2udevreload1mpathlvm1) xenial; urgency=medium + + * disk-detect.sh: multipath: deactivate LVM volumes before multipath + discovery to unlock individual paths (LP: #) + + -- Mauricio Faria de Oliveira Wed, 24 Feb 2016 16:58:04 -0300 + hw-detect (1.114ubuntu2udevreload1) xenial; urgency=medium * disk-detect.sh: multipath: reload udev rules before re-add devices diff -Nru hw-detect-1.114ubuntu2udevreload1/disk-detect.sh hw-detect-1.114ubuntu2udevreload1mpathlvm1/disk-detect.sh --- hw-detect-1.114ubuntu2udevreload1/disk-detect.sh 2016-02-24 16:36:05.000000000 -0300 +++ hw-detect-1.114ubuntu2udevreload1mpathlvm1/disk-detect.sh 2016-02-24 16:54:47.000000000 -0300 @@ -303,6 +303,13 @@ fi update-dev >/dev/null + # LVM: deactivate volumes possibly on individual paths + # (reactivated later in udev rules and partman/init.d) + if [ -x /sbin/lvm ]; then + /sbin/lvm vgchange -an >/dev/null 2>&1 + update-dev --settle >/dev/null 2>&1 + fi + # Look for multipaths... if multipath_probe; then logger -t disk-detect "Multipath devices found; enabling multipath support"