Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 873227

Summary: pvs cannot find the raw block devices
Product: Red Hat Enterprise Linux 7 Reporter: Xiaowei Li <xiaoli>
Component: lvm2Assignee: LVM and device-mapper development team <lvm-team>
lvm2 sub component: Default / Unclassified QA Contact: cluster-qe <cluster-qe>
Status: CLOSED NOTABUG Docs Contact:
Severity: high    
Priority: high CC: agk, heinzm, jbrassow, msnitzer, prajnoha, prockai, qcai, thornber, zkabelac
Version: 7.0Keywords: Triaged
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-07 16:17:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
pvs.log
none
lvm.conf none

Description Xiaowei Li 2012-11-05 11:44:09 UTC
Description of problem:
pvs cannot find the HP logical Volume.

Version-Release number of selected component (if applicable):
lvm2-2.02.97-1.el7.x86_64

How reproducible:


Steps to Reproduce:
1. there is a HP logical volume 
 # multipath -ll
mpatha (3600508b1001c17d13f45276b897a7fa9) dm-0 HP      ,LOGICAL VOLUME  
size=4.5T features='1 queue_if_no_path' hwhandler='0' wp=rw
`-+- policy='service-time 0' prio=1 status=active
  `- 0:0:0:1 sdb 8:16 active ready running
2. set the filter to accept all the block device.
# grep '^\s*filter' /etc/lvm/lvm.conf 
    filter = [ "a/.*/" ]

3. issue the pvs -a
# pvs -a
  PV                 VG   Fmt  Attr PSize PFree
  /dev/mapper/mpatha vg   lvm2 a--  4.55t 4.55t
  /dev/sda1                    ---     0     0 
  /dev/sda2                    ---     0     0 
  /dev/sda3                    ---     0     0 
  /dev/vg/lv1                  ---     0     0
  
Actual results:
it cannot find the HP logical volume.

Expected results:


Additional info:

Comment 1 Xiaowei Li 2012-11-05 11:47:00 UTC
Created attachment 638528 [details]
pvs.log

Comment 2 Xiaowei Li 2012-11-05 12:00:57 UTC
Created attachment 638529 [details]
lvm.conf

Comment 3 Xiaowei Li 2012-11-05 12:02:31 UTC
It can find the partition and mpath, but cannot find the raw block device.
# lsblk
NAME              MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda                 8:0    0 931.5G  0 disk  
├─sda1              8:1    0   200M  0 part  /boot
├─sda2              8:2    0 803.5G  0 part  /
└─sda3              8:3    0 127.9G  0 part  [SWAP]
sdb                 8:16   0   4.6T  0 disk  
└─mpatha (dm-0)   253:0    0   4.6T  0 mpath 
  └─vg-lv1 (dm-1) 253:1    0     1G  0 lvm   
sdc                 8:32   0     1G  0 disk  
└─mpathc (dm-2)   253:2    0     1G  0 mpath 
# pvs -a
  PV                 VG   Fmt  Attr PSize PFree
  /dev/mapper/mpatha vg   lvm2 a--  4.55t 4.55t
  /dev/mapper/mpathc           ---     0     0 
  /dev/sda1                    ---     0     0 
  /dev/sda2                    ---     0     0 
  /dev/sda3                    ---     0     0 
  /dev/vg/lv1                  ---     0     0

Comment 4 Alasdair Kergon 2012-11-07 15:20:42 UTC
That looks correct: mpatha already uses sdb, so LVM cannot use sdb directly as a PV.

In the log file you attached:
#filters/filter-mpath.c:163         /dev/sdb: Skipping mpath component device