Skip to contentSkip to conversation

To compile

linux-lvm Pierrick PONS 6 participants 9 messages Feb 21, 2002 – Feb 27, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

I've compiled lvm-1.0.3 using stow.
But a lib is missed

./configure --prefix=/usr/local/stow/lvm
make
make install

cd /usr/local/stow
stow -vv lvm

When I want to start with lvm, here is my problem :
pvcreate /dev/sdb
pvcreate: error in loading shared libraries: liblvm-10.so.1: cannot open shared object file: No such file or directory

I don't really understand, liblvm is in /usr/local/lib as a link pointing to /usr/local/stow/lvm/lib .

Is it impossible to compile lvm and use stow ?

I'm sorry, maybe it's a newbie question.

Thanks

Pierrick

#1 lore raw
Quoted 8 lines · Pierrick PONS

When I want to start with lvm, here is my problem :
pvcreate /dev/sdb
pvcreate: error in loading shared libraries: liblvm-10.so.1: cannot open shared object file: No such file or directory

I don't really understand, liblvm is in /usr/local/lib as a link pointing to /usr/local/stow/lvm/lib .

Is /usr/local/lib in your Library Path? Add this path to /etc/ld.so.conf, run ldconfig and retry it.

If you already did so, sorry for my question :)

Regards, Markus

#2 lore raw
Quoted 10 lines · Pierrick PONS
Quoted 8 lines

When I want to start with lvm, here is my problem :
pvcreate /dev/sdb
pvcreate: error in loading shared libraries: liblvm-10.so.1: cannot open shared object file: No such file or directory

I don't really understand, liblvm is in /usr/local/lib as a link pointing to /usr/local/stow/lvm/lib .

Quoted 7 lines

Is /usr/local/lib in your Library Path? Add this path to /etc/ld.so.conf, run ldconfig and retry it.

If you already did so, sorry for my question :)

Regards, Markus

I had seen that linking liblvm-10.so.1 in /lib with /usr/local/stow/lvm/lib/liblvm-10.so.1 permitted to start pvcreate .

I did what you wrote and it works perfectly. I'm sorry for this stupid question .

You're the boss.

Thanks a lot.

Pierrick

#3 lore raw
In reply to Markus Dobel
Quoted 6 lines · Pierrick PONS
Quoted 4 lines

When I want to start with lvm, here is my problem :
pvcreate /dev/sdb
pvcreate: error in loading shared libraries: liblvm-10.so.1:

cannot open

Quoted 8 lines
Quoted 3 lines

shared object file: No such file or directory

I don't really understand, liblvm is in /usr/local/lib as a

link pointing to

Quoted 1 line

/usr/local/stow/lvm/lib .

Is /usr/local/lib in your Library Path? Add this path to /etc/ld.so.conf, run ldconfig and retry it.

Er, you might find that it is a good idea to put your LVM shared library in /lib.

Otherwise you might have difficulting starting up the system if /usr or /usr/local is on an LVM volume.

Bill

Signature · 4 lines
William H. Blunn - [email protected] - Developer Support
Tao
62/63 Suttons Business Park, Earley, READING, RG6 1AZ, United Kingdom
Tel: +44 118 901 2999 - Fax: +44 118 901 2963 - http://tao-group.com/
#4 lore raw
Quoted 5 lines · William Blunn

Er, you might find that it is a good idea to put your LVM shared library in /lib.

Otherwise you might have difficulting starting up the system if /usr or /usr/local is on an LVM volume.

right. this also goes for vgscan and vgchange. now, site-specific software around where I work gets tossed to /site. which of course is either a partition or a volume. either way, doing:

[root@host /sbin]# ln -s /site/sbin/vgchange && ln -s /site/sbin/vgscan

isn't as bright as one first thinks.

of course, when testing for volumegroups only / has been mounted, in case any other mountpoints are logical volumes. *sigh*

Signature · 1 line
Terje - who builds most utils statically these days.  less fuzz.  :p
#5 lore raw
Quoted 11 lines · Terje Kvernes
Quoted 5 lines · William Blunn

Er, you might find that it is a good idea to put your LVM shared library in /lib.

Otherwise you might have difficulting starting up the system if /usr or /usr/local is on an LVM volume.

right. this also goes for vgscan and vgchange. now, site-specific software around where I work gets tossed to /site. which of course is either a partition or a volume. either way, doing:

Quoted 6 lines

[root@host /sbin]# ln -s /site/sbin/vgchange && ln -s /site/sbin/vgscan

isn't as bright as one first thinks.

of course, when testing for volumegroups only / has been mounted, in case any other mountpoints are logical volumes. *sigh*

I set up:

/opt/lvm-1.0.1 in the (small) root FS
/usr/local/opt/lvm-1.0.1 in the /usr filesystem (on LVM)

I put the LVM tools at /opt/lvm-1.0.1/sbin, and symlinked them from /sbin.

I put the manpages in /usr/local/opt/lvm-1.0.1/man, and symlinked them from /usr/local/man.

I put the runtime/shared-object (.so) library directly in /lib.

I put the development/static (.a) library in /usr/local/opt/lvm-1.0.1/lib, and symlinked it from /usr/local/lib.

After all this, I wondered how difficult it would be to make a Debian/Potato package out of it.

Bill

#6 lore raw

[linux-lvm] Problems mounting LVM volume as root

Hi All,

I have gotten LVM to work on my linux 2.4.17 kernel system. I am having a problem mounting my LVM volume as root. I followed all the instructions in the LVM howto that explains how to add an LVM root. I successfully created a root LVM volume formated it and copied the original root to the volume. I then ran the lvmcreate_initrd script. It created the .gz initrd file in the /boot directory. Made all the appropriate changes to lilo.conf and ran /sbin/lilo. My problem is when the kernel comes up insmod says it can't fine /lib/modules/2.4.17lvm/net/unix.o module. I think it's because the root file system isn't being mounted at that point but I am not sure. Does anyone have any ideas. I am running the 2.4.17 kernel with LVM support and the new LVM version 1.0.3. Are there any know problems with this configuration? Thanks.

Felix Rodriguez
Programmer Analyst
Phone: 860-685-3984
Email: [email protected]
Web: http://frodriguez.web.wesleyan.edu

#7 lore raw

Re: [linux-lvm] Problems mounting LVM volume as root

Quoted 1 line · Felix Rodriguez

fine /lib/modules/2.4.17lvm/net/unix.o module. I think it's because the

put Unix domain sockets (CONFIG_UNIX)
statically in the kernel, if you need it (ie it is not an embedded system) you just need it so it is nonsense to build as a module

L.

Signature · 6 lines
Luca Berra -- [email protected]
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \
#8 lore raw

Re: [linux-lvm] Problems mounting LVM volume as root

Thank You Luca. That worked!!!!!

Quoted 17 lines · you
Quoted 1 line · Felix Rodriguez

fine /lib/modules/2.4.17lvm/net/unix.o module. I think it's because the

put Unix domain sockets (CONFIG_UNIX)
statically in the kernel, if you need it (ie it is not an embedded system) you just need it so it is nonsense to build as a module

L.

--
Luca Berra -- [email protected]
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \

Quoted 5 lines

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Felix Rodriguez
Programmer Analyst
Phone: 860-685-3984
Email: [email protected]
Web: http://frodriguez.web.wesleyan.edu