Vgextend : "device excluded by a filter"

Tibor BERNARD asked:

So here I am at a new internship and I am asked to extend a volume group, seemed fine :

vgextend [my_group] /dev/sdb

But now I get an error message telling me :

Device /dev/sdb excluded by a filter` 

Could anyone help me figure out what when wrong, or guide me to where the filters are setup.



My answer:

Check /etc/lvm/lvm.conf for uncommented filter = and global_filter = lines. One of these will likely contain some filter which matches /dev/sdb. The default configuration specifies no filters, so this will have been modified in your environment by someone else.

View the full question and any other answers on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.