Find the answer to your Linux question:
Results 1 to 2 of 2
Hi, I have a mandrake 10.0 distro on my ide drive. I hope to be able to migrate it to the raid drives on my box. So I recompiled the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2004
    Posts
    5

    Root mounted on raid0 Kernel Panic


    Hi, I have a mandrake 10.0 distro on my ide drive.

    I hope to be able to migrate it to the raid drives on my box. So I recompiled the kernel, with sata_promise and ata_piix (these are the low level scsi_drivers for my raid controller) and raid0 raid1 to be compiled in the kernell. For some reason raid0 and raid1 dont show up in my modules.dep, but sata_promise and ata_piix do, whick leads me to believe that sata_promise and ata_piix were somehow compiled as modules.

    Dont know if its a big issue, cause these modules definitely go into the initrd ramdisk.

    Now I kept the /boot on the ide drive, as I'm also having issues bootiing from raid1 /boot, and I made raid partitions, mounted them for /, /usr etc, made and ext3 fs, copied the files, changed my fstab on the new root to mount the appropriate partitions, made sure I have the correct raidtab on the new root with persistent-superblock n all.

    Added the new kernel image and ramdisk to lilo, installed lilo, and tried to boot with my root on the raid drive.

    RESULT: Kernel panic. with cannot mount root invalid superblock on /dev/md2 (my root partition here)

    Just before I can see the raid0-1 modules were loaded. It goes into autodetecting raid array, yet cannot mount the root partition.

    If however I use the same new kernel and use root=/dev/hddx option, it boots smoothly, and even mounts the /dev/md2 partition into /mnt/newboot for me. (I added the fstab entries for my older install , so I dont have to mount it manually)

    The only thing I can think of is that I'm still missing some modules, and so I cant read the superblock on the raid drive correctly. so I cant load the /dev/md2 (raid) partition.

    Mebbe The raidtab is correct, but the superblock hasnt actually been writted to the beginning of the partition (despite the persistent-superblock 1) option in raid tab. Is there anyway I can make it write the superblock again, without having to create the raid array agaiin, since I dont want to have to copy the data again.

    Mebbe I'm missing somepart, which can help me think throug this again.

    Any pointers or help or siimilar issue, would be really helpful.

  2. #2
    Just Joined!
    Join Date
    Sep 2004
    Posts
    5

    Additional information (syslog) some funny things going on

    When I boot my new kernel wiith root =/dev/hddx option. It seems that the scsi_subsystem with raid is initialized after root is mounted. Does this mean that the initrd image is not getting loaded. There are a couple of other funky messages, that could mean trouble. Any help appreciated


    Oct 3 21:16:09 Wireless-server syslogd 1.4.1: restart.
    Oct 3 21:16:09 Wireless-server kernel: klogd 1.4.1, log source = /proc/kmsg started.
    Oct 3 21:16:09 Wireless-server kernel: Inspecting /boot/System.map-2.6.3-7mdkcustom
    Oct 3 21:16:09 Wireless-server kernel: Loaded 29460 symbols from /boot/System.map-2.6.3-7mdkcustom.
    Oct 3 21:16:09 Wireless-server kernel: Symbols match kernel version 2.6.3.
    Oct 3 21:16:09 Wireless-server kernel: No module symbols loaded - kernel modules not enabled.
    Oct 3 21:16:09 Wireless-server kernel: Linux version 2.6.3-7mdkcustom .
    .
    .
    .
    .

    Oct 3 21:16:10 Wireless-server kernel: ICH5: IDE controller at PCI slot 0000:00:1f.1
    Oct 3 21:16:10 Wireless-server kernel: ICH5: chipset revision 2
    Oct 3 21:16:10 Wireless-server kernel: ICH5: not 100%% native mode: will probe irqs later
    Oct 3 21:16:10 Wireless-server kernel: ide1: BM-DMA at 0xffa8-0xffaf, BIOS settings: hdcMA, hddMA
    Oct 3 21:16:10 Wireless-server kernel: hdc: HL-DT-ST CD-RW/DVD-ROM GCC-4480B, ATAPI CD/DVD-ROM drive
    Oct 3 21:16:10 Wireless-server kernel: hdd: IBM-DJNA-372200, ATA DISK drive
    Oct 3 21:16:10 Wireless-server kernel: Using anticipatory io scheduler
    Oct 3 21:16:10 Wireless-server kernel: ide1 at 0x170-0x177,0x376 on irq 15
    Oct 3 21:16:10 Wireless-server kernel: ICH5-SATA: IDE controller at PCI slot 0000:00:1f.2
    Oct 3 21:16:10 Wireless-server kernel: ICH5-SATA: chipset revision 2
    Oct 3 21:16:10 Wireless-server kernel: ICH5-SATA: 100%% native mode on irq 18
    Oct 3 21:16:10 Wireless-server kernel: ICH5-SATA: neither IDE port enabled (BIOS)
    .
    .
    .

    Oct 3 21:16:10 Wireless-server kernel: md: linear personality registered as nr 1
    Oct 3 21:16:10 Wireless-server kernel: md: raid0 personality registered as nr 2
    Oct 3 21:16:10 Wireless-server kernel: md: raid1 personality registered as nr 3
    Oct 3 21:16:10 Wireless-server kernel: md: raid5 personality registered as nr 4
    Oct 3 21:16:10 Wireless-server kernel: raid5: measuring checksumming speed
    Oct 3 21:16:10 Wireless-server kernel: 8regs : 2808.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: 8regs_prefetch: 2204.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: 32regs : 1596.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: 32regs_prefetch: 1536.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: pIII_sse : 3092.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: pII_mmx : 3964.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: p5_mmx : 3936.000 MB/sec
    Oct 3 21:16:10 Wireless-server kernel: raid5: using function: pIII_sse (3092.000 MB/sec)
    Oct 3 21:16:10 Wireless-server kernel: md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
    .
    .
    .Oct 3 21:16:10 Wireless-server kernel: md: Autodetecting RAID arrays.
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.
    Oct 3 21:16:10 Wireless-server kernel: EXT2-fs warning (device hdd6): ext2_fill_super: mounting ext3 filesystem as ext2
    Oct 3 21:16:10 Wireless-server kernel:
    Oct 3 21:16:10 Wireless-server kernel: VFS: Mounted root (ext2 filesystem) readonly.
    Oct 3 21:16:10 Wireless-server kernel: Mounted devfs on /dev
    Oct 3 21:16:10 Wireless-server kernel: Freeing unused kernel memory: 276k freed
    .
    .
    .

    Oct 3 21:16:10 Wireless-server kernel: SCSI subsystem initialized
    Oct 3 21:16:10 Wireless-server kernel: ata1: SATA max UDMA/133 cmd 0xF9004200 ctl 0xF9004238 bmdma 0x0 irq 22
    Oct 3 21:16:10 Wireless-server kernel: ata2: SATA max UDMA/133 cmd 0xF9004280 ctl 0xF90042B8 bmdma 0x0 irq 22
    Oct 3 21:16:10 Wireless-server kernel: ata1: dev 0 ATA, max UDMA/100, 234375000 sectors (lba4
    Oct 3 21:16:10 Wireless-server kernel: ata1: dev 0 configured for UDMA/100
    Oct 3 21:16:10 Wireless-server kernel: scsi0 : sata_promise
    Oct 3 21:16:10 Wireless-server kernel: ata2: dev 0 ATA, max UDMA/100, 234375000 sectors (lba4
    Oct 3 21:16:10 Wireless-server kernel: ata2: dev 0 configured for UDMA/100
    Oct 3 21:16:10 Wireless-server kernel: scsi1 : sata_promise
    Oct 3 21:16:10 Wireless-server kernel: Vendor: ATA Model: WDC WD1200JD-75G Rev: 1.00
    Oct 3 21:16:10 Wireless-server kernel: Type: Direct-Access ANSI SCSI revision: 05
    Oct 3 21:16:10 Wireless-server kernel: Vendor: ATA Model: WDC WD1200JD-75G Rev: 1.00
    Oct 3 21:16:10 Wireless-server kernel: Type: Direct-Access ANSI SCSI revision: 05
    Oct 3 21:16:10 Wireless-server kernel: Linux agpgart interface v0.100 (c) Dave Jones
    Oct 3 21:16:10 Wireless-server kernel: agpgart: Detected an Intel i875 Chipset.
    Oct 3 21:16:10 Wireless-server kernel: agpgart: Maximum main memory to use for agp memory: 816M
    Oct 3 21:16:10 Wireless-server kernel: agpgart: AGP aperture is 128M @ 0xf0000000
    Oct 3 21:16:10 Wireless-server kernel: SCSI device sda: 234375000 512-byte hdwr sectors (120000 MB)
    Oct 3 21:16:10 Wireless-server kernel: SCSI device sda: drive cache: write through
    Oct 3 21:16:10 Wireless-server kernel: /dev/scsi/host0/bus0/target0/lun0: p1 < p5 p6 p7 p8 p9 p10 > p2 p3
    Oct 3 21:16:10 Wireless-server kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
    Oct 3 21:16:10 Wireless-server kernel: SCSI device sdb: 234375000 512-byte hdwr sectors (120000 MB)
    Oct 3 21:16:10 Wireless-server kernel: SCSI device sdb: drive cache: write through
    Oct 3 21:16:10 Wireless-server kernel: /dev/scsi/host1/bus0/target0/lun0: p1 p2 < p5 p6 p7 p8 p9 p10 >
    Oct 3 21:16:10 Wireless-server kernel: Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: considering sda5 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sda5 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sdb5 ...
    Oct 3 21:16:10 Wireless-server kernel: md: created md0
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sdb5>
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sda5>
    Oct 3 21:16:10 Wireless-server kernel: md: running: <sda5><sdb5>
    Oct 3 21:16:10 Wireless-server kernel: raid1: raid set md0 active with 2 out of 2 mirrors
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: considering sda6 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sda6 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sdb6 ...
    Oct 3 21:16:10 Wireless-server kernel: md: created md1
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sdb6>
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sda6>
    Oct 3 21:16:10 Wireless-server kernel: md: running: <sda6><sdb6>
    Oct 3 21:16:10 Wireless-server kernel: md1: setting max_sectors to 128, segment boundary to 32767
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sda6
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sda6(1068224) with sda6(1068224)
    Oct 3 21:16:10 Wireless-server kernel: raid0: END
    Oct 3 21:16:10 Wireless-server kernel: raid0: ==> UNIQUE
    Oct 3 21:16:10 Wireless-server kernel: raid0: 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sdb6
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sdb6(1068224) with sda6(1068224)
    Oct 3 21:16:10 Wireless-server kernel: raid0: EQUAL
    Oct 3 21:16:10 Wireless-server kernel: raid0: FINAL 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: done.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : md_size is 2136448 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : conf->hash_spacing is 2136448 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : nb_zone is 1.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : Allocating 4 bytes for hash.
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: considering sda7 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sda7 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sdb7 ...
    Oct 3 21:16:10 Wireless-server kernel: md: created md2
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sdb7>
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sda7>
    Oct 3 21:16:10 Wireless-server kernel: md: running: <sda7><sdb7>
    Oct 3 21:16:10 Wireless-server kernel: md2: setting max_sectors to 128, segment boundary to 32767
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sda7
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sda7(5116544) with sda7(5116544)
    Oct 3 21:16:10 Wireless-server kernel: raid0: END
    Oct 3 21:16:10 Wireless-server kernel: raid0: ==> UNIQUE
    Oct 3 21:16:10 Wireless-server kernel: raid0: 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sdb7
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sdb7(5116544) with sda7(5116544)
    Oct 3 21:16:10 Wireless-server kernel: raid0: EQUAL
    Oct 3 21:16:10 Wireless-server kernel: raid0: FINAL 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: done.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : md_size is 10233088 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : conf->hash_spacing is 10233088 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : nb_zone is 1.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : Allocating 4 bytes for hash.
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: considering sda8 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sda8 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sdb8 ...
    Oct 3 21:16:10 Wireless-server kernel: md: created md3
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sdb8>
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sda8>
    Oct 3 21:16:10 Wireless-server kernel: md: running: <sda8><sdb8>
    Oct 3 21:16:10 Wireless-server kernel: md3: setting max_sectors to 128, segment boundary to 32767
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sda8
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sda8(10482304) with sda8(10482304)
    Oct 3 21:16:10 Wireless-server kernel: raid0: END
    Oct 3 21:16:10 Wireless-server kernel: raid0: ==> UNIQUE
    Oct 3 21:16:10 Wireless-server kernel: raid0: 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sdb8
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sdb8(10482304) with sda8(10482304)
    Oct 3 21:16:10 Wireless-server kernel: raid0: EQUAL
    Oct 3 21:16:10 Wireless-server kernel: raid0: FINAL 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: done.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : md_size is 20964608 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : conf->hash_spacing is 20964608 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : nb_zone is 1.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : Allocating 4 bytes for hash.
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.
    Oct 3 21:16:10 Wireless-server kernel: md: autorun ...
    Oct 3 21:16:10 Wireless-server kernel: md: considering sda10 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sda10 ...
    Oct 3 21:16:10 Wireless-server kernel: md: adding sdb10 ...
    Oct 3 21:16:10 Wireless-server kernel: md: created md5
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sdb10>
    Oct 3 21:16:10 Wireless-server kernel: md: bind<sda10>
    Oct 3 21:16:10 Wireless-server kernel: md: running: <sda10><sdb10>
    Oct 3 21:16:10 Wireless-server kernel: md5: setting max_sectors to 128, segment boundary to 32767
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sda10
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sda10(5116544) with sda10(5116544)
    Oct 3 21:16:10 Wireless-server kernel: raid0: END
    Oct 3 21:16:10 Wireless-server kernel: raid0: ==> UNIQUE
    Oct 3 21:16:10 Wireless-server kernel: raid0: 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: looking at sdb10
    Oct 3 21:16:10 Wireless-server kernel: raid0: comparing sdb10(5116544) with sda10(5116544)
    Oct 3 21:16:10 Wireless-server kernel: raid0: EQUAL
    Oct 3 21:16:10 Wireless-server kernel: raid0: FINAL 1 zones
    Oct 3 21:16:10 Wireless-server kernel: raid0: done.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : md_size is 10233088 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : conf->hash_spacing is 10233088 blocks.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : nb_zone is 1.
    Oct 3 21:16:10 Wireless-server kernel: raid0 : Allocating 4 bytes for hash.
    Oct 3 21:16:10 Wireless-server kernel: md: ... autorun DONE.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •