liblvm2clusterlock not in library search path

Bug #504629 reported by Dyna on 2010-01-08
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lvm2 (Ubuntu)
Undecided
Unassigned

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.

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

Dyna (dyn-ares) wrote :
Tessa (unit3) wrote :

Couldn't you just uncomment "# library_dir = "/lib/lvm2"" in /etc/lvm/lvm.conf instead? That works for me.

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.

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

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers