Good one didn't look that far :), you could also add a lvm.conf to ld.so.conf.d dir and in that file add /lib/lvm2 that would solve that problem too.
Cheers Dyna ----- Original Message ---- From: Graeme Humphries <gra...@sudo.ca> To: dyn_a...@yahoo.com Sent: Thu, January 21, 2010 1:50:57 AM Subject: [Bug 504629] Re: liblvm2clusterlock not in library search path Couldn't you just uncomment "# library_dir = "/lib/lvm2"" in /etc/lvm/lvm.conf instead? That works for me. -- liblvm2clusterlock not in library search path https://bugs.launchpad.net/bugs/504629 You received this bug notification because you are a direct subscriber of the bug. Status in “lvm2” package in Ubuntu: New Bug description: Binary package hint: lvm2 When using clvm you need an external looking library in Debian/Ubuntu, the lib in included in the clvm pacakge. However when creating the very first thing in your clustered lvm setup it will fail with: r...@xyzeadf:~# pvcreate /dev/sda Unable to open external locking library liblvm2clusterlock.so: liblvm2clusterlock.so: cannot open shared object file: No such file or directory Unknown locking type requested. Locking type 2 initialisation failed. Thats because liblvm2clusterlock.so is located in /lib/lvm2/ where in this case pvcreate will not search for it. Workaround/fix is to either do ln -s /lib/lvm2/liblvm2clusterlock.so /lib/liblvm2clusterlock.so or edit /etc/ld.so.conf to include /lib/lvm2 and then exec ldconfig Cheers ProblemType: Bug Architecture: i386 DistroRelease: Ubuntu 9.04 NonfreeKernelModules: nvidia Package: clvm 2.02.39-0ubuntu9 ProcEnviron: SHELL=/bin/bash PATH=(custom, no user) LANG=en_GB.UTF-8 SourcePackage: lvm2 Uname: Linux 2.6.28-17-server i686 To unsubscribe from this bug, go to: https://bugs.launchpad.net/ubuntu/+source/lvm2/+bug/504629/+subscribe -- liblvm2clusterlock not in library search path https://bugs.launchpad.net/bugs/504629 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs