1

Running CentOS 6.5, a brand new "minimal" server install, trying to use LVM2 thin pool feature. Packages installed are:

lvm2 (2.02.111) device-mapper-persistent-data-0.3.2-1.el6.x86_64

/etc/lvm/lvm.conf has

...
thin_check_executable = "/usr/sbin/thin_check"
thin_repair_executable = "/usr/sbin/thin_repair"
...

(And yes those files exist in the file system.)

Error message in /var/log/boot.log is:

Setting up Logical Volume Management:   /usr/sbin/thin_check: execvp failed: No such file or directory
Check of pool vg/pool failed (status:2). Manual repair required!
/usr/sbin/thin_check: execvp failed: No such file or directory
/usr/sbin/thin_check: execvp failed: No such file or directory

I'm at a loss of what to do with this.

0

I'm using centos 7 and i don't have this problem, the function execvp is an external functions resolved by the library libdevmapper-event-lvm2thin.so:

/usr/lib64/device-mapper/libdevmapper-event-lvm2thin.so
[root@localhost ~]# objdump -T /usr/lib64/device-mapper/libdevmapper-event-lvm2thin.so  | grep exec
0000000000000000      DF *UND*  0000000000000000  GLIBC_2.2.5 execvp
[root@localhost ~]# grep thin /etc/lvm/lvm.conf | grep -v "#"
    thin_pool_metadata_require_separate_pvs = 0
    thin_pool_autoextend_threshold = 100
    thin_pool_autoextend_percent = 20
    thin_library = "libdevmapper-event-lvm2thin.so"


[root@localhost ~]# locate libdevmapper-event-lvm2thin.so
/usr/lib64/libdevmapper-event-lvm2thin.so
/usr/lib64/device-mapper/libdevmapper-event-lvm2thin.so

rpm -qf /usr/lib64/device-mapper/libdevmapper-event-lvm2thin.so
lvm2-libs-2.02.105-14.el7.x86_64

I think you need to say to lvm what library to use

4
  • On CentOS 6, the /lib64/ .so file is just a link to the one under the /lib64/device-mapper/ directory.
    – tgharold
    Dec 14 '14 at 17:50
  • yes, i know, but have you try to set in lvm.conf to that library?
    – c4f4t0r
    Dec 14 '14 at 17:54
  • No luck yet, even with hard-coding the path of the library into the config file.
    – tgharold
    Dec 23 '14 at 13:58
  • ldconfig -p | grep event ?
    – c4f4t0r
    Dec 23 '14 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.