Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MD autodetect breaks when upgrading kernel to 2.6.28-r5
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nickk
n00b
n00b


Joined: 04 Jun 2009
Posts: 36

PostPosted: Thu Jun 04, 2009 1:17 pm    Post subject: MD autodetect breaks when upgrading kernel to 2.6.28-r5 Reply with quote

I am running currently amd64 system with 2.6.22-gentoo-r8 kernel, it boots from MD raid1 device (md0) and works fine.
I am trying to upgrade kernel to 2.6.28-gentoo-r5 and it cant autodetect md devices on startup (md says 0 drives detected) resulting kernel panic with VFS saying vfs cannot open root device "900" or invalid block (9,0). But all the md modules are compiled in kernel.
What to do ?

Here are my disks:

Device Boot Start End Blocks Id System
/dev/sda1 1 499 4008186 82 Linux swap / Solaris
/dev/sda2 500 1496 8008402+ fd Linux raid autodetect
/dev/sda3 1497 91201 720555412+ 5 Extended
/dev/sda5 1497 2742 10008463+ fd Linux raid autodetect
/dev/sda6 2743 3988 10008463+ fd Linux raid autodetect
/dev/sda7 3989 91201 700538391 fd Linux raid autodetect

Device Boot Start End Blocks Id System
/dev/sdb1 1 499 4008186 82 Linux swap / Solaris
/dev/sdb2 500 1496 8008402+ fd Linux raid autodetect
/dev/sdb3 1497 91201 720555412+ 5 Extended
/dev/sdb5 1497 2742 10008463+ fd Linux raid autodetect
/dev/sdb6 2743 3988 10008463+ fd Linux raid autodetect
/dev/sdb7 3989 91201 700538391 fd Linux raid autodetect

md0 consists of /dev/sda2 and /dev/sdb2.

excerpt from .config:
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_AUTODETECT=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
CONFIG_MD_RAID5_RESHAPE=y
CONFIG_MD_MULTIPATH=y
CONFIG_MD_FAULTY=y
CONFIG_BLK_DEV_DM=y
CONFIG_DM_DEBUG=y
CONFIG_DM_CRYPT=y
CONFIG_DM_SNAPSHOT=y
CONFIG_DM_MIRROR=y
CONFIG_DM_ZERO=y
CONFIG_DM_MULTIPATH=y
CONFIG_DM_DELAY=y
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54797
Location: 56N 3W

PostPosted: Thu Jun 04, 2009 7:45 pm    Post subject: Reply with quote

nickk,

Grub does not care about raid devices at all - it simply ignores them, hence you can boot from raid1 but not a striped raid set.
Grub is loading your kernel here, so thats not the problem.

Your raid setup looks fine too.

I suspect that you have set
Code:
[*]   ATA SFF support
in jumping from 2.6.22, which turns off most of the SATA drivers, hence your raid is not detected because the underlying disks are not detected.
Grub is a special case, as it loads the kernel, it has to make its own arrangements for reading the drives.

--- edit ---
changed "boot from raid0" to "boot from raid1"
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Fri Jun 05, 2009 1:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
nickk
n00b
n00b


Joined: 04 Jun 2009
Posts: 36

PostPosted: Fri Jun 05, 2009 9:45 am    Post subject: Reply with quote

My SATA disks are on SAS1068E controller which works under fusion mpt drivers (mptbase) which are compiled in kernel too.
Here .config excerpts about that:

CONFIG_FUSION=y
CONFIG_FUSION_SPI=y
CONFIG_FUSION_SAS=y
CONFIG_FUSION_MAX_SGE=128

Here all my other SATA config settings:
CONFIG_SATA_PMP=y
CONFIG_SATA_AHCI=y

Should i switch on smth else ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54797
Location: 56N 3W

PostPosted: Fri Jun 05, 2009 1:23 pm    Post subject: Reply with quote

nickk,

The fusion drivers are the low level hardware support for SCSI. You also need
Code:
  │ │    < > RAID Transport Class                                         │ │ 
  │ │    -*- SCSI device support                                          │ │ 
  │ │    < > SCSI target support                                          │ │ 
  │ │    [*] legacy /proc/scsi/ support                                   │ │ 
  │ │        *** SCSI support type (disk, tape, CD-ROM) ***               │ │ 
  │ │    <*> SCSI disk support
but thats not new, you have always needed these options for that hardware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
nickk
n00b
n00b


Joined: 04 Jun 2009
Posts: 36

PostPosted: Fri Jun 05, 2009 9:56 pm    Post subject: Reply with quote

Sure, this is on too.

And here what i found in .config by greping SCSI:

CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
CONFIG_SCSI_TGT=y
CONFIG_SCSI_PROC_FS=y
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_WAIT_SCAN=m
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_SAS_ATTRS=y
CONFIG_SCSI_SAS_LIBSAS=m
CONFIG_SCSI_SAS_HOST_SMP=y
CONFIG_SCSI_SAS_LIBSAS_DEBUG=y
CONFIG_SCSI_LOWLEVEL=y
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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