Bug 613679 - preferred_names in lvm.conf not setup correctly
preferred_names in lvm.conf not setup correctly
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node (Show other bugs)
All Linux
low Severity medium
: rc
: ---
Assigned To: Joey Boggs
Virtualization Bugs
Depends On:
Blocks: 613754
  Show dependency treegraph
Reported: 2010-07-12 10:55 EDT by Mike Burns
Modified: 2010-11-11 09:53 EST (History)
5 users (show)

See Also:
Fixed In Version: ovirt-node-1.9.3-5.git3a9e2d0.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-11 09:53:23 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
patch (1006 bytes, patch)
2010-07-16 22:06 EDT, Joey Boggs
no flags Details | Diff

  None (edit)
Description Mike Burns 2010-07-12 10:55:37 EDT
Description of problem:

preferred_names in lvm.conf is preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ] by default

This causes multipath devices to show up as /dev/dm-XX devices in pvs type calls.  The script that sets up the lvm.conf file changes the commented preferred_names lines to the correct value:

preferred_names = [ "^/dev/mapper", "^/dev/[hsv]d" ]

Version-Release number of selected component (if applicable):

How reproducible:
Always when using multipath devices

Steps to Reproduce:
1. start rhevh in firstboot mode
2. configure storage (if not configured)
3. drop to shell (support menu -> shell)
4. run pvs - points to /dev/dm-* device
Actual results:
uses dm-* devices

Expected results:
uses /dev/mapper/<wwid> device

Additional info:
Comment 2 Joey Boggs 2010-07-16 22:06:10 EDT
Created attachment 432530 [details]
Comment 4 Ying Cui 2010-08-26 05:09:32 EDT
Verified on build rhev-hypervisor-6.0-13.el6.noarch.

1. firstboot menu
2. partition on FC LUN.

[root@amd-1352-8-2 ~]# pvs
  PV                                              VG     Fmt  Attr PSize  PFree
  /dev/mapper/3600a0b80005adb0b000003ca4a1c593ep3 HostVG lvm2 a-   29.52g    0
Comment 5 releng-rhel@redhat.com 2010-11-11 09:53:23 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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