From: Luca Berra <bluca@comedia.it>
To: linux-raid@vger.kernel.org
Subject: Re: Software RAID crash > /dev/md0: Invalid argument
Date: Thu, 16 Sep 2004 15:02:15 +0200 [thread overview]
Message-ID: <20040916130214.GA21249@percy.comedia.it> (raw)
In-Reply-To: <52074.10.0.0.151.1095334249.squirrel@10.0.0.151>
On Thu, Sep 16, 2004 at 07:30:49AM -0400, Scott Bolander wrote:
>I have a Mandrake 10 server with a 40gb boot drive and a three 200gb disk
>software raid 5 array using reiserfs. A disk went bad; so i have replaced
>it.
>
>Doing the normal things to get it back up don't work:
>
>[root@server root]#raidhotadd /dev/md0 /dev/hdg
....
># cat /etc/raidtab
>raiddev /dev/md0
>raid-level 5
>chunk-size 128k
>persistent-superblock 1
>nr-raid-disks 3
> device /dev/hdg1
> raid-disk 0
> device /dev/hdi1
> raid-disk 1
> device /dev/hdk1
> raid-disk 2
>
so you replaced the first disk in the array?
raidtools are not capable of handling this.
switch to mdadm
echo "DEVICE partitions" >> /etc/mdadm.conf
mdadm -Esc partitions | grep ARRAY >> /etc/mdadm.conf
mdadm -ARs
mdadm -a /dev/md0 /dev/hdg1
mv /etc/raidtab /etc/raidtab.FOOBAR (this is important)
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
next prev parent reply other threads:[~2004-09-16 13:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-16 11:30 Software RAID crash > /dev/md0: Invalid argument Scott Bolander
2004-09-16 13:02 ` Luca Berra [this message]
2004-09-16 13:35 ` Gordon Henderson
2004-09-16 14:57 ` Luca Berra
2004-09-17 0:37 ` Neil Brown
2004-09-17 1:07 ` Scott Bolander
2004-09-16 16:40 ` Guy
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=20040916130214.GA21249@percy.comedia.it \
--to=bluca@comedia.it \
--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 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.