From: Daniel Pittman <daniel@rimspace.net>
To: linux-raid@vger.kernel.org
Subject: Re: Degraded raid5 returns mdadm: /dev/hdc5 has no superblock - assembly aborted
Date: Fri, 08 Jul 2005 13:38:48 +1000 [thread overview]
Message-ID: <874qb6m0fr.fsf@enki.rimspace.net> (raw)
In-Reply-To: 42CDE44C.9020804@phys.unsw.edu.au
On 8 Jul 2005, Melinda Taylor wrote:
> We have a computer based at the South Pole which has a degraded raid 5
> array across 4 disks. One of the 4 HDD's mechanically failed but we have
> bought the majority of the system back online except for the raid5
> array. I am pretty sure that data on the remaining 3 partitions that
> made up the raid5 array is intact - just confused. The reason I know
> this is that just before we took the system down, the raid5 array
> (mounted as /home) was still readable and writable even though
> /proc/mdstat said:
[...]
> /*[root@planet mdadm-1.12.0]# mdadm --assemble --force /dev/md2
> /dev/hdd5 /dev/hda5 /dev/hdb5 /dev/hdc5
> mdadm: no RAID superblock on /dev/hdc5
> mdadm: /dev/hdc5 has no superblock - assembly aborted
>
> *//dev/hdc is the new disk I have just installed to replace the failed
> one (/dev/hda). I have parititioned it correctly and in fact one
> partition on /dev/hdc1 is now happily part of another raid1 set on the
> system so I know all is good with /dev/hdc
What you want to do is start the array as degraded, using *only* the
devices that were part of the disk set. Substitute 'missing' for the
last device if needed but, IIRC, you should be able to say just:
] mdadm --assemble --force /dev/md2 /dev/hd[abd]5
Don't forget to fsck the filesystem thoroughly at this point. :)
Once the array is up and running, you *then* add the new disk to it by
saying:
] mdadm -a /dev/md2 /dev/hdc5
The array will then recover and, hopefully, life is good.
Daniel
--
Anyone who goes to a psychiatrist ought to have his head examined.
-- Samuel Goldwyn
next prev parent reply other threads:[~2005-07-08 3:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-08 2:26 Degraded raid5 returns mdadm: /dev/hdc5 has no superblock - assembly aborted Melinda Taylor
2005-07-08 3:38 ` Daniel Pittman [this message]
2005-07-08 8:43 ` Molle Bestefich
2005-07-08 9:26 ` Daniel Pittman
2005-07-08 11:24 ` Neil Brown
2005-07-08 17:53 ` Molle Bestefich
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=874qb6m0fr.fsf@enki.rimspace.net \
--to=daniel@rimspace.net \
--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).