You are not logged in.

#1 2008-05-04 17:17:13

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

mdadm raid1 stops to work after kernel panic

Accidentally I've booted with wrong grub parameters and my systems hanged with a kernel panic. After reboot my /dev/md2 device (raid1) stopped to work.
These are some logs:

wax@persifae:~$cat /proc/mdstat 
Personalities : [raid1] 
md2 : inactive sda1[0](S)
      293049600 blocks
       
md1 : active raid1 sdc6[0] sdb2[1]
      152264000 blocks [2/2] [UU]
      
md0 : active raid1 sdb1[1] sdc5[0]
      7815488 blocks [2/2] [UU]
      
unused devices: <none>
wax@persifae:~$sudo mdadm -Q /dev/md2
/dev/md2: is an md device which is not active
wax@persifae:~$sudo mdadm --assemble --scan /dev/md2
mdadm: failed to add /dev/sdc1 to /dev/md2: Invalid argument
mdadm: /dev/md2 assembled from 0 drives - not enough to start the array.
wax@persifae:~$cat /etc/mdadm.conf
ARRAY /dev/md0 level=raid1 num-devices=2 UUID=2a37b0a1:4b6b28fc:0209446b:c3b28f2a
ARRAY /dev/md1 level=raid1 num-devices=2 UUID=19c49c5d:e3193aa1:657f267b:b23c2dee
ARRAY /dev/md2 level=raid1 num-devices=2 UUID=62a5cb51:36ca61a3:1298e6c2:30fde3ba

Thanks in advance for your help tongue

Last edited by Foschini (2008-05-04 20:22:42)

Offline

#2 2008-05-05 07:38:06

_Marco_
Member
Registered: 2008-04-21
Posts: 242

Re: mdadm raid1 stops to work after kernel panic

hi, welcome here
you say "I booted with wrong grub parameters" so the system is ok except grub modifications.. have you tried to use a live cd,
mount the arch partition and edit grub to revert the changes?

Offline

#3 2008-05-05 07:51:04

Foschini
Member
From: Forli, Italy
Registered: 2007-01-28
Posts: 28

Re: mdadm raid1 stops to work after kernel panic

_Marco_ wrote:

hi, welcome here
you say "I booted with wrong grub parameters" so the system is ok except grub modifications.. have you tried to use a live cd,
mount the arch partition and edit grub to revert the changes?

Long story short I tried to use bootchart and i create a new grub menu called Arch linux bootchart, but I made a mistake and I wrote wrong raid1 partition. This is the code:

# (0) Arch Linux
title  Arch Linux
root    (hd0,0)
kernel /boot/vmlinuz26 root=/dev/md0 ro md=0,/dev/sdc5,/dev/sdb1 vga=795
initrd /boot/kernel26.img

# (1) Arch Linux
title  Arch Linux bootchart
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/md0 ro md=0,/dev/sdb5,/dev/sdc1 vga=795 init=/sbin/bootchartd WRONG LINE! LOOK AT THE PARTITION NUMBER :(
#initrd /boot/kernel26-fallback.img
initrd /boot/kernel26.img

I confused sdb and sdc. If i use the standard Archlinux my system boots correctly but the raid with sdc1 and sda1 partition doesn't work anymore.

Offline

Board footer

Powered by FluxBB