mám taký menší problém, nainštaloval som si na server Debian 4.0 r0 s pôvodným jadrom 2.6.18-4-486. Mám tam 2x 160gb HDD v RAID1 (softwarový RAID).
Keďže tento kernel je už opmerne starý, tak som išiel nahodiť 2.6.21.5. Načítal som config terajšieho kernelu, doplnil niektoré moduly a podobne, všetko prebehlo v poriadku.
Avšak, keď chcem nabootovať Linux cez nové jadro dostanem túto chybu:
.......
Begin: Mounting root file system... ...
Begin: Running /scripts/local-top ...
Begin: Loading MD modules ...
md: raid1 presonality registered for level 1
Success: loaded module raid1.
Done.
Begin: Assembling all MD arrays ...
mdadm: No devices listet in conf file were found.
Filature: failed to assemble all arrays.
Done.
Done.
Begin: Waiting for root file system... ...
Vedel yb mi niekto pomôcť? Vďaka
no, pokial nemas oznacene partiie ako raid auto detect, tak si budes musiet adaptovat initrd. a pozri si aj ovladace k tvojej doske (radicu diskov) ci si ich zahrnul do jadra alebo initrd.
Keď som dával nový kernel a disky neboli v RAID-e, tak všetko fungovalo v pohode
http://www.howtoforge.com/kernel_compilation_debian_etch
Patch som nedával.
http://www200.pair.com/mecham/raid/raid1-degraded-etch.html
apt-get install libncurses5-dev make gcc bin86 libc6-dev kernel-package bzip2 ale to asi vies :))
potom
cd /usr/src/linux-2.6.x.x/
make oldconfig :)
a tak klasika
make menuconfig # popridavat ca potrebujes
make bzImage
make modules
make modules_install
Vela stastia
AmidalaX:~# cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/md1 / ext2 defaults,errors=remount-ro 0 1
/dev/md0 /boot ext2 defaults 0 2
/dev/sda2 none swap sw 0 0
/dev/sdb2 none swap sw 0 0
/dev/hdb /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
AmidalaX:~#
a /etc/mdadm/mdadm.conf
AmidalaX:/etc/mdadm# cat mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
# by default, scan all partitions (/proc/partitions) for MD superblocks.
# alternatively, specify devices to scan, using wildcards if desired.
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR Leachimster@gmail.com
# definitions of existing MD arrays
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=cfdf791c:fd5359c7:b16317b2:d6c02ccb
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=d7b6c5b1:8c43cba2:e47e3b76:eb01973a
# This file was auto-generated on Fri, 29 Jun 2007 02:11:40 +0000
# by mkconf $Id: mkconf 261 2006-11-09 13:32:35Z madduck $
AmidalaX:/etc/mdadm#
mdadm --detail --scan >> /etc/mdadm.conf
take nieco netreba spravit?
source: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID