home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Problem with a raid array at boot time

On Fri, Mar 20, 2009 at 8:00 PM, Bart Trojanowski <bart [ at ] jukie [ dot ] net> wrote:

> * Charles Nadeau <charles [ dot ] nadeau [ at ] gmail [ dot ] com> [090320 19:40]:
> > > Was the array in a good state in /proc/mdstat ?
> >
> > My STUPID mistake: I forgot to start the array before mounting it.
>
> Pfew!
>
> > > > I'll try again with both AHCI and MD as modules this time.
> > >
> > > I am hopeful about this option.
> >
> > After booting and doing an lsmod, none of the modules were loaded. I'll
> try
> > again later tonight, I need to quickly finish a couple of things with my
> > workstation. I'll keep you posted, thanks for your help.
>
> I am not used to gentoo.  Can you throw them into /etc/modules (or


Yes, in /etc/modules.autoload.d/kernel-2.6 (
http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=1&chap=7#doc_chap5
)


> similar)?  Make sure you put ahci before md.


Here is what I get when I compile "the Gentoo way":

Ottawa linux # make -j5 && make -j5 modules_install
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  CHK     include/linux/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/linux/compile.h
  CC      init/do_mounts.o
  CC      init/do_mounts_rd.o
  CC      init/do_mounts_initrd.o
  LD      init/mounts.o
  LD      init/built-in.o
  GZIP    kernel/config_data.gz
  IKCFG   kernel/config_data.h
  CC      kernel/configs.o
  LD      kernel/built-in.o
  LD      crypto/built-in.o
  CC [M]  crypto/xor.o
  LD      crypto/async_tx/built-in.o
  CC [M]  crypto/async_tx/async_tx.o
  CC [M]  crypto/async_tx/async_memcpy.o
  CC [M]  crypto/async_tx/async_xor.o
  CC      fs/partitions/check.o
  LD      fs/partitions/built-in.o
  LD      drivers/md/built-in.o
  CC [M]  drivers/md/raid0.o
  CC [M]  drivers/md/raid1.o
  CC [M]  drivers/md/raid10.o
  CC [M]  drivers/md/md.o
  LD      fs/built-in.o
  CC [M]  drivers/md/bitmap.o
  CC [M]  drivers/md/raid5.o
  CC [M]  drivers/md/raid6algos.o
  CC [M]  drivers/md/raid6recov.o
  CC [M]  drivers/md/raid6tables.o
  CC [M]  drivers/md/raid6int1.o
  CC [M]  drivers/md/raid6int2.o
  CC [M]  drivers/md/raid6int4.o
  CC [M]  drivers/md/raid6int8.o
  CC [M]  drivers/md/raid6int32.o
  CC [M]  drivers/md/raid6int16.o
  CC [M]  drivers/md/raid6altivec1.o
  CC [M]  drivers/md/raid6altivec2.o
  CC [M]  drivers/md/raid6altivec4.o
  CC [M]  drivers/md/raid6altivec8.o
  CC [M]  drivers/md/raid6mmx.o
  CC [M]  drivers/md/raid6sse1.o
  CC [M]  drivers/md/raid6sse2.o
  LD [M]  drivers/md/raid456.o
  LD [M]  drivers/md/md-mod.o
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  SYSMAP  System.map
  SYSMAP  .tmp_System.map
  Building modules, stage 2.
  MODPOST 58 modules
  CC      arch/x86/boot/version.o
  OBJCOPY arch/x86/boot/compressed/vmlinux.bin
  GZIP    arch/x86/boot/compressed/vmlinux.bin.gz
  LD      arch/x86/boot/compressed/piggy.o
  LD      arch/x86/boot/compressed/vmlinux
  OFFSETS arch/x86/boot/offsets.h
  OBJCOPY arch/x86/boot/vmlinux.bin
  AS      arch/x86/boot/header.o
  LD      arch/x86/boot/setup.elf
  OBJCOPY arch/x86/boot/setup.bin
  BUILD   arch/x86/boot/bzImage
Root device is (8, 2)
Setup is 11448 bytes (padded to 11776 bytes).
System is 3029 kB
CRC a30a3557
Kernel: arch/x86/boot/bzImage is ready  (#7)
  LD [M]  crypto/async_tx/async_memcpy.ko
  LD [M]  crypto/async_tx/async_tx.ko
  LD [M]  crypto/async_tx/async_xor.ko
  LD [M]  crypto/xor.ko
  LD [M]  drivers/md/md-mod.ko
  LD [M]  drivers/md/raid0.ko
  LD [M]  drivers/md/raid1.ko
  LD [M]  drivers/md/raid10.ko
  LD [M]  drivers/md/raid456.ko
  INSTALL arch/x86/crypto/aes-x86_64.ko
  INSTALL crypto/aes_generic.ko
  INSTALL crypto/async_tx/async_memcpy.ko
  INSTALL crypto/async_tx/async_tx.ko
  INSTALL crypto/async_tx/async_xor.ko
  INSTALL crypto/crc32c.ko
  INSTALL crypto/crypto_hash.ko
  INSTALL crypto/ecb.ko
  INSTALL crypto/md4.ko
  INSTALL crypto/pcbc.ko
  INSTALL crypto/sha1_generic.ko
  INSTALL crypto/sha256_generic.ko
  INSTALL crypto/sha512_generic.ko
  INSTALL crypto/xor.ko
  INSTALL drivers/ata/ahci.ko
  INSTALL drivers/block/pktcdvd.ko
  INSTALL drivers/i2c/busses/i2c-nforce2.ko
  INSTALL drivers/i2c/chips/eeprom.ko
  INSTALL drivers/md/dm-bbr.ko
  INSTALL drivers/md/md-mod.ko
  INSTALL drivers/md/raid0.ko
  INSTALL drivers/md/raid1.ko
  INSTALL drivers/md/raid10.ko
  INSTALL drivers/md/raid456.ko
  INSTALL drivers/net/dummy.ko
  INSTALL drivers/scsi/aic7xxx/aic7xxx.ko
  INSTALL drivers/scsi/iscsi_tcp.ko
  INSTALL drivers/scsi/libiscsi.ko
  INSTALL drivers/scsi/scsi_wait_scan.ko
  INSTALL drivers/video/backlight/backlight.ko
  INSTALL drivers/video/backlight/lcd.ko
  INSTALL drivers/video/output.ko
  INSTALL fs/fat/fat.ko
  INSTALL fs/jfs/jfs.ko
  INSTALL fs/msdos/msdos.ko
  INSTALL fs/ntfs/ntfs.ko
  INSTALL fs/vfat/vfat.ko
  INSTALL fs/xfs/xfs.ko
  INSTALL lib/libcrc32c.ko
  INSTALL net/ipv4/netfilter/ipt_MASQUERADE.ko
  INSTALL net/ipv4/netfilter/iptable_nat.ko
  INSTALL net/ipv4/netfilter/nf_nat.ko
  INSTALL sound/ac97_bus.ko
  INSTALL sound/core/oss/snd-mixer-oss.ko
  INSTALL sound/core/oss/snd-pcm-oss.ko
  INSTALL sound/core/seq/oss/snd-seq-oss.ko
  INSTALL sound/core/seq/snd-seq-device.ko
  INSTALL sound/core/seq/snd-seq-midi-event.ko
  INSTALL sound/core/seq/snd-seq.ko
  INSTALL sound/core/snd-page-alloc.ko
  INSTALL sound/core/snd-pcm.ko
  INSTALL sound/core/snd-rtctimer.ko
  INSTALL sound/core/snd-timer.ko
  INSTALL sound/core/snd.ko
  INSTALL sound/pci/ac97/snd-ac97-codec.ko
  INSTALL sound/pci/snd-intel8x0.ko
  INSTALL sound/pci/hda/snd-hda-intel.ko
  INSTALL sound/soundcore.ko
  DEPMOD  2.6.27-gentoo-r8

Is it possible that the module md is known as md-mod in gentoo?

Thanks!

Charles

>
>
> Also, you might need to generate a mdadm.conf ...
>
>        $ echo 'DEVICE partitions' > mdadm.conf
>        $ mdadm  --examine  --scan --config=mdadm.conf >> ./mdadm.conf
>
> And on debian this would start all those in the config file:
>
>        $ /etc/init.d/mdadm-raid start
>
> Good luck,
> -Bart
>
> --
>                                WebSig: http://www.jukie.net/~bart/sig/<http://www.jukie.net/%7Ebart/sig/>
>



-- 
Charles Nadeau Ph.D.
http://charlesnadeau.blogspot.com/
http://radio.weblogs.com/0111823/