LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
Search this Thread
Old 10-28-2013, 03:42 PM   #1
thaddeusq
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
lvm preferred_names not working


I am running RHEL 6.4 with EMC PowerPath.

The preferred_names line in my lvm.conf looks like
Code:
preferred_names = [ "^/dev/emcpower*", "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/sd" ]
My filter line in lvm.conf looks like:
Code:
filter = [ "a|/dev/emcpower.*|" "a|/dev/sd.*|" "a|/dev/cciss.*|" "a|/dev/mpath|" "r|.*|" ]
My root filesystem is on /dev/sda2 which is a local disk.

The pvs command reports:
Code:
# pvs
  Found duplicate PV 5MJOqv3uBda0vw1SPlr0SQmWOVGeZnxX: using /dev/sdc not /dev/emcpowerb
  Found duplicate PV EyhvDhjfh0M30sfIp1eRTzLqzOJ1J0hj: using /dev/sdd not /dev/emcpowera
  Found duplicate PV 5MJOqv3uBda0vw1SPlr0SQmWOVGeZnxX: using /dev/sdf not /dev/sdc
  Found duplicate PV EyhvDhjfh0M30sfIp1eRTzLqzOJ1J0hj: using /dev/sdg not /dev/sdd
  PV         VG     Fmt  Attr PSize   PFree
  /dev/sda2  rootvg lvm2 a--  277.97g 19.97g
  /dev/sdf   sanvg  lvm2 a--  100.00g     0
  /dev/sdg   sanvg  lvm2 a--   50.00g     0
Instead of /dev/sdf and /dev/sdg for sanvg, I want it to report /dev/emcpowera and /dev/emcpowerb. I was under the impression that setting up the filter line and the preferred_names line the way that I have would do this. Any help?
 
Old 10-29-2013, 08:35 AM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
preferred_names = [ "^/dev/emcpower.*", "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/sd" ]

You're missing a '.'
 
Old 10-29-2013, 09:50 AM   #3
thaddeusq
LQ Newbie
 
Registered: Oct 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
I changed the preferred_names line to look like:

Code:
preferred_names = [ "^/dev/emcpower.*", "^/dev/mpath/", "^/dev/mapper/mpath" ]
Still not working.
 
Old 10-29-2013, 11:19 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,392

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
My guess would be that lvm has no way to know that emcpowera, sdd and sdg are all the same device, and that the preferred_names processing isn't even coming into play.

I don't know enough about how the emc drivers work to be able to be more specific that that.
 
Old 10-30-2013, 11:46 AM   #5
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat
Posts: 145

Rep: Reputation: 5
Preferred names did not worked for me also. Jus narrow your filter line.

BTW, I've switched from PowerPath to native Linux multipath.
I've always has a problem with kernel update while booting from PP device.
As from my experience, the only "added value" of PP is $1k/CPU.
Even that value added to EMC, not to you.


See this HOWTO LUNs on Linux using native tools.
Although, it built on NetApp example, I use same logic working with EMC devices.
You can check here: Boot from SAN RedHat 5.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SoftwareRaid1 (mdadm) and LVM setup. Working, but is it ok? isync Linux - Server 7 05-17-2011 08:48 PM
LVM snapshot mount not working syacko Linux - Server 9 02-05-2009 01:16 AM
Core 5, 2.2Terabytes not working with LVM or File System big_ginge21 Fedora 2 09-05-2006 11:21 AM
retrieve data from old (working) hd with lvm JohnLocke Linux - General 2 07-03-2006 09:47 PM
Sata drive not working in LVM crofty13 Linux - Software 2 06-15-2006 05:31 AM


All times are GMT -5. The time now is 11:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration