View previous topic :: View next topic |
Author |
Message |
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Wed Jun 02, 2004 11:41 am Post subject: sata boot problems using iswraid |
|
|
I am running two sata drives in software raid. After compiling the kernel and trying to boot, it hans up at trying to mount the root device.
The error says Root block device is unspecified or not detected.
I compiled the kernel with the iswraid patch and the libata patch.
my lilo.conf looks like:
Code: | $Header: /home/cvsroot/gentoo-x86/sys-boot/lilo/files/lilo.conf,v 1.1 2003/1$
# Author: Ultanium
# Start LILO global section
# Faster, but won't work on all systems:
compact
# Should work for most systems, and do not have the sector limit:
lba32
# If lba32 do not work, use linear:
#linear
# MBR to install LILO to:
boot = /dev/ataraid/d0
map = /boot/.map
disk=/dev/sda
inaccessible
disk=/dev/sdb
inaccessible
# If you are having problems booting from a hardware raid-array
# or have a unusual setup, try this:
#disk=/dev/ataraid/d0 bios=0x80 # see this as the first BIOS disk
#disk=/dev/sda bios=0x81 # see this as the second BIOS disk
#disk=/dev/hda bios=0x82 # see this as the third BIOS disk
# Here you can select the secondary loader to install. A few
# examples is:
# boot-text.b
# boot-menu.b
# boot-bmp.b
install = /boot/boot-menu.b # Note that for lilo-22.5.5 or later you
# do not need boot-{text,menu,bmp}.b in
# /boot, as they are linked into the lilo
# binary.
menu-scheme=Wb
prompt
# If you always want to see the prompt with a 15 second timeout:
timeout=150
delay = 50
# Normal VGA console
#vga = normal
# VESA console with size 1024x768x16:
vga = 0x317
# End LILO global section
# Linux bootable partition config begins
image = /boot/kernel-2.4.25-gentoo-r3
root = /dev/ram0
ramdisk=8192
#root = /devices/discs/disc0/part3
label = Gentoo
append="init=/linuxrc"
read-only # read-only for checking
initrd=/boot/initrd-2.4.25-gentoo-r3
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/ataraid/d0p1
#other = /devices/discs/disc0/part1
label = Windows
# DOS bootable partition config ends
|
my fstab looks like:
Code: |
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/ataraid/disk0/part2 /boot ext2 noauto,noatime 1 1
/dev/ataraid/disk0/part4 / reiserfs noatime 0 0
/dev/ataraid/disk0/part3 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/dvd auto noauto,ro 0 0
/dev/cdroms/cdrom1 /mnt/cdr auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
none /dev devfs defaults 0 0
none /sys sysfs defaults 0 0
|
any help would be appreciated
Last edited by timere969 on Thu Jun 10, 2004 7:38 pm; edited 1 time in total |
|
Back to top |
|
|
thechris Veteran
Joined: 12 Oct 2003 Posts: 1203
|
Posted: Wed Jun 02, 2004 4:12 pm Post subject: |
|
|
i've tried ataraid before. its buggy. firstly, make sure which device is what. on my last system, /dev/ataraid/disc0/disc got mapped to /dev/hde, but i couldn't write to hde's MBR becasue lilo wouldn't let me, and i couldn't write that the drive wasn't /dev/ataraid/disc0/disc on that device either. every time i booted it said /dev/ataraid/disc0/disc wasn't there. then i would type in /dev/hde and all would be fine.
in fstab are you sure it is "disk" and not "disc"?
did you do:
mkdir /mnt/gentoo/dev
mout -o bind /dev /mnt/gentoo/dev |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Thu Jun 03, 2004 10:17 am Post subject: |
|
|
thanks, i hadn't noticed the disk to disc error, i'll give it a try |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Fri Jun 04, 2004 12:44 pm Post subject: |
|
|
It looks like the initrd is not loading the iswraid, i am using genkernel to compile.
Writing to the MBR is no problem, I just can't get to a regular boot.
Is there any way to edit the initrd to include iswraid.o? |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Fri Jun 04, 2004 9:22 pm Post subject: |
|
|
timere969 wrote: | It looks like the initrd is not loading the iswraid, i am using genkernel to compile.
Writing to the MBR is no problem, I just can't get to a regular boot.
Is there any way to edit the initrd to include iswraid.o? |
Why not build a new one. I've seen posts on the forum that detail how to go about that. This is one I think:
https://forums.gentoo.org/viewtopic.php?p=796206#796206 _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Sun Jun 06, 2004 7:49 am Post subject: |
|
|
I just finished building today and the module now loads up.
I now get an error that says
Quote: | iswraid: probed 0 scsi disks, found 0 iswraid disks |
I know I have iswraid because that is waht loads on the bootable cd.
I think it said something about changing the parameters at boot.
If anyone could help, I would appreciate it _________________ Conjuncta virtuti fortuna |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Thu Jun 10, 2004 7:37 pm Post subject: |
|
|
After talking to the driver creator for quite some time i have got the raid detected by iswraid then immediately the system hangs after giving me.
for an initrd setup
Code: | Mounting /proc filesystem
> Creating block-devices
> failed to create /dev/ataraid/disc0/disc
> failed to create /dev/ataraid/disc0/part1
> failed to create /dev/ataraid/disc0/part2
> failed to create /dev/ataraid/disc0/part3
> failed to create /dev/ataraid/disc0/part4
> failed to create /dev/scsi/host0/bus0/target0/lun0/disc
> failed to create /dev/scsi/host0/bus0/target0/lun0/part1
> failed to create /dev/scsi/host0/bus0/target0/lun0/part2
> failed to create /dev/scsi/host0/bus0/target0/lun0/part3
> failed to create /dev/scsi/host0/bus0/target0/lun0/part4
> failed to create /dev/scsi/host0/bus0/target0/lun0/disc |
and this for a built into the kernel setup
Code: | Unable to handle kernel NULL pointer dereference at virtual address 00000004
printing eip:
c015f967
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0060:[<c015f967>] Not tainted
EFLAGS: 00010203
EIP is at mpage_readpages+0x47/0x140
eax: c17d5954 ebx: 00000000 ecx: dff89c30 edx: dff89c30
esi: 00000007 edi: 00000000 ebp: dff89c30 esp: dff89b1c
ds: 0068 es: 0068 ss: 0068
Process swapper (pid: 1, threadinfo=dff88000 task=c151e040) |
I have no idea what all this means. After cruising around the forum and the internet, the guilty part could either be devfs or the reiserfs not talking to the ataraid.
If somebody could point me in the right direction i'd appreciate it. _________________ Conjuncta virtuti fortuna |
|
Back to top |
|
|
gaz Tux's lil' helper
Joined: 12 Oct 2002 Posts: 126
|
Posted: Sat Jun 12, 2004 2:31 am Post subject: |
|
|
timere969 wrote: | I just finished building today and the module now loads up.
I now get an error that says
Quote: | iswraid: probed 0 scsi disks, found 0 iswraid disks |
I know I have iswraid because that is waht loads on the bootable cd.
I think it said something about changing the parameters at boot.
If anyone could help, I would appreciate it |
more than likely this is cause by the iswraid function being called before the scsi part of the kernel which detects the disk, if these are in initrd you may need to order it so the scsi-disk module is loaded first. (so the disks are initialised for iswraid to detect them) |
|
Back to top |
|
|
gaz Tux's lil' helper
Joined: 12 Oct 2002 Posts: 126
|
Posted: Sat Jun 12, 2004 2:32 am Post subject: |
|
|
timere969 wrote: | After talking to the driver creator for quite some time i have got the raid detected by iswraid then immediately the system hangs after giving me.
for an initrd setup
Code: | Mounting /proc filesystem
> Creating block-devices
> failed to create /dev/ataraid/disc0/disc
> failed to create /dev/ataraid/disc0/part1
> failed to create /dev/ataraid/disc0/part2
> failed to create /dev/ataraid/disc0/part3
> failed to create /dev/ataraid/disc0/part4
> failed to create /dev/scsi/host0/bus0/target0/lun0/disc
> failed to create /dev/scsi/host0/bus0/target0/lun0/part1
> failed to create /dev/scsi/host0/bus0/target0/lun0/part2
> failed to create /dev/scsi/host0/bus0/target0/lun0/part3
> failed to create /dev/scsi/host0/bus0/target0/lun0/part4
> failed to create /dev/scsi/host0/bus0/target0/lun0/disc |
and this for a built into the kernel setup
Code: | Unable to handle kernel NULL pointer dereference at virtual address 00000004
printing eip:
c015f967
*pde = 00000000
Oops: 0000
CPU: 0
EIP: 0060:[<c015f967>] Not tainted
EFLAGS: 00010203
EIP is at mpage_readpages+0x47/0x140
eax: c17d5954 ebx: 00000000 ecx: dff89c30 edx: dff89c30
esi: 00000007 edi: 00000000 ebp: dff89c30 esp: dff89b1c
ds: 0068 es: 0068 ss: 0068
Process swapper (pid: 1, threadinfo=dff88000 task=c151e040) |
I have no idea what all this means. After cruising around the forum and the internet, the guilty part could either be devfs or the reiserfs not talking to the ataraid.
If somebody could point me in the right direction i'd appreciate it. |
looks like a problem with devfs |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Sat Jun 12, 2004 11:09 am Post subject: |
|
|
I got the system started up and am in the gentoo environment. Now I just have to do a little tweeking to get the system working properly.
Thanks for everybodies help. _________________ Conjuncta virtuti fortuna |
|
Back to top |
|
|
gaz Tux's lil' helper
Joined: 12 Oct 2002 Posts: 126
|
Posted: Thu Jun 24, 2004 6:33 am Post subject: |
|
|
timere969 wrote: | I got the system started up and am in the gentoo environment. Now I just have to do a little tweeking to get the system working properly.
Thanks for everybodies help. |
Would you be able to post what stepts you took to you get your system working? Just incase someone has the same problems in the future |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Fri Jun 25, 2004 8:08 pm Post subject: |
|
|
The trick is to not enable the high mem support in the kernel. It conflicts with the iswraid driver. _________________ Conjuncta virtuti fortuna |
|
Back to top |
|
|
serendipity n00b
Joined: 05 Jun 2004 Posts: 69
|
|
Back to top |
|
|
lagrima Apprentice
Joined: 11 Feb 2004 Posts: 199 Location: Whorenge County
|
Posted: Mon Jul 26, 2004 5:47 am Post subject: |
|
|
if you disable high mem then you wont be able to take advantage of ram more than 1 gb ? im assuming im a noob with a lot of this kernel stuff |
|
Back to top |
|
|
timere969 n00b
Joined: 29 May 2004 Posts: 15
|
Posted: Tue Jul 27, 2004 5:30 am Post subject: |
|
|
I got the information directly from the guy that work at intel who wrote the iswraid support for the intel ataraid subdriver. He said he would correct this on the next release of the driver and it was only a temporary hicup. _________________ Conjuncta virtuti fortuna |
|
Back to top |
|
|
|