Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
2005.0 sw raid1
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
djcrackman
n00b
n00b


Joined: 06 Jun 2005
Posts: 6

PostPosted: Mon Jun 06, 2005 9:32 am    Post subject: 2005.0 sw raid1 Reply with quote

guten morgen ......

seit rund 1er woche sitz ich nun dabei und versuche mit der 2005.0 ein funktionierendes raid1 zu erzeugen ..... ich scheitere heute das 3te mal erfolglos ...

folgende hardware wird verwendet:

adaptec aha-2940uw
2x seagate 18gb scsi hdd 15k rpm
512mb ram
intel pIII 1,26ghz
gigabyte ga-6vtxe motherboard


habe mit der 2005.0 x86 universal disk gebootet und die livecd wie folgt gestartet:

Code:
gentoo doscsi nohotplug nofirewire nousb nodhcp


funktioniert soweit auch wunder, hardware wird vollständig erkannt ..... nun gehe ich wie folgt vor:

per fdisk -l kontrolliere ich, ob /dev/sda und /dev/sdb erkannt werden => alles da .... danach erzeuge ich folgende partitionen:

Code:
/ root# fdisk -l
Disk /dev/sda: 18.2 GB, 18210037760 bytes
255 heads, 63 sectors/track, 2213 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start    End     Blocks     Id  System
/dev/sda1   *         1      5      40131     fd  Linux raid autodetect
/dev/sda2             6     68     506047+    82  Linux swap / Solaris
/dev/sda2            69   2213   17229712+    fd  Linux raid autodetect


Disk /dev/sdb: 18.3 GB, 18351959040 bytes
255 heads, 63 sectors/track, 2231 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start    End     Blocks     Id  System
/dev/sdb1   *         1      5      40131     fd  Linux raid autodetect
/dev/sdb2             6     68     506047+    82  Linux swap / Solaris
/dev/sdb2            69   2213   17229712+    fd  Linux raid autodetect


so weit, so gut .... danach lade ich das module md ->
Code:
modprobe md


modul wird korrekt geladen ... passt soweit .... danach führe ich folgende befehle aus, um die mountpoints für die raid-devices zu erzeugen ...
Code:
/ root # mknod /dev/md1 b 9 1
/ root # mknod /dev/md3 b 9 3


-> funktioniert auch ohne fehlermeldung .... danach erzeuge ich die raid-devices wie folgt:

Code:
/ root # mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sda1 /dev/sdb1
/ root # mdadm --create --verbose /dev/md3 --level=1 --raid-devices=2 /dev/sda3 /dev/sdb3


raid-devices werden erzeugt, haut wunderbar hin ... formatierung mache ich wie folgt:

Code:
/ root # mke2fs /dev/md1
/ root # mke2fs -j /dev/md3
/ root # mkswap /dev/sda2
/ root # mkswap /dev/sdb2


passt auch noch ..... netzwerk config etc führe auch durch, haut auch alles hin .... mounten und chrooten funktioniert auch wunderbar .... nach abschluss der eigentlichen installation (kernel per gentoo --udev all erzeugt), jedoch bevor ich grub installiere mache ich noch folgendes IN der chroot umgebung, um sicher zu gehen, dass die raid-devices auch angelegt werden:

Code:
/ root # mknod /dev/md1 b 9 1
/ root # mknod /dev/md3 b 9 3


fstab passe ich entsprechend an, grub.conf sieht wie folgt aus:

Code:
default 0
timeout 5

title=Gentoo 2.6.11-r9
root (hd0,0)/kernel-2.6.11-gentoo-r9 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/md3 udev doscsi nohotplug nofirewire nousb nodhcp
init (hd0,0)/initrd-2.6.11-gentoo-r9


.... grub installiere ich so:

Code:
/ root # grub
> device (hd0) /dev/sda
> root (hd0,0)
> setup (hd)

> device (hd0) /dev/sdb
> root (hd0,0)
> setup (hd)


somit habe ich grub auf beiden hdd's installiert und das raid sollte funktionieren ... abschliessend mache ich noch emerge mdadm in der chroot umgebund, somit sind die raid-tools auch mit drauf ..... danach exit aus der chroot und ordnungsgemäßer reboot => kernel wird gefunden, kernel bootet, danach folgendes problem ....

Code:
>> Block device /dev/md3 is not a valid root device...


mit müh und not "krabel" ich dann in die install (per boot-device /dev/sda3) rein und schau nach was los is -> die raid-mountpoints unter /dev fehlen .... kann mir jemand erklären weshalb die dinger weg sind ?????

bitte um hilfe, ein verzweifelter admin ....

mfg djcrackman ...
Back to top
View user's profile Send private message
rubbish
n00b
n00b


Joined: 29 Jan 2005
Posts: 26

PostPosted: Sun Jun 19, 2005 1:36 pm    Post subject: Reply with quote

Hi crackman

Hast du die /etc/mdadm.conf auch in die chroot-Umgebung mitkopiert?

Ich weiss nicht genau, wird beim erstellen des kernels mit "gentoo --udev all" das Modul md auch nur als Modul kompiliert? Um das RAID dann in deinem System zu unterstützen, müsste es nicht fest im Kernel kompiliert sein?

Gruss rubbish
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) 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