I am not able to list the root_disk LVM in lvm commands (like pvs, vgs etc.) output. The lvm.conf file does have global_filter and it looks like below -
global_filter = [ "a|^/dev/mapper/96005076307ffc6a60000000000001501.*|", "r/.*/" ]
96005076307ffc6a60000000000001501 happens to be my root_disk and there is only 1 disk. Have tried with other options in global_filter like having '$' sign at end of root_disk (like /dev/mapper/96005076307ffc6a60000000000001501p2) also did not help.
The preferred_names entry in lvm.conf is as below -
preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
The root_lvm gets detected, say for example in "pvs" command output, if I include "/dev/dm-0" into the global-filter. However, working with "/dev/dm-N" is discouraged as the names are not constant and is used internally by OS.
This is happening only for root_lvm and other disks if part of global_filter are detected in the expected way.
Not sure of the reason. I need to get the /dev/mapper entries for root_disk as well in "pvs" command output.