WARNING: Ignoring duplicate config node: filter (seeking filter)
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
Quoted 11 lines · Cisco
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
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
Quoted 30 lines
-----Urspr�ngliche Nachricht-----
Von: David Brown [mailto:[email protected]]
Gesendet: Montag, 5. M�rz 2007 19:20
An: [email protected]; LVM general discussion and development
Betreff: Re: [linux-lvm] WARNING: Ignoring duplicate config
node: filter (seeking filter)Quoted 6 lines · Cisco
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" orany other
Quoted 3 lines
lvm command.
Does anyone know what's going on and if i should be
concerned about
Quoted 1 line
this, or even better: What is the meaning of this message
and how can
Quoted 1 line
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
Quoted 2 lines · Cisco
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
Signature · 1 line
[email protected]
AW: [linux-lvm] WARNING: Ignoring duplicate config node:filter (seeking filter)
*g*, yes, you're (of course) right!
I just made a fast attempt without thinking...
Quoted 51 lines
-----Urspr�ngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 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)Quoted 2 lines · Cisco
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
--
[email protected]_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/