From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org, jeff@jeffunit.com
Subject: Re: problem during boot with linux software raid 5
Date: Sat, 14 Oct 2006 10:09:54 +0200 [thread overview]
Message-ID: <20061014080954.GD17336@percy.comedia.it> (raw)
In-Reply-To: <1160778501.8826.13.camel@dual_933>
On Fri, Oct 13, 2006 at 06:28:21PM -0400, jeff wrote:
>I am running mandrake 2006 linux.
s/mandrake/mandriva
>uname -a reports
>Linux dual_933 2.6.12-12mdksmp #1 SMP Fri Sep 9 17:43:23 CEST 2005 i686
>Pentium III (Coppermine) unknown GNU/Linux
not strictly related to your problem, but you should really consider
applying updates from your distribution.
<snip>
>When I rebooted, the reboot hung. I think for some reason it didn't
>automatically start the md0 device, and as a result it couldn't mount
>the /dev/md0 partition in my /etc/fstab. I went into single-user mode,
>and commented out the /dev/md0 line in /etc/fsab, and I was able to
>boot. Then I executed the mdadm --create line, uncommented /etc/fstab,
>and I was able to access my data.
the command to activate an already existing raid set is "mdadm
--assemble", not "mdadm --create"
>I was reading some documentation, and it said that you can use mdadm on
>either partitions or on a device (as I did). When you have partitions, I
>read that you should set the partition type to 0xFD so they get
>autodetected during boot. I can't do this, as I don't have partitions.
this is junk documentation do not believe in it :=)
mandriva boot process uses mdadm to assemble raid devices at boot time
but you need to tell mdadm which arrays it should find at boot by
editing /etc/mdadm.conf, just run the following code snippet:
#!/bin/sh
grep -qs '/^[[:space:]]*DEVICE' /etc/mdadm.conf || \
echo "DEVICE partitions" >> /etc/mdadm.conf
mdadm -Esc partitions | awk '
/^ARRAY[[:space:]]/ {
print $0, "auto=yes"
}
' >> /etc/mdadm.conf
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
prev parent reply other threads:[~2006-10-14 8:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-13 22:28 problem during boot with linux software raid 5 jeff
2006-10-14 8:09 ` Luca Berra [this message]
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=20061014080954.GD17336@percy.comedia.it \
--to=bluca@comedia.it \
--cc=jeff@jeffunit.com \
--cc=linux-raid@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).