Command line completion (in /etc/bash_completion) for the lvm2 suite of
tools does not work very well and it would be better to remove it
altogether.
Examples of broken behaviour:
# lvextend --size <tab>
This only allows completion on the words in the list "g G k K m M
t T". However a number must also be entered before the the units and
then the units cannot be completed. This is of such marginal utility
that is should be removed (IMHO).
# lvextend --size +40G <tab>
The completes on the physical volumes, not the logical volumes as it
should. This is because it counts "+40G" as the logical volume (the
first non-option argument) and assumes that a physical volume path is
now needed.
I think there are a number of other situations when the completion
fails. I always seem to have to type a path to the logical volume
without tab completion available. It would be better if it did not try
any specific completion at all.