From: Robin Hill <robin@robinhill.me.uk>
To: "BERTRAND Joël" <joel.bertrand@systella.fr>
Cc: linux-raid@vger.kernel.org
Subject: Re: Adding a new disk after disk failure on raid6 volume
Date: Tue, 20 Dec 2011 09:21:46 +0000 [thread overview]
Message-ID: <20111220092146.GA10387@cthulhu.home.robinhill.me.uk> (raw)
In-Reply-To: <75d55f4581b6ae45b8131ff989836028@systella.fr>
[-- Attachment #1: Type: text/plain, Size: 2795 bytes --]
On Tue Dec 20, 2011 at 09:46:13AM +0100, BERTRAND Joël wrote:
> Hello,
>
> I use several softraid volumes for a very long time. Last week, a disk
> has crashed on a raid6 volume and I have tried to replace faulty disk.
> Today, when Linux boots, it only assembles this volume if the new disk
> is marked as 'faulty' or 'removed', and I don't understand...
>
> System is a sparc64-smp server running linux debian/testing :
>
> Root rayleigh:[~] > uname -a
> Linux rayleigh 2.6.36.2 #1 SMP Sun Jan 2 11:50:13 CET 2011 sparc64
> GNU/Linux
> Root rayleigh:[~] > dpkg-query -l | grep mdadm
> ii mdadm 3.2.2-1
>
> Faulty device is /dev/sde1 :
>
> Root rayleigh:[~] > cat /proc/mdstat
> Personalities : [raid1] [raid6] [raid5] [raid4]
> md7 : active raid6 sdc1[0] sdi1[6] sdh1[5] sdg1[4] sdf1[3] sdd1[1]
> 359011840 blocks level 6, 64k chunk, algorithm 2 [7/6] [UU_UUUU]
>
> All disks (/dev/sd[cdefghi]) are same model (Fujitsu SCA-2 73 GB) and
> each disk only contains one partition (type FD, linux autodetect). If I
> add /dev/sde1 to raid6 with mdadm -a /dev/md7 /dev/sde1, disk is added
> and my raid6 runs with all disks. But I obtain the same superblock on
> /dev/sde1 and /dev/sde ! If I remove /dev/sde superblock, /dev/sde1 one
> disappears also (i think that both superblocks are the same).
>
<- SNIP info ->
>
> All disks return same information except /dev/sde when it is running
> (mdadm --examine /dev/sde and mdadm --examine /dev/sde1 return the same
> information). What is my mistake ? Is this a known issue ?
>
It's a known issue with 0.9 superblocks, yes. There's no information in
the superblock with allows md to tell whether it's on the partition or
the disk, so for full-disk partitions the same superblock could be valid
for both. 0.1 superblocks contain extra information which can be used to
differentiate between these. I'm a little surprised that the other
drives don't get detected in the same way though.
The standard suggestions are either to change the mdadm.conf file to
look only at partitions for arrays (e.g. DEVICE /dev/sd*1), or (more
complicated) to re-create the array using a version 1 superblock. This
can be done without losing the data, but you need to be very careful to
use the 1.0 superblock and the exact same parameters you used for the
original array (with the disks in the same order). Neil has posted
instructions for this fairly recently, so you should be able to find
those in the archives.
HTH,
Robin
--
___
( ' } | Robin Hill <robin@robinhill.me.uk> |
/ / ) | Little Jim says .... |
// !! | "He fallen in de water !!" |
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2011-12-20 9:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 8:46 Adding a new disk after disk failure on raid6 volume BERTRAND Joël
2011-12-20 9:21 ` Robin Hill [this message]
2011-12-20 11:39 ` John Robinson
2011-12-20 22:17 ` BERTRAND Joël
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=20111220092146.GA10387@cthulhu.home.robinhill.me.uk \
--to=robin@robinhill.me.uk \
--cc=joel.bertrand@systella.fr \
--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).