while I wouldn’t know out of the box how to tell lvm to behave that way (i.e. via command profiles), you might consider to compare LVM configuration of both systems (“lvmconfig --type current”).
As this problem seems to affect more than just your current shell, I’ll assume that shell settings are not to blame.
Also, please verify if parts of LVM may have been modified since installation: “rpm -vV lvm2”.
nice to meet you again :-). The package seems to be fine:
rpm -vV lvm2-2.02.98-0.33.1
This is the only file which has changed. I made some changes to the script to see exactly where the error is.
The LVM configuration:
vm58820-6:~ # lvm dumpconfig
I found it out:
This is the respective entry. If i set it to zero, the name of the program dissapears.
OK. But why does rpm -V not show that the file lvm.conf has changed ? No matter if i have 0 or 1, rpm says the config file is fine.
Or are config files excluded from some tests (what would make sense) ?
And why is my config file so much different from the one of another pc (although we have the same version) ?
diff /etc/lvm/lvm.conf /etc/lvm/lvm.conf.vm58820-6
< # If set, the cache of block device nodes with all associated symlinks
< # will be constructed out of the existing udev database content.
< # This avoids using and opening any inapplicable non-block devices or
< # subdirectories found in the device directory. This setting is applied
< # to udev-managed device directory only, other directories will be scanned
< # fully. LVM2 needs to be compiled with udev support for this setting to
< # take effect. N.B. Any device node or symlink not managed by udev in
< # udev directory will be ignored with this setting on.
< obtain_device_list_from_udev = 1
< # N.B. If obtain_device_list_from_udev is set to 1 the list of
< # devices is instead obtained from udev and any existing .cache
< # file is removed.
< cache_dir = “/etc/lvm/cache”
< cache_file_prefix = “”
# cache_dir = "/etc/lvm/cache"
# cache_file_prefix = ""
cache = "/etc/lvm/.cache"
< #file = “/var/log/lvm2.log”
file = "/var/log/lvm2.log"
< locking_type = 3
locking_type = 1