All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Brown <jbrown@orange.net>
To: Neil Brown <neilb@suse.de>
Cc: linux-raid@vger.kernel.org
Subject: Re: Newbie: Kernel panic during RAID1 test & reboot loses one disk
Date: Mon, 28 Aug 2006 23:53:27 +0200	[thread overview]
Message-ID: <44F365D7.2020001@orange.net> (raw)
In-Reply-To: <17650.19291.747235.505927@cse.unsw.edu.au>

Neil Brown wrote:
> On Saturday August 26, jbrown@orange.net wrote:
>> All,
>>
>> [...]
>>
>> * Problem 1: Since moving from 2.4 -> 2.6 kernel, a reboot kicks one 
>> device out of the array (c.f. post by Andreas Pelzner on 24th Aug 2006).
>>
>> * Problem 2: When booting my system, unless both disks plugged in, I get 
>> a kernel panic (oh dear!):
>>
>>  > mdadm md0 stopped
>>  > mdadm cannot open device /dev/hda6 no such device or address
>>  > mdadm /dev/hda6 has wrong uuid
>>  > mdadm no devices found for /dev/md0
>>  > ext3fs unable to read superblock
>>  > ecit 2 - unable to read superblock cramfs
>>  > kernel panic attempting to kill init
> 
> At a guess, I'd say something is wrong with your initramfs/initrd.
> Can you look inside it and see what /etc/mdadm/mdadm.conf contains?

Sure, this is the first time I've mounted an initrd, here goes:

# file /boot/initrd.img-2.6.8-3-386
[...]Linux Compressed ROM File System data, little endian size 4333568 
version #2 sorted_dirs CRC 0xa04ccaa3, edition 0, 2492 blocks, 312 files

# losetup /dev/loop0

# mkdir /tmp/initrdmount

# mount -t cramfs /dev/loop0 /tmp/initrdmount

# ls -al /tmp/initrdmount/etc/
total 1.0K
drwxr-xr-x  1 root root 64 1970-01-01 01:00 modprobe.d/
-rw-r--r--  1 root root  0 1970-01-01 01:00 mtab

There is no mdadm/mdadm.conf! What I should do about this?

> [...]
>> * System md logs don't mention hdc6
>> # grep md /var/log/messages
> 
>  grep -C 5 md /var/log/messages
> might be better as it gives a bit more context.l

I've put the messages here:

http://www.zen6780.zen.co.uk/messages.txt

Many thanks for your time.

James.

> But I'm betting on the initramfs being a problem.
> 
> NeilBrown
> -
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2006-08-28 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-26 21:31 Newbie: Kernel panic during RAID1 test & reboot loses one disk James Brown
2006-08-28  1:48 ` Neil Brown
2006-08-28 21:53   ` James Brown [this message]
2006-08-28 22:08     ` James Brown
2006-09-04  5:35     ` Neil Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=44F365D7.2020001@orange.net \
    --to=jbrown@orange.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.