• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Software Raid5, Kernel Panic

Erstmal vorweg, seit 2 Tagen google ich schon durch diverse Seiten und komme nicht vorwärts.

Ich habe hier ein SUSE 9.3 P4,3.2Ghz Samba PDC hier stehen der irgendwann mal vor Jahren eingerichtet wurde. Bis plötzlich vor 2 Tagen das Board abrauchte. Nun wurde das Board durch ein aktuelleres ersetzt.

enthalten sind 3 Festplatten an SATA im Raidverbund

/dev/sda1 /boot linux
/dev/sda2 raid5 linux raid autodetect /dev/md0
/dev/sda3 raid0 linux raid autodetect /dev/md1 (swap)

/dev/sdb1 raid5 linux raid autodetect /dev/md0
/dev/sdb2 raid0 linux raid autodetect /dev/md1

/dev/sdc1 raid5 linux raid autodetect /dev/md0
/dev/sdc2 raid0 linux raid autodetect /dev/md1

ich habe die ausgaben alle nur im Kopf

Grub:
/dev/md0

Wenn ich den PC starte, läuft SUSE 9.3 an, startet
raidautodetect und versucht die beiden Raids zu bauen
sda1 has different uuid as sda2
bricht dann mit der Meldung ab not enough operational devices for md (3/3)


Boote ich eine 10.3 live CD
kann ich mit
mdadm --assemble /dev/md0 /dev/sda2 /dev/sdb1 /dev/sdc1
das Raid sauber starten
auch mounten, schreiben und lesen, alle daten vorhanden.
eine etc/mdadm/mdadm.conf existiert nicht auch wenn ich diese erstelle ändert sich nix.

nach dem neustart kann er es wieder nicht zusammenbauen.

wo kann ich nun ansetzen ? Meine Fähigkeiten mit Linux sind rudimentär. Wenn ich irgendwie an die komplette dmesg rankomme poste ich sie hier.
Stelle morgen auch noch die mdadm -D /dev/md0 zur verfügung.

Vielen Dank im vorraus.
 
Hi

Wie wäre es as erstes mit folgenden Informationen. :wink:

Code:
fdisk -l (kleines L), 
cat /etc/fstab 
cat /boot/grub/menu.lst 
cat /boot/grub/device.map

Teils brauchst du root Rechte dazu.



cu
 
So hier erstmal die gewünschten infos:

fdisk -l
Code:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003d2ae

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1           4       32098+  83  Linux
/dev/sda2               5       19194   154143675   fd  Linux raid autodetect
/dev/sda3           19195       19456     2104515   fd  Linux raid autodetect

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00068285

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       19190   154143643+  fd  Linux raid autodetect
/dev/sdb2           19191       19456     2136645   fd  Linux raid autodetect

Disk /dev/sdc: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00093935

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1       19190   154143643+  fd  Linux raid autodetect
/dev/sdc2           19191       19456     2136645   fd  Linux raid autodetect

Disk /dev/sdd: 1042 MB, 1042546688 bytes
2 heads, 63 sectors/track, 16160 cylinders
Units = cylinders of 126 * 512 = 64512 bytes
Disk identifier: 0x002ff0d3

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1   *           1       16161     1018096    6  FAT16

Disk /dev/md0: 315.6 GB, 315685863424 bytes
2 heads, 4 sectors/track, 77071744 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000


Disk /dev/md1: 6530 MB, 6530662400 bytes
2 heads, 4 sectors/track, 1594400 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000

/dev/sdd ist dabei mein USB Stick


/dev/sda1 /boot/grub/menu.lst
Code:
# Modified by YaST2. Last modification on Mo Jun 13 11:56:12 UTC 2005

color white/blue black/light-gray
default 0
timeout 8
gfxmenu (hd0,0)/message

###Don't change this comment - YaST2 identifier: Original name: linux###
title SUSE LINUX 9.3
    kernel (hd0,0)/vmlinuz root=/dev/md0 vga=0x317 selinux=0  splash=silent resume=/dev/md1  showopts
    initrd (hd0,0)/initrd

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- SUSE LINUX 9.3
    kernel (hd0,0)/vmlinuz root=/dev/md0 showopts ide=nodma apm=off acpi=off vga=normal noresume selinux=0 barrier=off nosmp noapic maxcpus=0  3
    initrd (hd0,0)/initrd

/dev/sda1 /boot/grub/device.map
Code:
(hd0)	/dev/sda
(hd2)	/dev/sdc
(hd1)	/dev/sdb

/dev/md0 /etc/fstab

Code:
/dev/md0             /                    ext3       acl,user_xattr        1 1
/dev/sda1            /boot                ext3       acl,user_xattr        1 2
/dev/md1             swap                 swap       pri=42                0 0
devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
proc                 /proc                proc       defaults              0 0
usbfs                /proc/bus/usb        usbfs      noauto                0 0
sysfs                /sys                 sysfs      noauto                0 0
/dev/dvd             /media/dvd           subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
/dev/cdrecorder      /media/dvd           subfs      noauto,fs=cdfss,ro,procuid,nosuid,nodev,exec,iocharset=utf8 0 0
 
mdadm /dev/md0

Code:
/dev/md0:
        Version : 00.90.03
  Creation Time : Mon Jun 13 11:24:36 2005
     Raid Level : raid5
     Array Size : 308286976 (294.01 GiB 315.69 GB)
  Used Dev Size : 154143488 (147.00 GiB 157.84 GB)
   Raid Devices : 3
  Total Devices : 2
Preferred Minor : 0
    Persistence : Superblock is persistent

    Update Time : Wed Feb 27 22:32:58 2008
          State : clean, degraded
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

         Layout : left-symmetric
     Chunk Size : 128K

           UUID : d6684a76:610f2d94:92bb2db2:6e944139
         Events : 0.28951198

    Number   Major   Minor   RaidDevice State
       0       8        2        0      active sync   /dev/sda2
       1       8       17        1      active sync   /dev/sdb1
       2       0        0        2      removed
 
hier mal noch das Bootlog

Code:
.
.
.
Loading kernel/drivers/ide/ide-disk.ko
Loading kernel/drivers/cdrom/cdrom.ko
Loading kernel/drivers/ide/ide-cd.ko
Loading kernel/fs/jbd/jbd.ko
Loading kernel/fs/ext3/ext3.ko
raidautorun ...
md: Autodetecting RAID arrays
md: autorun ...
md: considering sda2 ...
md:  adding sda2 ...
md: sda1 has different UUID to sda2
md: created md1
md: bind<sda2>
md: running: <sda2>
md: personality 2 is not loaded!
md: do_md_run() returned -22
md: md1 stopped.
md: unbind <sda2>
md: export_rdev<sda2>
md: considering sda1 ...
md:  adding sda1 ...
md: created md0
md: bind<sda1>
md: running: <sda1>
raid5: not enough operational devices for md0 (3/3)
RAID5 conf printout:
--- rd:3 wd:0 fd:3
raid5 failed to run raid set md0
md: pers->run() failed...
md: do_md_run() returned -22
md: md0 stopped.
md: unbind<sda1>
md: export_rdev<sda1>
md: ... autorun DONE
done ...
Waiting for device /dev/md0 to appear: ok
rootfs: major=9 minor=0 devn=2304
Mounting root /dev/md0
Usage: mount [-r] [-w] [-o optinons] [-t type] device directory
Kernel panic - not syncing: Attempting to kill init!
-
 
der md0 fehlt eine Platte, denn es sind nur 2 Platten eingebunden.

Ansonsten zeig mal bitte, was in deiner initrd für Treiber drinstehen.
 
Oben