linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter)
@ 2007-03-05 18:00 Cisco
  2007-03-05 18:19 ` David Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Cisco @ 2007-03-05 18:00 UTC (permalink / raw)
  To: linux-lvm

 
 Hi all,
 
 after upgrading (compiling from source)LVM2 and device 
 mapper, i always get the warning message "WARNING: Ignoring 
 duplicate config node: filter (seeking filter)" when doing 
 "lvm version" or any other lvm command.
 
 Does anyone know what's going on and if i should be 
 concerned about this, or even better: What is the meaning of 
 this message and how can i get rid of it.
 
 Thanks in advance and best regards.
 
 Kernel: 2.6.20, Debian unstable
 
 LVM version:     2.02.22 (2007-02-13)
 Library version: 1.02.18 (2007-02-13)
 Driver version:  4.11.0
 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter)
  2007-03-05 18:00 [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter) Cisco
@ 2007-03-05 18:19 ` David Brown
  2007-03-05 19:16   ` AW: " Cisco
  0 siblings, 1 reply; 5+ messages in thread
From: David Brown @ 2007-03-05 18:19 UTC (permalink / raw)
  To: cisco66, LVM general discussion and development

Cisco wrote:
>  
>  Hi all,
>  
>  after upgrading (compiling from source)LVM2 and device
>  mapper, i always get the warning message "WARNING: Ignoring
>  duplicate config node: filter (seeking filter)" when doing
>  "lvm version" or any other lvm command.
>  
>  Does anyone know what's going on and if i should be
>  concerned about this, or even better: What is the meaning of
>  this message and how can i get rid of it.

You have multiple "filter = " lines in your lvm config file.  Previous
versions ignored this (but appeared to only use one of them).  You
need to specify all of the filtering you want in one list.

Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

* AW: [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter)
  2007-03-05 18:19 ` David Brown
@ 2007-03-05 19:16   ` Cisco
  2007-03-05 19:35     ` Alasdair G Kergon
  0 siblings, 1 reply; 5+ messages in thread
From: Cisco @ 2007-03-05 19:16 UTC (permalink / raw)
  To: 'David Brown',
	'LVM general discussion and development'

Hi Dave,

thanks a lot !
It worked by consolidating the "filter" lines into one single line
containing all filter statements.
filter = [ "a/.*/", "r|/dev/cdrom|", "r|/dev/hda|", "r|/dev/hdb|",
"r|/cdrom|" ]

Tom
 

> -----Urspr�ngliche Nachricht-----
> Von: David Brown [mailto:lvm@davidb.org] 
> Gesendet: Montag, 5. M�rz 2007 19:20
> An: cisco66@gmx.de; LVM general discussion and development
> Betreff: Re: [linux-lvm] WARNING: Ignoring duplicate config 
> node: filter (seeking filter)
> 
> Cisco wrote:
> >  
> >  Hi all,
> >  
> >  after upgrading (compiling from source)LVM2 and device  mapper, i 
> > always get the warning message "WARNING: Ignoring  duplicate config 
> > node: filter (seeking filter)" when doing  "lvm version" or 
> any other 
> > lvm command.
> >  
> >  Does anyone know what's going on and if i should be  
> concerned about 
> > this, or even better: What is the meaning of  this message 
> and how can 
> > i get rid of it.
> 
> You have multiple "filter = " lines in your lvm config file.  
> Previous versions ignored this (but appeared to only use one 
> of them).  You need to specify all of the filtering you want 
> in one list.
> 
> Dave
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter)
  2007-03-05 19:16   ` AW: " Cisco
@ 2007-03-05 19:35     ` Alasdair G Kergon
  2007-03-05 20:56       ` AW: [linux-lvm] WARNING: Ignoring duplicate config node:filter " Cisco
  0 siblings, 1 reply; 5+ messages in thread
From: Alasdair G Kergon @ 2007-03-05 19:35 UTC (permalink / raw)
  To: LVM general discussion and development

On Mon, Mar 05, 2007 at 08:16:35PM +0100, Cisco wrote:
> filter = [ "a/.*/", "r|/dev/cdrom|", "r|/dev/hda|", "r|/dev/hdb|",
> "r|/cdrom|" ]
 
Oops - the first pattern matches everything so the rest will have no effect:-)

The man page says:
              filter  -- List of patterns to apply to devices found by a scan.
              Patterns are regular expressions delimited by any character  and
              preceded  by a (for accept) or r (for reject).  The list is tra-
              versed in order, and the first regex that matches determines  if
              the device will be accepted or rejected (ignored).  Devices that
              don't match any patterns are accepted. If  you  want  to  reject
              patterns  that don't match, end the list with "r/.*/".  If there
              are several names for the same device (e.g.  symbolic  links  in
              /dev),  if  any  name  matches  any  a  pattern,  the  device is
              accepted; otherwise if any name matches  any  r  pattern  it  is
              rejected;  otherwise  it  is accepted.  As an example, to ignore
              /dev/cdrom you could use: devices { filter=["r|cdrom|"] }

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* AW: [linux-lvm] WARNING: Ignoring duplicate config node:filter (seeking filter)
  2007-03-05 19:35     ` Alasdair G Kergon
@ 2007-03-05 20:56       ` Cisco
  0 siblings, 0 replies; 5+ messages in thread
From: Cisco @ 2007-03-05 20:56 UTC (permalink / raw)
  To: 'LVM general discussion and development'

*g*, yes, you're (of course) right!
I just made a fast attempt without thinking... 

> -----Urspr�ngliche Nachricht-----
> Von: linux-lvm-bounces@redhat.com 
> [mailto:linux-lvm-bounces@redhat.com] Im Auftrag von Alasdair G Kergon
> Gesendet: Montag, 5. M�rz 2007 20:36
> An: LVM general discussion and development
> Betreff: Re: [linux-lvm] WARNING: Ignoring duplicate config 
> node:filter (seeking filter)
> 
> On Mon, Mar 05, 2007 at 08:16:35PM +0100, Cisco wrote:
> > filter = [ "a/.*/", "r|/dev/cdrom|", "r|/dev/hda|", "r|/dev/hdb|", 
> > "r|/cdrom|" ]
>  
> Oops - the first pattern matches everything so the rest will 
> have no effect:-)
> 
> The man page says:
>               filter  -- List of patterns to apply to devices 
> found by a scan.
>               Patterns are regular expressions delimited by 
> any character  and
>               preceded  by a (for accept) or r (for reject).  
> The list is tra-
>               versed in order, and the first regex that 
> matches determines  if
>               the device will be accepted or rejected 
> (ignored).  Devices that
>               don't match any patterns are accepted. If  you  
> want  to  reject
>               patterns  that don't match, end the list with 
> "r/.*/".  If there
>               are several names for the same device (e.g.  
> symbolic  links  in
>               /dev),  if  any  name  matches  any  a  
> pattern,  the  device is
>               accepted; otherwise if any name matches  any  r 
>  pattern  it  is
>               rejected;  otherwise  it  is accepted.  As an 
> example, to ignore
>               /dev/cdrom you could use: devices { 
> filter=["r|cdrom|"] }
> 
> Alasdair
> --
> agk@redhat.com
> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-03-05 20:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-05 18:00 [linux-lvm] WARNING: Ignoring duplicate config node: filter (seeking filter) Cisco
2007-03-05 18:19 ` David Brown
2007-03-05 19:16   ` AW: " Cisco
2007-03-05 19:35     ` Alasdair G Kergon
2007-03-05 20:56       ` AW: [linux-lvm] WARNING: Ignoring duplicate config node:filter " Cisco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).