RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1127929 - "dev_is_mpath: failed to get device for 8:1" error when pvcreating
Summary: "dev_is_mpath: failed to get device for 8:1" error when pvcreating
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: lvm2
Version: 6.6
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Peter Rajnoha
QA Contact: Cluster QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-07 21:37 UTC by Corey Marthaler
Modified: 2018-12-09 18:18 UTC (History)
9 users (show)

Fixed In Version: lvm2-2.02.109-2.el6
Doc Type: Bug Fix
Doc Text:
This bug did not appear in official RHEL release. No documentation needed.
Clone Of:
Environment:
Last Closed: 2014-10-14 08:25:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2014:1387 0 normal SHIPPED_LIVE lvm2 bug fix and enhancement update 2014-10-14 01:39:47 UTC

Description Corey Marthaler 2014-08-07 21:37:32 UTC
Description of problem:

lvmetad is turned off, and this doesn't apper in the -108 build.

[root@host-025 ~]# ls -lrt /dev/sd*
brw-rw----. 1 root disk 8,   1 Aug  7 16:18 /dev/sda1
brw-rw----. 1 root disk 8,  17 Aug  7 16:18 /dev/sdb1
brw-rw----. 1 root disk 8,  49 Aug  7 16:18 /dev/sdd1
brw-rw----. 1 root disk 8,  65 Aug  7 16:18 /dev/sde1
brw-rw----. 1 root disk 8,  81 Aug  7 16:18 /dev/sdf1
brw-rw----. 1 root disk 8,  97 Aug  7 16:18 /dev/sdg1
brw-rw----. 1 root disk 8,  32 Aug  7  2014 /dev/sdc
brw-rw----. 1 root disk 8,  96 Aug  7  2014 /dev/sdg
brw-rw----. 1 root disk 8, 112 Aug  7  2014 /dev/sdh
brw-rw----. 1 root disk 8,  64 Aug  7  2014 /dev/sde
brw-rw----. 1 root disk 8,   0 Aug  7  2014 /dev/sda
brw-rw----. 1 root disk 8,  48 Aug  7  2014 /dev/sdd
brw-rw----. 1 root disk 8,  80 Aug  7  2014 /dev/sdf
brw-rw----. 1 root disk 8, 113 Aug  7  2014 /dev/sdh1
brw-rw----. 1 root disk 8,  33 Aug  7  2014 /dev/sdc1
brw-rw----. 1 root disk 8,  16 Aug  7  2014 /dev/sdb

[root@host-025 ~]# pvcreate /dev/sd[abcdefgh]1
  dev_is_mpath: failed to get device for 8:1
  dev_is_mpath: failed to get device for 8:17
  dev_is_mpath: failed to get device for 8:33
  dev_is_mpath: failed to get device for 8:49
  dev_is_mpath: failed to get device for 8:65
  dev_is_mpath: failed to get device for 8:81
  dev_is_mpath: failed to get device for 8:97
  dev_is_mpath: failed to get device for 8:113
  Physical volume "/dev/sda1" successfully created
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdc1" successfully created
  Physical volume "/dev/sdd1" successfully created
  Physical volume "/dev/sde1" successfully created
  Physical volume "/dev/sdf1" successfully created
  Physical volume "/dev/sdg1" successfully created
  Physical volume "/dev/sdh1" successfully created


Version-Release number of selected component (if applicable):
2.6.32-495.el6.x86_64
lvm2-2.02.109-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
lvm2-libs-2.02.109-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
lvm2-cluster-2.02.109-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
udev-147-2.57.el6    BUILT: Thu Jul 24 08:48:47 CDT 2014
device-mapper-1.02.88-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
device-mapper-libs-1.02.88-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
device-mapper-event-1.02.88-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
device-mapper-event-libs-1.02.88-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014
device-mapper-persistent-data-0.3.2-1.el6    BUILT: Fri Apr  4 08:43:06 CDT 2014
cmirror-2.02.109-1.el6    BUILT: Tue Aug  5 10:36:23 CDT 2014

Comment 1 Peter Rajnoha 2014-08-08 09:07:06 UTC
That was an incorrect use of device cache in mpath filter code! This is because we use refresh_filters now in v109 (see also bug #1113539) which revealed this problem. We should not use device cache for primary name lookup for the partition (as one of the steps) as the primary name can already be filtered out by persistent filter. So that was a wrong assumption made when adding partition support in mpath filter.

This should be now fixed with:

https://git.fedorahosted.org/cgit/lvm2.git/commit/?id=9738a02d3d56a3a30bd8b59838eae8f805ba3bcc

Comment 3 Nenad Peric 2014-08-20 14:19:36 UTC
Before the update to 109-2

[root@virt-065 ~]# pvcreate /dev/sd[abcdefgh]1
  dev_is_mpath: failed to get device for 8:1
  dev_is_mpath: failed to get device for 8:17
  dev_is_mpath: failed to get device for 8:33
  dev_is_mpath: failed to get device for 8:49
  dev_is_mpath: failed to get device for 8:65
  dev_is_mpath: failed to get device for 8:81
  dev_is_mpath: failed to get device for 8:97
  dev_is_mpath: failed to get device for 8:113
  dev_is_mpath: failed to get device for 8:129
  Physical volume "/dev/sda1" successfully created
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdc1" successfully created
  Physical volume "/dev/sdd1" successfully created
  Physical volume "/dev/sde1" successfully created
  Physical volume "/dev/sdf1" successfully created
  Physical volume "/dev/sdg1" successfully created
  Physical volume "/dev/sdh1" successfully created


After the update to 109-2:

[root@virt-065 ~]# pvcreate /dev/sd[abcdefgh]1
  Physical volume "/dev/sda1" successfully created
  Physical volume "/dev/sdb1" successfully created
  Physical volume "/dev/sdc1" successfully created
  Physical volume "/dev/sdd1" successfully created
  Physical volume "/dev/sde1" successfully created
  Physical volume "/dev/sdf1" successfully created
  Physical volume "/dev/sdg1" successfully created
  Physical volume "/dev/sdh1" successfully created


Verified with:

lvm2-2.02.109-2.el6.x86_64

Comment 4 errata-xmlrpc 2014-10-14 08:25:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1387.html


Note You need to log in before you can comment on or make changes to this bug.