xfs
[Top] [All Lists]

Re: mkinitrd, ramdisk failure?

To: "D. Stimits" <stimits@xxxxxxxxxx>
Subject: Re: mkinitrd, ramdisk failure?
From: Chris Pascoe <c.pascoe@xxxxxxxxxxxxxx>
Date: Thu, 14 Jun 2001 08:37:36 +1000 (EST)
Cc: "XFS: linux-xfs@xxxxxxxxxxx" <linux-xfs@xxxxxxxxxxx>
In-reply-to: <3B27E2B5.CB5E4CF6@xxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
> NOTE: The /boot partition seems to be read fine, and the scsi controller
> is detected and works fine, including apparently the read of /boot. SCSI
> is directly compiled in.

I don't believe the read of /boot isn't done using the system SCSI
modules; it's done using BIOS calls.  So that it loads the kernel
and initrd is not an indication that the SCSI drivers, etc, actually
loaded properly.

Bear with me and check that you are seeing everything below:

The point where the initrd is loaded starts with:
        RAMDISK: Compressed image found at block 0

Then it is followed by (as the root filesystem on the ramdisk is mounted):
        VFS: Mounted root (ext2 filesystem).
[I assume if you're loading XFS as a module, the filesystem on the initrd
 is ext2, which is compiled into the booting kernel?  Otherwise, you're
 never going to get anywhere, because it needs to mount/run the initrd to
 get xfs support, and it can't mount the initrd because it doesn't have
 the xfs modules loaded yet..]

You should now see a few messages as the pagebuf/xfs_support/xfs modules
load (I assume, never used them as modules):  (NB This might come after
the SCSI support has loaded):
        Loading pagebuf module
        Pagebuf cache Copyright (c) 2001 Silicon Graphics, Inc.
        Loading xfs_support module
        Loading xfs module
        XFS filesystem Copyright (c) 2001 Silicon Graphics, Inc.

After this, you should see a few SCSI driver messages at this
time, as the SCSI adaptor drivers load, then a bunch of lines like:

(if you have scsi modules compiled in)
        Loading scsi_mod module
        Loading sd_mod module

(always:)
        Loading aacraid module (my SCSI driver)
          Vendor: DELL      Model: PERCRAID Mirror   Rev: 0001
          Type:   Direct-Access                      ANSI SCSI revision: 02
        Detected scsi removable disk sda at scsi0, channel 0, id 0, lun 0
          Vendor: DELL      Model: PERCRAID RAID5    Rev: 0001
          Type:   Direct-Access                      ANSI SCSI revision: 02
        Detected scsi removable disk sdb at scsi0, channel 0, id 1, lun 0

Indicating that the disks were detected.

After that, it enumerates the partitions on the disk:
        Partition check:
         sda: sda1 sda2 sda3 < sda5 sda6 sda7 >
         sdb: sdb1 sdb2 sdb3

And then it goes to mount the new root file system:
        VFS: Mounted root (xfs filesystem) readonly.

If you're not seeing the "Detected scsi disk..." lines above, I'm guessing
that you haven't got the scsi disk support compiled in, or the disks
loaded.

Can you check the compare the output you get of the boot process with what
I've pasted above, and let us know the differences?  Also, knowing the
contents of the /linuxrc on the initrd would be handy.

Chris


<Prev in Thread] Current Thread [Next in Thread>