I am running RHEL 6.4 with EMC PowerPath.
The preferred_names line in my lvm.conf looks like
preferred_names = [ "^/dev/emcpower*", "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/sd" ]
My filter line in lvm.conf looks like:
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:
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?