To limit unnecessary I/O, you might need to make a filter in /etc/lvm/lvm.conf and sometimes, it’s hard to find a proper filter configuration.
Here is a simple way you can get a good filter.
$ pvs -a --config 'devices { filter = [ "a|.*|" ] }' --noheadings -opv_name,fmt,vg_name | awk 'BEGIN { f = ""; } NF == 3 { n = "42a|"$1"|42, "; f = f n; } END { print "filter = [ "f""r|.*|" ]" }'
Leave a Reply