Gordon Messmer
2018-01-02 06:47:16 UTC
I'd like to avoid scanning LVs, and I thought I'd set global_filter
appropriately. The following logs show global_filter set to reject
^/dev/VolGroup/vm_, but the system is scanning
/dev/VolGroup/vm_wiki_data. Any hints as to what I'm doing wrong?
Dec 06 13:08:37 kvm-test.private lvm[532]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:37 kvm-test.private lvm[534]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:38 kvm-test.private lvm[543]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:40 kvm-test.private lvm[648]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:40 kvm-test.private lvm[648]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:42 kvm-test.private lvm[751]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:42 kvm-test.private lvm[751]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
size is 10485760 sectors
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
using cached size 10485760 sectors
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Scanning dev 253:3 for
lvmetad cache.
Dec 06 13:08:44 kvm-test.private lvm[785]: Reading label from device
/dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
lvm2 label detected at sector 1
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: now in VG #orphans_lvm2 (#orphans_lvm2) with
0 mda(s).
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
PV header extension version 2 found
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
Found metadata at 8704 size 1086 (in area at 4096 size 1044480) for
DataGroup (ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG)
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache has no info for
vgname "DataGroup" with VGID ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache has no info for
vgname "DataGroup".
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: now in VG DataGroup with 1 mda(s).
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: set VGID to
ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: set creation host to
localhost.localdomain.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: stored metadata checksum
0xf5731900 with size 1086.
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Allocated VG DataGroup at
0x560c70fc8bb0.
Dec 06 13:08:44 kvm-test.private lvm[785]: Importing logical volume
DataGroup/data.
Dec 06 13:08:44 kvm-test.private lvm[785]: Read DataGroup metadata (4)
from /dev/VolGroup/vm_wiki_data at 8704 size 1086
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Telling lvmetad to store PV
/dev/VolGroup/vm_wiki_data (NRKTXX-I9D8-Vxb1-hKcX-rjJX-GNhB-jgsXiW) in
VG DataGroup
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_after to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_after to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_before to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting status to complete
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting vgname to DataGroup
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting changed to 1
Dec 06 13:08:44 kvm-test.private lvm[785]: VG DataGroup is complete in
lvmetad with dev /dev/VolGroup/vm_wiki_data.
Dec 06 13:08:44 kvm-test.private lvm[785]: VG DataGroup is changed in
lvmetad.
Dec 06 13:08:44 kvm-test.private lvm[785]: Freeing VG DataGroup at
0x560c70fc8bb0.
appropriately. The following logs show global_filter set to reject
^/dev/VolGroup/vm_, but the system is scanning
/dev/VolGroup/vm_wiki_data. Any hints as to what I'm doing wrong?
Dec 06 13:08:37 kvm-test.private lvm[532]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:37 kvm-test.private lvm[534]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:38 kvm-test.private lvm[543]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:40 kvm-test.private lvm[648]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:40 kvm-test.private lvm[648]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:42 kvm-test.private lvm[751]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:42 kvm-test.private lvm[751]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting devices/global_filter
to global_filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting devices/filter to
filter = [ "r|^/dev/VolGroup/vm_|", "r|^/dev/dm-|", "a|.*/|" ]
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
size is 10485760 sectors
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
using cached size 10485760 sectors
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Scanning dev 253:3 for
lvmetad cache.
Dec 06 13:08:44 kvm-test.private lvm[785]: Reading label from device
/dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
lvm2 label detected at sector 1
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: now in VG #orphans_lvm2 (#orphans_lvm2) with
0 mda(s).
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
PV header extension version 2 found
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
Found metadata at 8704 size 1086 (in area at 4096 size 1044480) for
DataGroup (ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG)
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache has no info for
vgname "DataGroup" with VGID ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache has no info for
vgname "DataGroup".
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: now in VG DataGroup with 1 mda(s).
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: set VGID to
ZY69boAqK0Cz6TYGHdevNQfQ2O1sbJoG.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: set creation host to
localhost.localdomain.
Dec 06 13:08:44 kvm-test.private lvm[785]: lvmcache
/dev/VolGroup/vm_wiki_data: VG DataGroup: stored metadata checksum
0xf5731900 with size 1086.
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Allocated VG DataGroup at
0x560c70fc8bb0.
Dec 06 13:08:44 kvm-test.private lvm[785]: Importing logical volume
DataGroup/data.
Dec 06 13:08:44 kvm-test.private lvm[785]: Read DataGroup metadata (4)
from /dev/VolGroup/vm_wiki_data at 8704 size 1086
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Opened
/dev/VolGroup/vm_wiki_data RO O_DIRECT
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
block size is 4096 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: /dev/VolGroup/vm_wiki_data:
physical block size is 512 bytes
Dec 06 13:08:44 kvm-test.private lvm[785]: Closed /dev/VolGroup/vm_wiki_data
Dec 06 13:08:44 kvm-test.private lvm[785]: Telling lvmetad to store PV
/dev/VolGroup/vm_wiki_data (NRKTXX-I9D8-Vxb1-hKcX-rjJX-GNhB-jgsXiW) in
VG DataGroup
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting response to OK
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_after to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_after to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting seqno_before to 4
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting status to complete
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting vgname to DataGroup
Dec 06 13:08:44 kvm-test.private lvm[785]: Setting changed to 1
Dec 06 13:08:44 kvm-test.private lvm[785]: VG DataGroup is complete in
lvmetad with dev /dev/VolGroup/vm_wiki_data.
Dec 06 13:08:44 kvm-test.private lvm[785]: VG DataGroup is changed in
lvmetad.
Dec 06 13:08:44 kvm-test.private lvm[785]: Freeing VG DataGroup at
0x560c70fc8bb0.