Modify the filters field of the /etc/lvm/lvm.conf file to prevent LVM2 from scanning sd device nodes.
1. Modify the filter field in the /etc/lvm/lvm.conf file. Replace:
filter=[“a/.*/”]
with:
filter=[“r/sd*/”, “a/.*/”]
2. Rebuild the LVM2 cache. Enter:
vgscan -v
3. Verify that the filter field is working correctly. Run the command below and verify that the filtered device nodes are not listed in the command output. Enter:
lvmdiskscan
Root File System Mounted on a Logical Volume