[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Problem mit mdadm



Hallo Leute,

ich habe auch das Problem. Allerdings nützt das Prozedere nichts. 

Das System ist ein Sarge mit zwei IDE Platten
fd-fhk-03657:~# uname -a
Linux fd-fhk-03657 2.6.8-2-386 #1 Tue Aug 16 12:46:35 UTC 2005 i686 GNU/Linux

Musste den Rechner mit einer IDE Platte als Raid 1 aufsetzten, weil die HP 
Kiste nur zwei IDE Geräte anschliessen kann und einen BIOS Fehler hat, der es 
verunmöglicht per USB zu booten.

Nach der Installation habe ich das CDROM abgenommen und die zweite Platte 
drangetan, partitioniert und den Raid eingefügt mit
mdadm /dev/md0 --add /dev/hdc1 
mdadm --zero-superblock /dev/hda1  
mdadm --zero-superblock /dev/hdc1  
dpkg-reconfigure mdadm   

Der Raid lässt sich so schön anlegen, nach einem Neustart heisst es aber immer 
raid1: raid set md0 active with 1 out of 2 mirrors

dmesg
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 4260 blocks [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly.
Freeing unused kernel memory: 204k freed
vesafb: probe of vesafb0 failed with error -6
NET: Registered protocol family 1
md: md driver 0.90.0 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: raid1 personality registered as nr 3
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 18
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0x2480-0x2487, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0x2488-0x248f, BIOS settings: hdc:DMA, hdd:pio
hda: WDC WD2500SB-01RFA0, ATA DISK drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 1024KiB
hda: 490234752 sectors (251000 MB) w/8192KiB Cache, CHS=30515/255/63, 
UDMA(100)
 /dev/ide/host0/bus0/target0/lun0: p1 p2
hdc: WDC WD2500SB-01RFA0, ATA DISK drive
ide1 at 0x170-0x177,0x376 on irq 15
hdc: max request size: 1024KiB
hdc: 490234752 sectors (251000 MB) w/8192KiB Cache, CHS=30515/255/63, 
UDMA(100)
 /dev/ide/host0/bus1/target0/lun0: p1 p2
md: md0 stopped.
md: bind<hda1>
raid1: raid set md0 active with 1 out of 2 mirrors
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
Adding 2923820k swap on /dev/hda2.  Priority:-1 extents:1
Adding 2923820k swap on /dev/hdc2.  Priority:-2 extents:1
EXT3 FS on md0, internal journal
Generic RTC Driver v1.07

Die folgenden Dateien habe ich angepasst:
fd-fhk-03657:~# cat /boot/grub/menu.lst
title           Debian GNU/Linux, kernel 2.6.8-2-386
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.8-2-386 root=/dev/md0 
md=0,/dev/hda1,/dev/hdc1 ro
initrd          /boot/initrd.img-2.6.8-2-386
savedefault
boot

title           Debian GNU/Linux, kernel 2.6.8-2-386 (recovery mode)
root            (hd0,0)
kernel          /boot/vmlinuz-2.6.8-2-386 root=/dev/md0 
md=0,/dev/hda1,/dev/hdc1 ro single
initrd          /boot/initrd.img-2.6.8-2-386
savedefault
boot

fd-fhk-03657:~# cat /etc/mdadm/mdadm.conf
DEVICE /dev/hda1 /dev/hdc1
ARRAY /dev/md0 level=raid1 num-devices=2 
UUID=876ebbcd:22d4e45a:885f088a:e77f9967 devices=/dev/hda1,/dev/hdc1

fd-fhk-03657:~# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line.  Comments begin with
# a "#", and everything on the line after them are ignored.

ide-cd
ide-disk
ide-generic
psmouse
md
raid1

Weiss nicht mehr weiter, probier schon ein paar Tage, weiss jemand Rat?

Gruss Dani



Reply to: