LVM Boot = /sbin/modprobe: error while loading shared libraries: libzso.1
Hi,
I am having trouble getting my Mandrake 8.1 system to boot to a logical partition (LVM).
I followed the instructions from the man page for lvmcreate_initrd, which worked OK, modified /boot/lilo.conf as instructed and ran lilo. I also modified the (new) fstab file.
When I reboot, however, I get the following errors:
****/sbin/modprobe: error while loading shared libraries: libzso.1: cannot open shared object file: No such file or directory
vgscan -- LVM driver/module not loaded?
vgchange -- ERROR: "/etc/lvmtab" doesn't exist; please run vgscan
VFS: Cannot open root device "3a01" or 3a:01
Please append a correct "root=" boot option
Kernal panic: VFS: Unable to mount root fs on 3a:01
****
Any ideas? I am lost. I guess I need to tell Linux to load the LVM driver at boot time, but I thought it did this anyway, because when I copied the stuff across, I could mount the logical volumes once the system had booted... (I have a 2.5Gb normal partition that I installed to and which will be plugged into my volume group once I am booting with LVM)
I did a locate on "libzso.1", but it couldn't find it.
Cheers,
Ben
Quoted 3 lines · Ben Holness
Hi,
I am having trouble getting my Mandrake 8.1 system to boot to a logical partition (LVM).
....
Quoted 1 line
/sbin/modprobe: error while loading shared libraries: libzso.1: cannot open
....
Quoted 1 line
I did a locate on "libzso.1", but it couldn't find it.
it is libz.so.1, used by modprobe to uncompress gzipped modules
anyway, could you try with lvm tools and the modified mkinitrd found on http://www.comedia.it/bluca/lvm/
regards,
Luca
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 2 lines
Quoted 1 line
I did a locate on "libzso.1", but it couldn't find it.
it is libz.so.1, used by modprobe to uncompress gzipped modules
Quite right - a typo on my part :)
Quoted 2 lines
anyway, could you try with lvm tools and the modified mkinitrd found on http://www.comedia.it/bluca/lvm/
OK, I upgraded to the latest mkinitrd and re-ran lvmcreate_initrd, but it complained that it couldn't find lvm-mod.o (or mod-lvm.o - I don't remember which way round).
So I downloaded the latest version of lvm (1.0.1) from the link you gave me and upgraded. This time lvmcreate_initrd worked, but when I reboot I get another error:
****
RAMDISK: Complressed image found at block 0 Uncompressing...............<3>invalid compressed format (err=2)done.
****
And then it all fails because Root fs is not mounted...
Any ideas?
Cheers,
Ben
Quoted 6 lines · Ben Holness
Quoted 2 lines
anyway, could you try with lvm tools and the modified mkinitrd found on http://www.comedia.it/bluca/lvm/
OK, I upgraded to the latest mkinitrd and re-ran
lvmcreate_initrd, but it complained that it couldn't find lvm-mod.o (or mod-lvm.o - I don't remember which way round).
you should be able to use mkinitrd instead of lvmcreate_initrd.
Quoted 2 lines
RAMDISK: Complressed image found at block 0 Uncompressing...............<3>invalid compressed format (err=2)done.
did you run lilo again after creatinh the initrd?
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
did you run lilo again after creatinh the initrd?
<sheepish grin> No </sheepish grin>
OK, ran lilo and it got back to stage one again - cannot open libz.so.1 (error exactly the same as per my first LVM root mail) :(
I had some trouble with pvcreate because MDK set my system up with devfs enabled.
Could this be playing some part in the problem?
Cheers,
Ben
Quoted 7 lines
Quoted 1 line
did you run lilo again after creatinh the initrd?
<sheepish grin> No </sheepish grin>
OK, ran lilo and it got back to stage one again - cannot open libz.so.1
(error exactly the same as per my first LVM root mail) :(
And having looked around a bit more, I discovered that the newer version creates an image in /boot that is not called initrd :)
So I changed /boot/lilo.conf to reflect the new boot image and tried again.
This time the image decompresses OK and then I get:
****
VFS: Mounted root (ext2 filesystem)
VFS: Cannot open root device "3a01" or 3a:01
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 3a:01
****
Quoted 4 lines
I had some trouble with pvcreate because MDK set my system up with devfs enabled.
Could this be playing some part in the problem?
I should also mention that I ran lvmcreate_initrd with the -D option, but that didn't help.
Cheers,
Ben
Quoted 2 lines · Ben Holness
I should also mention that I ran
lvmcreate_initrdwith the -D option, but that didn't help.
please try
mkinitrd -v -f /boot/initrd uname -r instead of lvmcreate_initrd and tell me if it works
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 7 lines · Ben Holness
Quoted 1 line
I should also mention that I ran
lvmcreate_initrdwith the-D option, but
Quoted 1 line
that didn't help.
please try
mkinitrd -v -f/boot/initrduname -rinstead oflvmcreate_initrdand tell me if it works
OK, this time I get a different error:
****
VFS: Mounted root (ext2 filesystem)
Red Hat nash version 3.1.6-mdk starting
Mounting /proc filesystem
Creating root device
Mounting root filesystem
mount: error 19 mounting ext2 flags Freeing unused kernel memory: 712k freed
Kernel panic: No init found. Try passing init= option to kernel.
****
So it looks like it got further, but has found a new stumbling block!
I also had a look at the man page for initrd and noticed that there is a --fstab option, which I might need to use, as my current setup is as follows:
/dev/hda1 - boot partition (mounted on /boot) 14Mb/dev/hda6 - install partition (mounted on /) 2.5Gb/dev/hda4 - LVM partition, contains logical volumes for /, /usr, /var, /home and /tmp.
When I boot to hda6, I mount the LVM partitions in the relevant directories, within /new-disk.
This means that the fstab that is relevant to LVM exists in /new-disk/ROOT/etc/fstab when I boot to hda6, which is currently the only configuration that is working.
So I tried running mkinitrd -v --fstab /new-disk/ROOT/etc/fstab -f /boot/initrd uname -r, which gives me this error:
****
VFS: Mounted root (ext2 filesystem)
Red Hat nash version 3.1.6-mdk starting
loading lvm-mod module
LVM version LVM 0.9.1_beta7(ish) by Heinz Mauelshagen (20 June 2001) lvm -- Module successfully initialized
Mounting /proc filesystem
Creating root device
Creating root device
Configuring LVM
vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume group
vgchange -- no volume groups found
Mounting root filesystem
mount: error 6 mounting ext2 flags Freeing unused kernel memory: 712k freed
Kernel panic: No init found. Try passing init= option to kernel.
****
Interesting that it finds no volume groups.
A vgdisplay from when I boot to the install partition gives the following:
[root@firewall root]# vgdisplay
--- Volume group ---
VG Name firewallvg VG Access read/write VG Status available/resizable VG # 0 MAX LV 256 Cur LV 11 Open LV 1 MAX LV Size 255.99 GB Max PV 256 Cur PV 1 Act PV 1 VG Size 53.22 GB PE Size 4.00 MB Total PE 13624 Alloc PE / Size 6294 / 24.59 GB Free PE / Size 7330 / 28.63 GB VG UUID gIGwr8-vA6U-XU9j-oS5s-jQI1-sWTX-TKL22S
My guess is that I have not copied something (that is LVM related) from the original partition to the logical partition that LVM requires to work? Could this be something in
The copy command(s) that I used were:
cd / && echo cp -a /bin/ls -1Ab | egrep -v "^new-disk$|^proc$|^home$|^usr$|^tmp$|^var$|^Webserver$|^opt$|^boot$" /new-disk/ROOT | sh
cp -a /home/* /new-disk/home/
cp -a /usr/* /new-disk/usr/
cp -a /tmp/* /new-disk/tmp/
cp -a /var/* /new-disk/var/
cp -a /opt/* /new-disk/opt/
cp -a /Webserver /new-disk/Webserver
I then had a look around and copied /proc/lvm to /new-disk/ROOT/proc/lvm and tried again, but that didn't help.
Any further thoughts are welcomed!
Cheers,
Ben
Quoted 3 lines · Ben Holness
I also had a look at the man page for initrd and noticed that there is a --fstab option, which I might need to use, as my current setup is as follows:
yes, sorry, i should have mentioned it
.....
Quoted 8 lines
Configuring LVM
vgscan -- reading all physical volumes (this may take a while...) vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created vgscan -- WARNING: This program does not do a VGDA backup of your volume groupvgchange -- no volume groups found
ugh,
try modifying /sbin/mkinitrd
where it says
if [ -n "$lvmroot" ]; then
INITRDFILES="/sbin/vgchange /sbin/vgscan"
cp -aL /sbin/vgchange $MNTIMAGE/sbin
cp -aL /sbin/vgscan $MNTIMAGE/sbin
fi
change to
if [ -n "$lvmroot" ]; then
INITRDFILES="/sbin/vgchange /sbin/vgscan /sbin/lvmdiskscan" cp -aL /sbin/vgchange $MNTIMAGE/sbin
cp -aL /sbin/vgscan $MNTIMAGE/sbin
cp -aL /sbin/lvmdiskscan $MNTIMAGE/sbin
fi
and where is:
if [ -n "$lvmroot" ]; then
echo "echo Configuring LVM" >> $RCFILE
echo "/sbin/vgscan" >> $RCFILE
echo "/sbin/vgchange -a y" >> $RCFILE
IMAGESIZE=$[IMAGESIZE + 4096]
fi
change to:
if [ -n "$lvmroot" ]; then
echo "echo Configuring LVM" >> $RCFILE
echo "/sbin/lvmdiskscan" >> $RCFILE
echo "/sbin/vgscan" >> $RCFILE
echo "/sbin/vgchange -a y" >> $RCFILE
IMAGESIZE=$[IMAGESIZE + 4096]
fi
then we compare output of lvmdiskscan run on your system
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
--
Steven Lembark 2930 W. Palmer
Workhorse Computing Chicago, IL 60647
+1 800 762 1582
Quoted 2 lines
try modifying
/sbin/mkinitrd
[snip]
modified as instructed to include lvmdiskscan
Same problems when I boot, but I also get:
****
lvmdiskscan -- reading all disks / partitions (this may take a while...) lvmdiskscan -- no disks / partitions found
ERROR: /sbin/lvmdiskscan exited abnormally
****
When I run it from the install boot (where I can mount the LV's), I get:
****
[root@firewall root]# lvmdiskscan
lvmdiskscan -- reading all disks / partitions (this may take a while...)
lvmdiskscan -- /dev/ide/host0/bus0/target0/lun0/part1 [ 14.73 MB]
Primary LINUX native partition [0x83]
lvmdiskscan -- /dev/ide/host0/bus0/target0/lun0/part2 [ 2.66 GB] DOS
extended partition [0x05]
lvmdiskscan -- /dev/ide/host0/bus0/target0/lun0/part4 [ 53.22 GB]
Primary LVM partition [0x8E]
lvmdiskscan -- /dev/ide/host0/bus0/target0/lun0/part5 [ 243.60 MB]
Extended LINUX swap partition [0x82]
lvmdiskscan -- /dev/ide/host0/bus0/target0/lun0/part6 [ 2.42 GB]
Extended LINUX native partition [0x83]
lvmdiskscan -- 1 disk
lvmdiskscan -- 0 whole disks
lvmdiskscan -- 0 loop devices
lvmdiskscan -- 0 multiple devices
lvmdiskscan -- 0 network block devices
lvmdiskscan -- 5 partitions
lvmdiskscan -- 1 LVM physical volume partition
****
The DOS extended partition is actually part of the Linux install partition, as can be seen from fdisk:
****
Disk /dev/hda: 240 heads, 63 sectors, 7753 cylinders Units = cylinders of 15120 * 512 bytes
Device Boot Start End Blocks Id System /dev/hda1 * 1 2 15088+ 83 Linux /dev/hda2 3 371 2789640 5 Extended /dev/hda4 372 7753 55807920 8e Linux LVM /dev/hda5 3 35 249448+ 82 Linux swap /dev/hda6 36 371 2540128+ 83 Linux
****
Cheers,
Ben