Error mounting / on SCSI s/w RAID in RH9 w/2.6

Submitted by goleksiak
on February 16, 2004 - 7:31pm

Hello,
I am getting the following when booting into my new 2.6.2 kernel on RH9:

...
Loading module raid0.ko
md: raid0 personality registered as nr2
mounting /proc filesystem
md: autodetecting RAID arrays
md: autorun...
md: ...autorun DONE.
md: autodetecting RAID arrays
md: autorun...
md: ...autorun DONE.
creating block devices
creating root device
mounting root filesystem
mount: error 6 mounting ext3
pivotroot: pivot_root (/sysroot,/sysroot/initrd) failed: 2
umount /initrd/proc failed: 2
Freeing unused kernel memory: 308K freed
Kernel panic: no init found. Try passing init= option to kernel.
...

No, I did not compile ext3 as a module...

I created a initrd image with mkinitrd 3.5.11 (I had to upgrade it with a Fedora .rpm because the latest RH9 version does not support modules ending in .ko).

I have software RAID 0 on 2 18GB SCSI drives with the following /etc/fstab:

/dev/md1 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/opt /opt ext3 defaults 1 2
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/md0 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

So, on each drive there are two s/w RAID 0 partitions (one for "/" and one for swap) and one non RAID 100MB partition (one for "/boot" and one for "/opt"). This config works fine for kernel 2.4. Here is my /etc/grub.conf:

default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-8)
root (hd0,0)
kernel /vmlinuz-2.4.20-8 ro root=/dev/md1 hdc=ide-scsi
initrd /initrd-2.4.20-8.img
title Red Hat Linux (2.6.2)
root (hd0,0)
kernel /bzImage-2.6.2 ro root=/dev/md1 hdc=ide-scsi ramdisk=8192
initrd /initrd-2.6.2.img

I have been thinking that maybe my "root(hd0,0)" line is wrong. How do I confirm the device?

The relevant sections of my .config file are here:

# SCSI device support
#
CONFIG_SCSI=m
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
# CONFIG_BLK_DEV_SD is not set
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=m
CONFIG_BLK_DEV_SR_VENDOR=y
CONFIG_CHR_DEV_SG=m

# Multi-device support (RAID and LVM)
#
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
# CONFIG_MD_LINEAR is not set
CONFIG_MD_RAID0=m
# CONFIG_MD_RAID1 is not set
# CONFIG_MD_RAID5 is not set
# CONFIG_MD_RAID6 is not set
# CONFIG_MD_MULTIPATH is not set
CONFIG_BLK_DEV_DM=m
CONFIG_DM_IOCTL_V4=y

# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
CONFIG_EXT3_FS=y
# CONFIG_EXT3_FS_XATTR is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=m

Maybe I should just get a hardware RAID card...!
Any help whatsoever is appreciated!!!!
-Greg

try thisone

Anonymous
on
July 16, 2004 - 2:12pm

cdimage:/# mkinitrd -r /dev/md1 -o /boot/initrd.img-2.4.22-1-386 /lib/modules/2.4.22-1-386/

Set root partition via mkinitrd

uh i think you missed something

Anonymous
on
July 16, 2004 - 4:35pm

your config needs CONFIG_BLK_DEV_SD=y

and then the lowlevel driver for the controller your on.. i dont know anything about redhat but scsi disk support when you use them probably is a good thing.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.