Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
sata boot problems using iswraid
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Wed Jun 02, 2004 11:41 am    Post subject: sata boot problems using iswraid Reply with quote

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
View user's profile Send private message
thechris
Veteran
Veteran


Joined: 12 Oct 2003
Posts: 1203

PostPosted: Wed Jun 02, 2004 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Thu Jun 03, 2004 10:17 am    Post subject: Reply with quote

thanks, i hadn't noticed the disk to disc error, i'll give it a try
Back to top
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Fri Jun 04, 2004 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Jun 04, 2004 9:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Sun Jun 06, 2004 7:49 am    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Thu Jun 10, 2004 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
gaz
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2002
Posts: 126

PostPosted: Sat Jun 12, 2004 2:31 am    Post subject: Reply with quote

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
View user's profile Send private message
gaz
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2002
Posts: 126

PostPosted: Sat Jun 12, 2004 2:32 am    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Sat Jun 12, 2004 11:09 am    Post subject: Reply with quote

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
View user's profile Send private message
gaz
Tux's lil' helper
Tux's lil' helper


Joined: 12 Oct 2002
Posts: 126

PostPosted: Thu Jun 24, 2004 6:33 am    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Fri Jun 25, 2004 8:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
serendipity
n00b
n00b


Joined: 05 Jun 2004
Posts: 69

PostPosted: Fri Jun 25, 2004 8:54 pm    Post subject: See this thread Reply with quote

https://forums.gentoo.org/viewtopic.php?t=190284
Back to top
View user's profile Send private message
lagrima
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 199
Location: Whorenge County

PostPosted: Mon Jul 26, 2004 5:47 am    Post subject: Reply with quote

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
View user's profile Send private message
timere969
n00b
n00b


Joined: 29 May 2004
Posts: 15

PostPosted: Tue Jul 27, 2004 5:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum