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 <email address hidden>
To: <email address hidden>
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:
root@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.
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 <email address hidden>
To: <email address hidden>
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.
-- /bugs.launchpad .net/bugs/ 504629
liblvm2clusterlock not in library search path
https:/
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:
root@XYZEADF:~# pvcreate /dev/sda ock.so: liblvm2clusterl ock.so: cannot open shared object file: No such file or directory
Unable to open external locking library liblvm2clusterl
Unknown locking type requested.
Locking type 2 initialisation failed.
Thats because liblvm2clusterl ock.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/ liblvm2clusterl ock.so /lib/liblvm2clu sterlock. so
or edit /etc/ld.so.conf to include /lib/lvm2 and then exec ldconfig
Cheers
ProblemType: Bug dules: nvidia
Architecture: i386
DistroRelease: Ubuntu 9.04
NonfreeKernelMo
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: /bugs.launchpad .net/ubuntu/ +source/ lvm2/+bug/ 504629/ +subscribe
https:/