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" ] Code:
filter = [ "a|/dev/emcpower.*|" "a|/dev/sd.*|" "a|/dev/cciss.*|" "a|/dev/mpath|" "r|.*|" ] The pvs command reports: Code:
# pvs |
preferred_names = [ "^/dev/emcpower.*", "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/sd" ]
You're missing a '.' |
I changed the preferred_names line to look like:
Code:
preferred_names = [ "^/dev/emcpower.*", "^/dev/mpath/", "^/dev/mapper/mpath" ] |
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. |
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. |
All times are GMT -5. The time now is 06:13 AM. |