[Bug 1468897] Re: multipath creates binding for Removable(USB) drives

Launchpad Bug Tracker 1468897 at bugs.launchpad.net
Tue Nov 24 18:44:17 UTC 2015


This bug was fixed in the package multipath-tools - 0.4.9-3ubuntu7.6

---------------
multipath-tools (0.4.9-3ubuntu7.6) trusty; urgency=medium

  * debian/patches/0043-alloc-keywords.patch: fix uninitialized keywords
    vector for configuration parsing for when there is no multipath.conf file
    present.

multipath-tools (0.4.9-3ubuntu7.5) trusty; urgency=medium

  * Cherry-picked patches to ignore local non-mpath devices:
    (LP: #1386637, #1468897)
    - 0001-multipath-add-checker_timeout-default-config-option.patch
    - 0002-Make-params-variable-local.patch
    - 0003-libmultipath-Fix-possible-string-overflow.patch
    - 0004-Update-hwtable-factorization.patch
    - 0005-Fixup-strip-trailing-whitespaces-for-getuid-return-v.patch
    - 0006-Remove-sysfs_attr-cache.patch
    - 0007-Move-setup_thread_attr-to-uevent.c.patch
    - 0008-Use-lists-for-uevent-processing.patch
    - 0009-Start-uevent-service-handler-from-main-thread.patch
    - 0010-libmultipath-rework-sysfs-handling.patch
    - 0011-Rework-sysfs-device-handling-in-multipathd.patch
    - 0012-Only-check-offline-status-for-SCSI-devices.patch
    - 0013-Check-for-offline-path-in-get_prio.patch
    - 0014-libmultipath-Remove-duplicate-calls-to-path_offline.patch
    - 0015-Update-dev_loss_tmo-for-no_path_retry.patch
    - 0016-Reload-map-for-device-read-only-setting-changes.patch
    - 0017-multipath-get-right-sysfs-value-for-checker_timeout.patch
    - 0018-multipath-handle-offlined-paths.patch
    - 0019-multipath-fix-scsi-timeout-code.patch
    - 0020-multipath-make-tgt_node_name-work-for-iscsi-devices.patch
    - 0021-multipath-cleanup-dev_loss_tmo-issues.patch
    - 0022-Fix-for-setting-0-to-fast_io_fail.patch
    - 0023-Fix-fast_io_fail-capping.patch
    - 0024-multipath-enable-getting-uevents-through-libudev.patch
    - 0025-Use-devpath-as-argument-for-sysfs-functions.patch
    - 0026-multipathd-remove-references-to-sysfs_device.patch
    - 0027-multipathd-use-struct-path-as-argument-for-event-pro.patch
    - 0028-Add-global-udev-reference-pointer-to-config.patch
    - 0029-Use-udev-enumeration-during-discovery.patch
    - 0030-use-struct-udev_device-during-discovery.patch
    - 0031-More-debugging-output-when-synchronizing-path-states.patch
    - 0032-Use-struct-udev_device-instead-of-sysdev.patch
    - 0033-discovery-Fixup-cciss-discovery.patch
    - 0035-Use-udev-devices-during-discovery.patch
    - 0036-Remove-all-references-to-hand-craftes-sysfs-code.patch
    - 0037-multipath-libudev-cleanup-and-bugfixes.patch
    - 0038-multipath-check-if-a-device-belongs-to-multipath.patch
    - 0039-multipath-and-wwids_file-multipath.conf-option.patch
    - 0040-multipath-Check-blacklists-as-soon-as-possible.patch
    - 0041-add-wwids-file-cleanup-options.patch
    - 0042-add-find_multipaths-option.patch
  * debian/rules: don't ship 95-multipath.rules udev rules anymore; they are
    not necessary with multipath-tools listening for udev events directly.
  * debian/multipath.udev: removed.
  * debian/multipath-tools.postinst: run multipath -W so that we get a properly
    formed wwids file on upgrade.
  * debian/initramfs/hooks: copy the wwids file in the initramfs so that it is
    available when multipath-tools initially discovers path to possibly bring
    up the rootfs.

 -- Mathieu Trudel-Lapierre <mathieu-tl at ubuntu.com>  Tue, 06 Oct 2015
22:13:59 -0400

** Changed in: multipath-tools (Ubuntu Trusty)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to multipath-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1468897

Title:
  multipath creates binding for Removable(USB) drives

Status in multipath-tools package in Ubuntu:
  Fix Released
Status in multipath-tools source package in Trusty:
  Fix Released

Bug description:
  [Impact]
  Users installing with a USB key attached to the installing system, or adding a USB key on an installed system with multipath enabled will see the USB devices picked up by multipath. This is confusing because it changes the paths required to be used to access/mount/format the USB drives to paths under /dev/mapper, with mpath names.

  [Test Case]
  1) Attach a USB key on a system with multipath enabled; either from the installer (booting the installer with USB attached), or on an installed system.
  2) See that the device is picked up by multipath-tools and shows up in the output of 'multipath -ll' and under /dev/mapper with the same name as provided by multipath -ll.

  [Regression Potential]
  Some USB 3.0 devices *can* support multipath; users of such custom configurations will see USB devices not being considered as multipath devices. Other devices which should be considered as multipathed may not be picked up anymore.

  ----

  On a system with a multipath configuration, multipath bindings are
  being created for removable(USB) drives rendering them inaccessible as
  normal removable drives.

  in this case, the usb drive is detected as /dev/sdi:

  # lsblk|grep -A2 sdi
  sdi                        8:128  1  14.7G  0 disk
  ├─sdi1                     8:129  1  14.7G  0 part
  └─mpath4 (dm-9)          252:9    0  14.7G  0 mpath
    └─mpath4-part1 (dm-10) 252:10   0  14.7G  0 part

  # cat /etc/multipath/bindings
  # This file was created by curtin while installing the system.
  mpath0 1IBM     IPR-0   5EC2590000000080
  # End of content generated by curtin.
  # Everything below is maintained by multipath subsystem.
  mpath1 1IBM     IPR-0   5EC2590000000060
  mpath2 1IBM     IPR-0   5EC2590000000040
  mpath3 1IBM     IPR-0   5EC2590000000020
  mpath4 1ADATA   USB Flash Drive

  Upon trying to format /dev/sdi1:

  # mkfs.ext4 /dev/sdi1
  mke2fs 1.42.9 (4-Feb-2014)
  /dev/sdi1 is apparently in use by the system; will not make a filesystem here!

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: multipath-tools 0.4.9-3ubuntu7.2
  ProcVersionSignature: User Name 3.16.0-41.55~14.04.1-generic 3.16.7-ckt11
  Uname: Linux 3.16.0-41-generic ppc64le
  ApportVersion: 2.14.1-0ubuntu3.10
  Architecture: ppc64el
  Date: Thu Jun 25 20:44:13 2015
  ProcEnviron:
   TERM=screen
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: multipath-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/multipath-tools/+bug/1468897/+subscriptions



More information about the foundations-bugs mailing list