Linux LVM users
 help / color / mirror / Atom feed
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-03 11:34 Kjartan Reynir Hauksson
  2004-01-05  7:32 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-03 11:34 UTC (permalink / raw)
  To: linux-lvm





>this means either your initrd is corrupted, or you did not rerun lilo
>after createing the initrd.

Yup.. I forgot to run /sbin/lilo but it doesn't take.  The first error is
failed to create /dev/mapper/control and after that everything fails and it
ends up in a kernel panic.

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02 18:02 Kjartan Reynir Hauksson
  2004-01-03  4:30 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02 18:02 UTC (permalink / raw)
  To: linux-lvm





>If you could tell me what your machine prints before the kernel panic i
>could try to guess what happened

hmmmm... this looks a little suspicious: invalid compressed format
(err=2)<6> Freeing initrd memory 451k freed

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02 16:54 Kjartan Reynir Hauksson
  2004-01-02 17:34 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02 16:54 UTC (permalink / raw)
  To: linux-lvm





>no, the culprit for 0x3a is lilo, but initrd should purposefully ignore
>that.
>it should mount the root fs and then do a pivot_root, so the kernel
>trying to open a root device is unexpected.

Well I patched the lilo mdk source file myself so it's probably my fault
(didn't see anything wrong though).  I tried to get your package from
comedia.it but it's not responding, can I get it somewhere else ?

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02 13:40 Kjartan Reynir Hauksson
  2004-01-02 14:12 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02 13:40 UTC (permalink / raw)
  To: linux-lvm





>work.  You have to use the --lvm-version=2 option to mkinitrd.

kernel panic, this time VFS: Cannot open root device "3a00" or 3a:00

Output from mkinitrd:

[root@kjartan root]# mkinitrd -v -f --lvm-version=2 /boot/initrd-2.4.22.img
2.4.22
Looking for deps of module aic7xxx
         scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module sd_mod
         scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module dm-mod
Looking for deps of module ext3
         jbd
Looking for deps of module jbd
Using modules:  ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/aic7xxx/aic7
xxx.o ./kernel/drivers/scsi/sd_mod.o ./kernel/fs/jbd/jbd.o
./kernel/fs/ext3/ext3.o
Using /root/tmp as temporary directory.
/sbin/nash -> /root/tmp/initrd.n7CMXa/bin/nash
/sbin/insmod-DIET -> /root/tmp/initrd.n7CMXa/bin/insmod
`/lib/modules/2.4.22/./kernel/drivers/scsi/scsi_mod.o' ->
`/root/tmp/initrd.n7CMXa/
lib/scsi_mod.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/aic7xxx/aic7xxx.o' ->
`/root/tmp/initrd.
n7CMXa/lib/aic7xxx.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/sd_mod.o' ->
`/root/tmp/initrd.n7CMXa/li
b/sd_mod.o'
`/lib/modules/2.4.22/./kernel/fs/jbd/jbd.o' ->
`/root/tmp/initrd.n7CMXa/lib/jbd.o'
`/lib/modules/2.4.22/./kernel/fs/ext3/ext3.o' ->
`/root/tmp/initrd.n7CMXa/lib/ext3.
o'
Loading module scsi_mod.o
Loading module aic7xxx.o
Loading module sd_mod.o
Loading module jbd.o
Loading module ext3.o
`/sbin/lvm2-static' -> `/root/tmp/initrd.n7CMXa/sbin/vgscan'
Contents of RCFILE:
#!/bin/nash

echo "Loading scsi_mod.o module"
insmod /lib/scsi_mod.o
echo "Loading aic7xxx.o module"
insmod /lib/aic7xxx.o
echo "Loading sd_mod.o module"
insmod /lib/sd_mod.o
echo "Loading jbd.o module"
insmod /lib/jbd.o
echo "Loading ext3.o module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating device files
mkdevices /dev
echo Making device-mapper control node
mkdmnod
echo Scanning logical volumes
vgscan --ignorelockingfailure
echo Activating logical volumes
vgchange -ay --ignorelockingfailure
echo Making device nodes
vgmknodes
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root/1 /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
handledevfs
umount /initrd/proc
 Creating filesystem with size 1103KB and 191 inodes

^ permalink raw reply	[flat|nested] 27+ messages in thread
* RE: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02 13:03 Kjartan Reynir Hauksson
  2004-01-02 13:15 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02 13:03 UTC (permalink / raw)
  To: linux-lvm





>reinstall coreutils-5.0-6.1.92mdk
>software on my home page is usually for the development version of
>mandrake and does not work with mandrake 9.2 (with the exception of the
>stuff in the lvm2 subdirectory, which i try to backport to 9.2)

Did it and reran mkinitrd but I'm still getting kernel panic. It says
pivotroot: pivot_root(sysroot,/sysroot/initrd) failed: 2

Here's my mkinitrd output

[root@kjartan root]# mkinitrd -v -f /boot/initrd-2.4.22.img 2.4.22
Looking for deps of module aic7xxx
         scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module sd_mod
         scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module lvm-mod
Looking for deps of module dm-mod
Looking for deps of module ext3
         jbd
Looking for deps of module jbd
Using modules:  ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/aic7xxx/aic7xxx.o
./kernel/drivers/scsi/sd_mod.o ./kernel/fs/jbd/jbd.o
./kernel/fs/ext3/ext3.o
Using /root/tmp as temporary directory.
/sbin/nash -> /root/tmp/initrd.qPJFGp/bin/nash
/sbin/insmod-DIET -> /root/tmp/initrd.qPJFGp/bin/insmod
`/lib/modules/2.4.22/./kernel/drivers/scsi/scsi_mod.o' ->
`/root/tmp/initrd.qPJFGp/lib/sc
si_mod.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/aic7xxx/aic7xxx.o' ->
`/root/tmp/initrd.qPJFGp
/lib/aic7xxx.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/sd_mod.o' ->
`/root/tmp/initrd.qPJFGp/lib/sd_m
od.o'
`/lib/modules/2.4.22/./kernel/fs/jbd/jbd.o' ->
`/root/tmp/initrd.qPJFGp/lib/jbd.o'
`/lib/modules/2.4.22/./kernel/fs/ext3/ext3.o' ->
`/root/tmp/initrd.qPJFGp/lib/ext3.o'
Loading module scsi_mod.o
Loading module aic7xxx.o
Loading module sd_mod.o
Loading module jbd.o
Loading module ext3.o
`/sbin/lvm1-vgwrapper' -> `/root/tmp/initrd.qPJFGp/sbin/vgscan'
Contents of RCFILE:
#!/bin/nash

echo "Loading scsi_mod.o module"
insmod /lib/scsi_mod.o
echo "Loading aic7xxx.o module"
insmod /lib/aic7xxx.o
echo "Loading sd_mod.o module"
insmod /lib/sd_mod.o
echo "Loading jbd.o module"
insmod /lib/jbd.o
echo "Loading ext3.o module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating device files
mkdevices /dev
mknod /dev/lvm b 109 0
mount -t tmpfs /etc /etc
echo Scanning logical volumes
vgscan
echo Activating logical volumes
vgchange -ay
umount /etc
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root/1 /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
handledevfs
umount /initrd/proc
Creating filesystem with size 906KB and 186 inodes


And my lilo.conf

[root@kjartan root]# cat /etc/lilo.conf
boot=/dev/hda
map=/boot/map
vga=normal
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=50
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
        label="linux"
        root=/dev/root/1
        initrd=/boot/initrd.img
        append="devfs=mount hdc=ide-scsi acpi=ht splash=silent"
        vga=788
        read-only
image=/boot/vmlinuz
        label="linux-nonfb"
        root=/dev/root/1
        initrd=/boot/initrd.img
        append="devfs=mount hdc=ide-scsi acpi=ht"
        read-only
image=/boot/vmlinuz
        label="failsafe"
        root=/dev/root/1
        initrd=/boot/initrd.img
        append="failsafe devfs=nomount hdc=ide-scsi acpi=ht"
        read-only
image=/boot/vmlinuz-2.4.22
       label=lvm2
       root=/dev/root/1
       initrd=/boot/initrd-2.4.22.img
       append="devfs=mount"
        read-only

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02 11:37 Kjartan Reynir Hauksson
  2004-01-02 12:07 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02 11:37 UTC (permalink / raw)
  To: linux-lvm





>no, mkinitrd 3.5.15.1 does not care about alternatives
>your logs, please.

Here's mkinitrd

[root@kjartan root]# mkinitrd -v -f /boot/initrd-2.4.22.img 2.4.22
Looking for deps of module aic7xxx
         scsi_mod
Looking for deps of module scsi_mod
Looking for deps of module sd_mod
         scsi_mod
Looking for deps of module scsi_mod
/bin/ls: relocation error: /bin/ls: symbol gnu_dev_minor, version
GLIBC_2.3.3 not defined in file l
ibc.so.6 with link time reference
/sbin/mkinitrd: line 529: [: too many arguments
/sbin/mkinitrd: line 543: [: too many arguments
Looking for deps of module ext3
         jbd
Looking for deps of module jbd
Using modules:  ./kernel/drivers/scsi/scsi_mod.o
./kernel/drivers/scsi/aic7xxx/aic7xxx.o ./kernel/d
rivers/scsi/sd_mod.o ./kernel/fs/jbd/jbd.o ./kernel/fs/ext3/ext3.o
Using /root/tmp as temporary directory.
/sbin/nash -> /root/tmp/initrd.8wLSt0/bin/nash
/sbin/insmod-DIET -> /root/tmp/initrd.8wLSt0/bin/insmod
`/lib/modules/2.4.22/./kernel/drivers/scsi/scsi_mod.o' ->
`/root/tmp/initrd.8wLSt0/lib/scsi_mod.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/aic7xxx/aic7xxx.o' ->
`/root/tmp/initrd.8wLSt0/lib/aic7x
xx.o'
`/lib/modules/2.4.22/./kernel/drivers/scsi/sd_mod.o' ->
`/root/tmp/initrd.8wLSt0/lib/sd_mod.o'
`/lib/modules/2.4.22/./kernel/fs/jbd/jbd.o' ->
`/root/tmp/initrd.8wLSt0/lib/jbd.o'
`/lib/modules/2.4.22/./kernel/fs/ext3/ext3.o' ->
`/root/tmp/initrd.8wLSt0/lib/ext3.o'
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
mknod: relocation error: mknod: symbol gnu_dev_makedev, version GLIBC_2.3.3
not defined in file lib
c.so.6 with link time reference
Loading module scsi_mod.o
Loading module aic7xxx.o
Loading module sd_mod.o
Loading module jbd.o
Loading module ext3.o
Contents of RCFILE:
#!/bin/nash

echo "Loading scsi_mod.o module"
insmod /lib/scsi_mod.o
echo "Loading aic7xxx.o module"
insmod /lib/aic7xxx.o
echo "Loading sd_mod.o module"
insmod /lib/sd_mod.o
echo "Loading jbd.o module"
insmod /lib/jbd.o
echo "Loading ext3.o module"
insmod /lib/ext3.o
echo Mounting /proc filesystem
mount -t proc /proc /proc
echo Creating device files
mkdevices /dev
echo Creating root device
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
echo Mounting root filesystem
mount -o defaults --ro -t ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd
echo Remounting devfs at correct place if necessary
handledevfs
umount /initrd/proc
 Creating filesystem with size 777KB and 176 inodes

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-02  9:12 Kjartan Reynir Hauksson
  2004-01-02 10:58 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-02  9:12 UTC (permalink / raw)
  To: linux-lvm





>note my patched initscripts does not care what the default alternative
>for lvm is (lvm1 or lvm2) but you might, so check and change it with the
>"update-alternatives --config" command if you have both rpm installed.

I noticed that lvm1 was loaded instead of lvm2 but when I check
update-alternatives --config lvm I see lvm2 used as default over lvm1.
Might this be causing my kernel panic (no init found).

-Kjartan

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2004-01-01 10:58 Kjartan Reynir Hauksson
  2004-01-01 12:49 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2004-01-01 10:58 UTC (permalink / raw)
  To: linux-lvm





hmmmmm..... I'm getting a different kernel panic, this time it tells me to
try and pass the init= option but I saw it managed to load the device
mapper.  Any gotchas you know of that I might be missing ?

>I using Mandrake 9.2 with mkinitrd 3.5.15.1 and a patched lilo 22.5.8
3.5.15.1?, you mean _MY_ mkinitrd and _MY_ patched lilo?
http://www.comedia.it/~bluca/cooker/lvm2
good, then i can help you

(i suppose you also installed the other stuff from there: lvm1 and lvm2
and initscripts)

>>your distro probably has an mkinitrd command, so you would need to patch
>>it to support lvm2 if it does not already.
just run mkinitrd -v -f /boot/initrd-2.4.22.img 2.4.22
(assuning it was a vanilla 2.4.22)

then you should have a block in your /etc/lilo.conf that looks like
this:
image=/boot/vmlinuz-2.4.22
        label=lvm2
        root=/dev/root/1
        initrd=/boot/initrd-2.4.22.img
        append="devfs=mount"
        read-only

>>you might also need to patch your sysinit boot script
>Could you be a little more specific regarding the sysinit boot scripts as
>it's probably the most confusing part of the process.

if you install the initscripts on my page it should just work
(note that i updated my page today)

note my patched initscripts does not care what the default alternative
for lvm is (lvm1 or lvm2) but you might, so check and change it with the
"update-alternatives --config" command if you have both rpm installed.

note2: if you want a mandrake patched kernel with support for lvm2
included go to: http://www.netikka.net/tmb/Cooker

--
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
 read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

^ permalink raw reply	[flat|nested] 27+ messages in thread
* Re: [linux-lvm] booting a dm+lvm2 kernel
@ 2003-12-31 18:46 Kjartan Reynir Hauksson
  2004-01-01  5:11 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2003-12-31 18:46 UTC (permalink / raw)
  To: linux-lvm





>are you running a particular distro? if so telling which one it is could
>be useful in gifing you the right hints.

I using Mandrake 9.2 with mkinitrd 3.5.15.1 and a patched lilo 22.5.8

>your distro probably has an mkinitrd command, so you would need to patch
>it to support lvm2 if it does not already.
>you might also need to patch your sysinit boot script

Could you be a little more specific regarding the sysinit boot scripts as
it's probably the most confusing part of the process.

>you will also need patching lilo to understand device-mapper, else it
>will not run anymore on your dm patched kernel (see
>http://www.saout.de/misc/)

 Thanks
-Kjartan

^ permalink raw reply	[flat|nested] 27+ messages in thread
* [linux-lvm] booting a dm+lvm2 kernel
@ 2003-12-30 21:21 Kjartan Reynir Hauksson
  2003-12-31  3:35 ` Luca Berra
  0 siblings, 1 reply; 27+ messages in thread
From: Kjartan Reynir Hauksson @ 2003-12-30 21:21 UTC (permalink / raw)
  To: linux-lvm





Hello all.

I've been scratching my head on this for a few days now.  I decided to to
migrate to kernel 2.6 but first I need to migrate from lvm1 to dm+lvm2
(from what I understand).  So I've allready patched a vanilla 2.4.22 kernel
with the device-mapper patch and with lvm2 support build into the kernel
and it compiled just fine. However since I'm running my root filesystem on
lvm I'm stuck on how to booth the sob.  I tried to add the a new kernel to
my lilo.conf using root=/dev/root/1 but all I get is kernel panic.  From
what I've read I nead to create an initrd image but thats where the docs
and previous posts get a little fuzzy.  So what are the next few steps for
me ?  Could someone shed some light on this because I've been googling for
a while now and I seem to be utterly stuck in the mud here :(

TIA
-Kjartan


---------------------------------------------------------------------------------------------------

Kjartan Reynir Hauksson
Kerfisstjóri
Orkustofnun
Sími: 569-6027/863-5912
e-mail: krh@os.is
--------------------------------------------------------------------------------------------------

http://www.os.is/disclaimer.html

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2004-01-05  7:32 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-03 11:34 [linux-lvm] booting a dm+lvm2 kernel Kjartan Reynir Hauksson
2004-01-05  7:32 ` Luca Berra
  -- strict thread matches above, loose matches on Subject: below --
2004-01-02 18:02 Kjartan Reynir Hauksson
2004-01-03  4:30 ` Luca Berra
2004-01-02 16:54 Kjartan Reynir Hauksson
2004-01-02 17:34 ` Luca Berra
2004-01-02 13:40 Kjartan Reynir Hauksson
2004-01-02 14:12 ` Luca Berra
2004-01-02 14:24   ` Bill Rugolsky Jr.
2004-01-02 16:11     ` Luca Berra
2004-01-02 13:03 Kjartan Reynir Hauksson
2004-01-02 13:15 ` Luca Berra
2004-01-02 11:37 Kjartan Reynir Hauksson
2004-01-02 12:07 ` Luca Berra
2004-01-02  9:12 Kjartan Reynir Hauksson
2004-01-02 10:58 ` Luca Berra
2004-01-01 10:58 Kjartan Reynir Hauksson
2004-01-01 12:49 ` Luca Berra
2004-01-01 15:42   ` Christophe Saout
2004-01-01 16:47     ` Luca Berra
2004-01-02  8:30       ` Christophe Saout
2004-01-01 17:40         ` Luca Berra
2004-01-01 17:50           ` Christophe Saout
2003-12-31 18:46 Kjartan Reynir Hauksson
2004-01-01  5:11 ` Luca Berra
2003-12-30 21:21 Kjartan Reynir Hauksson
2003-12-31  3:35 ` Luca Berra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox