1825916 Members
3410 Online
109689 Solutions
New Discussion

RHEL 5.5 LVM Filter

 
Mike_Swift
Advisor

RHEL 5.5 LVM Filter

I have two filters in place for different boxes and i would like to know whcih one is better and why? Idea is to filter emc devices. Could someone tell me the advantage/disadvantage of using a comma before the "  r " (like on the second filter as opposed to the first one?

 

filter = [ "a|/dev/emcpower.*|" "r|/dev/sd*|" ]

  

 

filter = [ "a|/dev/emcpower.*|", "r|.*|" ]

 

Thanks

 

Mike.

2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: RHEL 5.5 LVM Filter

"man lvm.conf" explicitly says "Elements must be separated by commas" when it describes the "array" syntax, which is used in the filter specification.

 

So only the second one is valid according to the documented syntax. The first one may or may not work; but if it works, it works because of an undocumented feature which may or may not be there in the next version/patchlevel.

MK
Mike_Swift
Advisor

Re: RHEL 5.5 LVM Filter

Thanks Matti! BTW what does the ", r" mean, meaning every devices (raw)?

 

Thanks

 

Mike