linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
@ 2001-04-27  7:08 Evan Day
  2001-04-27 20:47 ` Luca Berra
  0 siblings, 1 reply; 12+ messages in thread
From: Evan Day @ 2001-04-27  7:08 UTC (permalink / raw)
  To: linux-lvm

I thought I had everything set up right...

I've got a system with two SCSI disks.  Currently the system is mostly
installed on /dev/sda using a straight ext2 setup.  I'm using GRUB as the
bootloader since LILO has been giving me problems.  Currently on kernel 2.4.3
using the lvm 0.9.1beta7 patches and lvm tools.

My intention is to mirror the disks using Linux software RAID, with 
/dev/sda1 and /dev/sdb1 as /dev/md0 (mounted as /boot) and /dev/sda4 and
/dev/sdb4 as /dev/md1, which will be VG00 and have the rest of the system
on it, with most everything using the reiserfs.

Right now, /dev/md0 is working as /boot (reiserfs), with the rest of the
system on /dev/sda (/dev/sda2 is root).  I've created /dev/vg00 and 
/dev/md1 (with /dev/sda4 failed) and built a new root logical volume on
/dev/vg00/lvol1.  This works fine and I can mount it on /mnt and copy 
/ over to it just fine, then edit /mnt/etc/fstab to put root on
/dev/vg00/lvol1.

I used lvmcreate_initrd to make /boot/initrd-lvm-2.4.3.gz, and can boot grub
with initrd just fine.  At boot time, it boots the kernel, loads the ram 
disk, runs /linuxrc and successfully activates /dev/vg00.  I have LVM, 
reiserfs, and, RAID-1 in the kernel (no modules).

After activating vg00 and umounting /proc (in initrd/linuxrc), the system 
dies:

Kernel panic: I have no root and I must scream!

I thought it might be that having the LV on the RAID was too complex, and 
tried creating a VG on a partition, but I still get the same result.  I've 
edited the linuxrc on the initrd and both vgdisplay and lvdisplay show the 
correct info.

The line from /etc/fstab

/dev/vg00/lvol1	/	reiserfs	defaults,errors=remount-ro 0 1
(tried formatting ext2 and it still fails)

Saw one other message on this dated April 9, 2001, but no apparent 
resolution.

HELP!

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27  7:08 [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream" Evan Day
@ 2001-04-27 20:47 ` Luca Berra
  2001-04-27 21:33   ` Goetz Bock
  0 siblings, 1 reply; 12+ messages in thread
From: Luca Berra @ 2001-04-27 20:47 UTC (permalink / raw)
  To: linux-lvm

On Fri, Apr 27, 2001 at 12:08:31AM -0700, Evan Day wrote:
> After activating vg00 and umounting /proc (in initrd/linuxrc), the system 
> dies:
> 
> Kernel panic: I have no root and I must scream!
> 
i use lilo not grub,
but try adding either
root=0x3a00
or 
root=/dev/vg01/lvol1

to the oprions you pass to the kernel.

L.


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

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

* RE: [linux-lvm] LVM on root, Kernel panic: "I have no root and I  must scream"
@ 2001-04-27 20:48 Day, Evan
  2001-04-27 21:11 ` Luca Berra
  0 siblings, 1 reply; 12+ messages in thread
From: Day, Evan @ 2001-04-27 20:48 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

I've tried both setting root=/dev/vg00/lvol1 and root=0x3a00 - neither
worked.  I'm probably just going to put / as the first device (including
/boot) on RAID-1 and make the rest of the system LVM.  I've spent too many
days trying to make root on LVM work and I need my system back...

Thanks for the tip, though
-Evan

-----Original Message-----
From: Luca Berra [mailto:bluca@comedia.it]
Sent: Friday, April 27, 2001 1:48 PM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and
I must scream"


On Fri, Apr 27, 2001 at 12:08:31AM -0700, Evan Day wrote:
> After activating vg00 and umounting /proc (in initrd/linuxrc), the system 
> dies:
> 
> Kernel panic: I have no root and I must scream!
> 
i use lilo not grub,
but try adding either
root=0x3a00
or 
root=/dev/vg01/lvol1

to the oprions you pass to the kernel.

L.


-- 
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

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 20:48 Day, Evan
@ 2001-04-27 21:11 ` Luca Berra
  0 siblings, 0 replies; 12+ messages in thread
From: Luca Berra @ 2001-04-27 21:11 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

On Fri, Apr 27, 2001 at 01:48:23PM -0700, Day, Evan wrote:
> I've tried both setting root=/dev/vg00/lvol1 and root=0x3a00 - neither
> worked.  I'm probably just going to put / as the first device (including
> /boot) on RAID-1 and make the rest of the system LVM.  I've spent too many
> days trying to make root on LVM work and I need my system back...
> 
can you send me some more details on what happens,
a log would be great if you can log on a serial device

it *should* work

here is what i have (i dun use lvmcreate_initrd)

[vc/2]bluca@Moskowskaya:~% df
/dev/vg01/lvol1         253920     60104    180712  25% /
/dev/md/0                29621     10798     17294  38% /boot
/dev/vg01/lvol3        2064208   1675988    283364  86% /usr
/dev/vg01/lvol4         507848    255632    226004  53% /var
/dev/vg01/lvol5         253920      9428    231388   4% /tmp
/dev/vg01/lvol6        2064208   1673716    285636  85% /opt
/dev/vg01/lvol7        4128448   3137540    781196  80% /home

[vc/3]root@Moskowskaya:~# cat /etc/lilo.conf
boot = /dev/md/0
timeout = 50
prompt
root = 0x3a00 #/dev/vg01/lvol1
read-only
map = /boot/map
install=/boot/boot.b
default = linux
optional
append = "panic=60 devfs=symlinks video=tdfx:800x600-32@72 root=/dev/vg01/lvol1"
vga=normal
restricted

image = /boot/vmlinuz-2.4.3-ac3
label = 243ac3
initrd = /boot/initrd-2.4.3-ac3
alias = linux

[vc/3]root@Moskowskaya:~# cat /boot/initrd-source/linuxrc
#!/bin/sh -x
mount -t proc /proc /proc
echo "" > /proc/sys/kernel/modprobe
insmod -k /lib/modules/*/kernel/drivers/scsi/aic7xxx/aic7xxx.o aic7xxx=verbose
insmod -k /lib/modules/*/kernel/drivers/md/raid1.o
insmod -k /lib/modules/*/kernel/drivers/md/xor.o
insmod -k /lib/modules/*/kernel/drivers/md/raid5.o
raidstart -a
vgchange -a y
sulogin -t 10
umount /proc

[vc/3]root@Moskowskaya:~# find /boot/initrd-source -type f
/boot/initrd-source/bin/BusyBox
/boot/initrd-source/bin/insmod
/boot/initrd-source/bin/raidstart
/boot/initrd-source/bin/sulogin
/boot/initrd-source/bin/vgchange
/boot/initrd-source/bin/vgscan
/boot/initrd-source/etc/lvmtab.d/vg01
/boot/initrd-source/etc/passwd
/boot/initrd-source/etc/raidtab
/boot/initrd-source/lib/ld-linux.so.2
/boot/initrd-source/lib/libc.so.6
/boot/initrd-source/lib/libcrypt.so.1
/boot/initrd-source/lib/liblvm-11.so.0
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/block/floppy.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid1.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid5.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/xor.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/aic7xxx/aic7xxx.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/sym53c8xx.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/fs/reiserfs/reiserfs.o
/boot/initrd-source/linuxrc

L.

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

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 20:47 ` Luca Berra
@ 2001-04-27 21:33   ` Goetz Bock
  0 siblings, 0 replies; 12+ messages in thread
From: Goetz Bock @ 2001-04-27 21:33 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]


On Fri, Apr 27 '01 at 22:47, Luca Berra wrote:
> > After activating vg00 and umounting /proc (in initrd/linuxrc), the system 
> > dies:
> > 
> > Kernel panic: I have no root and I must scream!
> > 
> i use lilo not grub,
Me too ;-)

IMNSHO the problem is neither lilo nor grub.

The kernel does not know what device to boot from, check ther kernele
boot device (rdev /boot/my_kernel) after running lilo / grub. Probably
the device id changes between boots. use rdev to explicitely set it to
/dev/vg00/root.

Cu,
    Goetz.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* RE: [linux-lvm] LVM on root, Kernel panic: "I have no root and I  must scream"
@ 2001-04-27 21:39 Day, Evan
  2001-04-27 22:00 ` AJ Lewis
  2001-04-28  7:59 ` Luca Berra
  0 siblings, 2 replies; 12+ messages in thread
From: Day, Evan @ 2001-04-27 21:39 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

I hosed things up good at lunch and started a reinstall before I went back
to work.  I'll finish it up as soon as I get home and see what I can come up
with.  The only thing I see different in your linuxrc is the raidstart -a.
I'm not doing that, and didn't think it would be necessary (my RAIDS are
type fd in the partmap and have persistent-superblock 1 in /etc/raidtab).

Except for using GRUB instead of LILO (and kernel modules for raid/lvm), my
setup looks almost identical to yours.  I'm not using devfs, but that
shouldn't matter.

What I really don't get is that I can put a mount /dev/vg00/lvol1 in
/linuxrc and it mounts!  I can also boot with a root of /dev/sda2 (old root
partition), with /etc/fstab pointing / at /dev/vg00/lvol1 (from sda2) and it
mounts okay.

I'll have to see if I can run a serial cable from the linux machine to
another PC to capture logs.

Thanks for the help
-Evan

-----Original Message-----
From: Luca Berra [mailto:bluca@comedia.it]
Sent: Friday, April 27, 2001 2:12 PM
To: 'linux-lvm@sistina.com'
Subject: Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and
I must scream"


On Fri, Apr 27, 2001 at 01:48:23PM -0700, Day, Evan wrote:
> I've tried both setting root=/dev/vg00/lvol1 and root=0x3a00 - neither
> worked.  I'm probably just going to put / as the first device (including
> /boot) on RAID-1 and make the rest of the system LVM.  I've spent too many
> days trying to make root on LVM work and I need my system back...
> 
can you send me some more details on what happens,
a log would be great if you can log on a serial device

it *should* work

here is what i have (i dun use lvmcreate_initrd)

[vc/2]bluca@Moskowskaya:~% df
/dev/vg01/lvol1         253920     60104    180712  25% /
/dev/md/0                29621     10798     17294  38% /boot
/dev/vg01/lvol3        2064208   1675988    283364  86% /usr
/dev/vg01/lvol4         507848    255632    226004  53% /var
/dev/vg01/lvol5         253920      9428    231388   4% /tmp
/dev/vg01/lvol6        2064208   1673716    285636  85% /opt
/dev/vg01/lvol7        4128448   3137540    781196  80% /home

[vc/3]root@Moskowskaya:~# cat /etc/lilo.conf
boot = /dev/md/0
timeout = 50
prompt
root = 0x3a00 #/dev/vg01/lvol1
read-only
map = /boot/map
install=/boot/boot.b
default = linux
optional
append = "panic=60 devfs=symlinks video=tdfx:800x600-32@72
root=/dev/vg01/lvol1"
vga=normal
restricted

image = /boot/vmlinuz-2.4.3-ac3
label = 243ac3
initrd = /boot/initrd-2.4.3-ac3
alias = linux

[vc/3]root@Moskowskaya:~# cat /boot/initrd-source/linuxrc
#!/bin/sh -x
mount -t proc /proc /proc
echo "" > /proc/sys/kernel/modprobe
insmod -k /lib/modules/*/kernel/drivers/scsi/aic7xxx/aic7xxx.o
aic7xxx=verbose
insmod -k /lib/modules/*/kernel/drivers/md/raid1.o
insmod -k /lib/modules/*/kernel/drivers/md/xor.o
insmod -k /lib/modules/*/kernel/drivers/md/raid5.o
raidstart -a
vgchange -a y
sulogin -t 10
umount /proc

[vc/3]root@Moskowskaya:~# find /boot/initrd-source -type f
/boot/initrd-source/bin/BusyBox
/boot/initrd-source/bin/insmod
/boot/initrd-source/bin/raidstart
/boot/initrd-source/bin/sulogin
/boot/initrd-source/bin/vgchange
/boot/initrd-source/bin/vgscan
/boot/initrd-source/etc/lvmtab.d/vg01
/boot/initrd-source/etc/passwd
/boot/initrd-source/etc/raidtab
/boot/initrd-source/lib/ld-linux.so.2
/boot/initrd-source/lib/libc.so.6
/boot/initrd-source/lib/libcrypt.so.1
/boot/initrd-source/lib/liblvm-11.so.0
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/block/floppy.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid1.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid5.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/xor.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/aic7xxx/aic7xx
x.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/sym53c8xx.o
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/fs/reiserfs/reiserfs.o
/boot/initrd-source/linuxrc

L.

-- 
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

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 21:39 Day, Evan
@ 2001-04-27 22:00 ` AJ Lewis
  2001-04-28  7:59 ` Luca Berra
  1 sibling, 0 replies; 12+ messages in thread
From: AJ Lewis @ 2001-04-27 22:00 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 5650 bytes --]

On Fri, Apr 27, 2001 at 02:39:12PM -0700, Day, Evan wrote:
> I hosed things up good at lunch and started a reinstall before I went back
> to work.  I'll finish it up as soon as I get home and see what I can come up
> with.  The only thing I see different in your linuxrc is the raidstart -a.
> I'm not doing that, and didn't think it would be necessary (my RAIDS are
> type fd in the partmap and have persistent-superblock 1 in /etc/raidtab).
> 
> Except for using GRUB instead of LILO (and kernel modules for raid/lvm), my
> setup looks almost identical to yours.  I'm not using devfs, but that
> shouldn't matter.

I have seen problems with GRUB that are fixed by using LILO.  I'm not sure
what the issues are.  GRUB seems to be a lot more touchy though.  Have you
tried using LILO?

> What I really don't get is that I can put a mount /dev/vg00/lvol1 in
> /linuxrc and it mounts!  I can also boot with a root of /dev/sda2 (old root
> partition), with /etc/fstab pointing / at /dev/vg00/lvol1 (from sda2) and it
> mounts okay.
> 
> I'll have to see if I can run a serial cable from the linux machine to
> another PC to capture logs.
> 
> Thanks for the help
> -Evan
> 
> -----Original Message-----
> From: Luca Berra [mailto:bluca@comedia.it]
> Sent: Friday, April 27, 2001 2:12 PM
> To: 'linux-lvm@sistina.com'
> Subject: Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and
> I must scream"
> 
> 
> On Fri, Apr 27, 2001 at 01:48:23PM -0700, Day, Evan wrote:
> > I've tried both setting root=/dev/vg00/lvol1 and root=0x3a00 - neither
> > worked.  I'm probably just going to put / as the first device (including
> > /boot) on RAID-1 and make the rest of the system LVM.  I've spent too many
> > days trying to make root on LVM work and I need my system back...
> > 
> can you send me some more details on what happens,
> a log would be great if you can log on a serial device
> 
> it *should* work
> 
> here is what i have (i dun use lvmcreate_initrd)
> 
> [vc/2]bluca@Moskowskaya:~% df
> /dev/vg01/lvol1         253920     60104    180712  25% /
> /dev/md/0                29621     10798     17294  38% /boot
> /dev/vg01/lvol3        2064208   1675988    283364  86% /usr
> /dev/vg01/lvol4         507848    255632    226004  53% /var
> /dev/vg01/lvol5         253920      9428    231388   4% /tmp
> /dev/vg01/lvol6        2064208   1673716    285636  85% /opt
> /dev/vg01/lvol7        4128448   3137540    781196  80% /home
> 
> [vc/3]root@Moskowskaya:~# cat /etc/lilo.conf
> boot = /dev/md/0
> timeout = 50
> prompt
> root = 0x3a00 #/dev/vg01/lvol1
> read-only
> map = /boot/map
> install=/boot/boot.b
> default = linux
> optional
> append = "panic=60 devfs=symlinks video=tdfx:800x600-32@72
> root=/dev/vg01/lvol1"
> vga=normal
> restricted
> 
> image = /boot/vmlinuz-2.4.3-ac3
> label = 243ac3
> initrd = /boot/initrd-2.4.3-ac3
> alias = linux
> 
> [vc/3]root@Moskowskaya:~# cat /boot/initrd-source/linuxrc
> #!/bin/sh -x
> mount -t proc /proc /proc
> echo "" > /proc/sys/kernel/modprobe
> insmod -k /lib/modules/*/kernel/drivers/scsi/aic7xxx/aic7xxx.o
> aic7xxx=verbose
> insmod -k /lib/modules/*/kernel/drivers/md/raid1.o
> insmod -k /lib/modules/*/kernel/drivers/md/xor.o
> insmod -k /lib/modules/*/kernel/drivers/md/raid5.o
> raidstart -a
> vgchange -a y
> sulogin -t 10
> umount /proc
> 
> [vc/3]root@Moskowskaya:~# find /boot/initrd-source -type f
> /boot/initrd-source/bin/BusyBox
> /boot/initrd-source/bin/insmod
> /boot/initrd-source/bin/raidstart
> /boot/initrd-source/bin/sulogin
> /boot/initrd-source/bin/vgchange
> /boot/initrd-source/bin/vgscan
> /boot/initrd-source/etc/lvmtab.d/vg01
> /boot/initrd-source/etc/passwd
> /boot/initrd-source/etc/raidtab
> /boot/initrd-source/lib/ld-linux.so.2
> /boot/initrd-source/lib/libc.so.6
> /boot/initrd-source/lib/libcrypt.so.1
> /boot/initrd-source/lib/liblvm-11.so.0
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/block/floppy.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid1.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid5.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/xor.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/aic7xxx/aic7xx
> x.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/sym53c8xx.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/fs/reiserfs/reiserfs.o
> /boot/initrd-source/linuxrc
> 
> L.
> 
> -- 
> 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
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-379-3951
1313 5th St SE, Suite 111              Fax:    612-379-3952
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
To know recursion, you must first know recursion.
-----End Obligatory Humorous Quote------------------------------------------

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* RE: [linux-lvm] LVM on root, Kernel panic: "I have no root and I  must scream"
@ 2001-04-27 22:06 Day, Evan
  2001-04-27 23:40 ` Goetz Bock
  0 siblings, 1 reply; 12+ messages in thread
From: Day, Evan @ 2001-04-27 22:06 UTC (permalink / raw)
  To: 'linux-lvm@sistina.com'

Using LILO (21.5 from the stable Debian dist) is sketchy.  Sometimes it'll
boot, other times it just prints "LI" on the screen and locks (or, even
better, starts dumping screen dumps to the printer).  I think Iwas a bit
confused because it turns out that /dev/sdb is scsi id 6 (boot disk) and
/dev/sda is scsi id 5, even though the SCSI BIOS reports id 6 as HD0 and id
5 as HD1.  I have a pair of IDE drives on the system, too, and LILO always
complains that /dev/sdb isn't the first disk... As long as I'm reloading
(again) I'll give it another try.

I won't even mention the evening I wasted trying to figure out why initrd
wasn't working before finally going back to the kernel and remembering to
enable it there... ;)

-Evan

-----Original Message-----
From: AJ Lewis [mailto:lewis@sistina.com]
Sent: Friday, April 27, 2001 3:00 PM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and
I must scream"


On Fri, Apr 27, 2001 at 02:39:12PM -0700, Day, Evan wrote:
> I hosed things up good at lunch and started a reinstall before I went back
> to work.  I'll finish it up as soon as I get home and see what I can come
up
> with.  The only thing I see different in your linuxrc is the raidstart -a.
> I'm not doing that, and didn't think it would be necessary (my RAIDS are
> type fd in the partmap and have persistent-superblock 1 in /etc/raidtab).
> 
> Except for using GRUB instead of LILO (and kernel modules for raid/lvm),
my
> setup looks almost identical to yours.  I'm not using devfs, but that
> shouldn't matter.

I have seen problems with GRUB that are fixed by using LILO.  I'm not sure
what the issues are.  GRUB seems to be a lot more touchy though.  Have you
tried using LILO?

> What I really don't get is that I can put a mount /dev/vg00/lvol1 in
> /linuxrc and it mounts!  I can also boot with a root of /dev/sda2 (old
root
> partition), with /etc/fstab pointing / at /dev/vg00/lvol1 (from sda2) and
it
> mounts okay.
> 
> I'll have to see if I can run a serial cable from the linux machine to
> another PC to capture logs.
> 
> Thanks for the help
> -Evan
> 
> -----Original Message-----
> From: Luca Berra [mailto:bluca@comedia.it]
> Sent: Friday, April 27, 2001 2:12 PM
> To: 'linux-lvm@sistina.com'
> Subject: Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and
> I must scream"
> 
> 
> On Fri, Apr 27, 2001 at 01:48:23PM -0700, Day, Evan wrote:
> > I've tried both setting root=/dev/vg00/lvol1 and root=0x3a00 - neither
> > worked.  I'm probably just going to put / as the first device (including
> > /boot) on RAID-1 and make the rest of the system LVM.  I've spent too
many
> > days trying to make root on LVM work and I need my system back...
> > 
> can you send me some more details on what happens,
> a log would be great if you can log on a serial device
> 
> it *should* work
> 
> here is what i have (i dun use lvmcreate_initrd)
> 
> [vc/2]bluca@Moskowskaya:~% df
> /dev/vg01/lvol1         253920     60104    180712  25% /
> /dev/md/0                29621     10798     17294  38% /boot
> /dev/vg01/lvol3        2064208   1675988    283364  86% /usr
> /dev/vg01/lvol4         507848    255632    226004  53% /var
> /dev/vg01/lvol5         253920      9428    231388   4% /tmp
> /dev/vg01/lvol6        2064208   1673716    285636  85% /opt
> /dev/vg01/lvol7        4128448   3137540    781196  80% /home
> 
> [vc/3]root@Moskowskaya:~# cat /etc/lilo.conf
> boot = /dev/md/0
> timeout = 50
> prompt
> root = 0x3a00 #/dev/vg01/lvol1
> read-only
> map = /boot/map
> install=/boot/boot.b
> default = linux
> optional
> append = "panic=60 devfs=symlinks video=tdfx:800x600-32@72
> root=/dev/vg01/lvol1"
> vga=normal
> restricted
> 
> image = /boot/vmlinuz-2.4.3-ac3
> label = 243ac3
> initrd = /boot/initrd-2.4.3-ac3
> alias = linux
> 
> [vc/3]root@Moskowskaya:~# cat /boot/initrd-source/linuxrc
> #!/bin/sh -x
> mount -t proc /proc /proc
> echo "" > /proc/sys/kernel/modprobe
> insmod -k /lib/modules/*/kernel/drivers/scsi/aic7xxx/aic7xxx.o
> aic7xxx=verbose
> insmod -k /lib/modules/*/kernel/drivers/md/raid1.o
> insmod -k /lib/modules/*/kernel/drivers/md/xor.o
> insmod -k /lib/modules/*/kernel/drivers/md/raid5.o
> raidstart -a
> vgchange -a y
> sulogin -t 10
> umount /proc
> 
> [vc/3]root@Moskowskaya:~# find /boot/initrd-source -type f
> /boot/initrd-source/bin/BusyBox
> /boot/initrd-source/bin/insmod
> /boot/initrd-source/bin/raidstart
> /boot/initrd-source/bin/sulogin
> /boot/initrd-source/bin/vgchange
> /boot/initrd-source/bin/vgscan
> /boot/initrd-source/etc/lvmtab.d/vg01
> /boot/initrd-source/etc/passwd
> /boot/initrd-source/etc/raidtab
> /boot/initrd-source/lib/ld-linux.so.2
> /boot/initrd-source/lib/libc.so.6
> /boot/initrd-source/lib/libcrypt.so.1
> /boot/initrd-source/lib/liblvm-11.so.0
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/block/floppy.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid1.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/raid5.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/md/xor.o
>
/boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/aic7xxx/aic7xx
> x.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/drivers/scsi/sym53c8xx.o
> /boot/initrd-source/lib/modules/2.4.3-ac3/kernel/fs/reiserfs/reiserfs.o
> /boot/initrd-source/linuxrc
> 
> L.
> 
> -- 
> 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
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm

-- 
AJ Lewis
Sistina Software Inc.                  Voice:  612-379-3951
1313 5th St SE, Suite 111              Fax:    612-379-3952
Minneapolis, MN 55414                  E-Mail: lewis@sistina.com
http://www.sistina.com

Current GPG fingerprint = 3B5F 6011 5216 76A5 2F6B  52A0 941E 1261 0029 2648
Get my key at: http://www.sistina.com/~lewis/gpgkey
 (Unfortunately, the PKS-type keyservers do not work with multiple sub-keys)

-----Begin Obligatory Humorous Quote----------------------------------------
To know recursion, you must first know recursion.
-----End Obligatory Humorous Quote------------------------------------------

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 22:06 Day, Evan
@ 2001-04-27 23:40 ` Goetz Bock
  2001-04-29 19:18   ` Terje Kvernes
  0 siblings, 1 reply; 12+ messages in thread
From: Goetz Bock @ 2001-04-27 23:40 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 898 bytes --]


On Fri, Apr 27 '01 at 15:06, Day, Evan wrote:
> Using LILO (21.5 from the stable Debian dist) is sketchy.  Sometimes it'll
> boot, other times it just prints "LI" on the screen [ ... ]
Whilt I don't know if this I true, I once read that the letters of LILO
tells you what exactly is broken with your setup.
> I think I was a bit confused because it turns out that /dev/sdb is scsi 
> id 6 (boot disk) and /dev/sda is scsi id 5, even though the SCSI BIOS 
> reports id 6 as HD0 and id 5 as HD1.
You're asking for trouble here. Why don't you fix your disk's IDs to be 
0 (the boot disk) and 1 (the other) ...
> I have a pair of IDE drives on the system, too, and LILO always
... or simply boot from the IDE disks?
> complains that /dev/sdb isn't the first disk... 
There is an option for LILO to tell it what the BIOS assumes each disk
is. (ReadTheFineManual ;-))

Cu,
    Goetz.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 21:39 Day, Evan
  2001-04-27 22:00 ` AJ Lewis
@ 2001-04-28  7:59 ` Luca Berra
  2001-04-28 17:43   ` Evan Day
  1 sibling, 1 reply; 12+ messages in thread
From: Luca Berra @ 2001-04-28  7:59 UTC (permalink / raw)
  To: linux-lvm

On Fri, Apr 27, 2001 at 02:39:12PM -0700, Day, Evan wrote:
> What I really don't get is that I can put a mount /dev/vg00/lvol1 in
> /linuxrc and it mounts!  I can also boot with a root of /dev/sda2 (old root
ok
trick 'im

at the end of linuxrc do
mount /dev/vg00/lvol1 new_root
cd new_root
pivot_root . initrd
exec chroot . sbin/init

be sure to create /initrd dir on your root fs


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

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must  scream"
  2001-04-28  7:59 ` Luca Berra
@ 2001-04-28 17:43   ` Evan Day
  0 siblings, 0 replies; 12+ messages in thread
From: Evan Day @ 2001-04-28 17:43 UTC (permalink / raw)
  To: linux-lvm

A quick thanks to everyone on the list who offered tips & advice for making
my setup work.  I finally got everything loaded, configured, partitioned,
mirrored, and LVMed!

Problem 1: needed to use install-mbr to put an MBR on /dev/sda and /dev/sdb.
Problem 2: needed to upgrade LILO

Now I have the install-mbr MBR booting, which gets me to LILO (21.7) 
installed on /dev/md0 (/dev/sda1, /dev/sdb1).  The older version of LILO I 
was using (21.5) didn't seem to work with md devices (I recall reading about
that somewhere, too).

Running Kernel 2.4.4 w/ LVM 0.9.1b7 (had to make a minor change to lvm.c to 
get the kernel to compile):

day@kirk:~$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/vg00/lvol1         131064    102124     28940  78% /
/dev/md0                 48056     38656      9400  80% /boot
/dev/vg00/lvol2        1048540    551088    497452  53% /usr
/dev/vg00/lvol3         262132    130240    131892  50% /var
/dev/vg00/lvol4         262132     32840    229292  13% /tmp
/dev/vg00/lvol5         262132     32840    229292  13% /hom

kirk:~# fdisk /dev/sda

Command (m for help): p

Disk /dev/sda: 255 heads, 63 sectors, 522 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1   *         1         6     48163+  fd  Linux raid autodetect
/dev/sda2             7        23    136552+  82  Linux swap
/dev/sda3            24        40    136552+  82  Linux swap
/dev/sda4            41       522   3871665   fd  Linux raid autodetect

(/dev/sdb is the same)

kirk:~# cat /etc/lilo.conf
lba32
boot=/dev/md0
root=/dev/hda2
install=/boot/boot.b
map=/boot/map
delay=20
vga=normal
default=lvm-linux

image=/vmlinuz
        label=linux
        read-only
        initrd=/boot/initrd-lvm-2.4.4.gz

image=/vmlinuz.lvm
        label=lvm-linux
        initrd=/boot/initrd-lvm-2.4.4.gz
        root=/dev/vg00/lvol1
        read-only

image=/vmlinuz.old
        label=linux-old
        read-only
        optional

Thanks again!
-Evan

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

* Re: [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream"
  2001-04-27 23:40 ` Goetz Bock
@ 2001-04-29 19:18   ` Terje Kvernes
  0 siblings, 0 replies; 12+ messages in thread
From: Terje Kvernes @ 2001-04-29 19:18 UTC (permalink / raw)
  To: linux-lvm

Goetz Bock <bock@blacknet.de> writes:

> Whilt I don't know if this I true, I once read that the letters of
> LILO tells you what exactly is broken with your setup.

  they do.

  <url: http://www.fan.nb.ca/~aa126/troubleshoot-LILO.html >

  why this isn't in the LILO-howto, I don't know.

-- 
Terje

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

end of thread, other threads:[~2001-04-29 19:18 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-27  7:08 [linux-lvm] LVM on root, Kernel panic: "I have no root and I must scream" Evan Day
2001-04-27 20:47 ` Luca Berra
2001-04-27 21:33   ` Goetz Bock
  -- strict thread matches above, loose matches on Subject: below --
2001-04-27 20:48 Day, Evan
2001-04-27 21:11 ` Luca Berra
2001-04-27 21:39 Day, Evan
2001-04-27 22:00 ` AJ Lewis
2001-04-28  7:59 ` Luca Berra
2001-04-28 17:43   ` Evan Day
2001-04-27 22:06 Day, Evan
2001-04-27 23:40 ` Goetz Bock
2001-04-29 19:18   ` Terje Kvernes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).