From: Goswin von Brederlow <goswin-v-b@web.de>
To: John McNulty <johnmcn1@googlemail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: What will happen with spares in this scenario?
Date: Mon, 29 Jun 2009 18:08:56 +0200 [thread overview]
Message-ID: <87zlbruinb.fsf@frosties.localdomain> (raw)
In-Reply-To: <ab50889f0906290828s44e10b14n1af6d23556e3f0ee@mail.gmail.com> (John McNulty's message of "Mon, 29 Jun 2009 16:28:29 +0100")
John McNulty <johnmcn1@googlemail.com> writes:
> Hello,
>
> I have 16 disks and two RAID controllers, 8 disks per controller.
> These are c0d0 -> c0d7 and c1d0 -> c1d7. The first disk on each
> controller is configured with two partitions: 300MB (p1) and the rest
> of the disk (p2). Then I make some mirror plexes:
>
> c0d0p1 + c1d0p1 = md0
> c0d0p2 + c1d0p2 = md1
> c0d1p1 + c1d1p1 = md2
> c0d2p1 + c1d2p1 = md3
> c0d3p1 + c1d3p1 = md4
> c0d4p1 + c1d4p1 = md5
> c0d5p1 + c1d5p1 = md6
> c0d6p1 + c1d6p1 = md7
>
> Disks c0d7p1 and c1d7p1 are added to md7 as spares, and all the
> mirrors are configured to be in the same spare-group in mdadm.conf.
>
> If I loose a disk in a mirror other than md7, then md will steal a
> spare disk from md7 and use that. But what if the disk is c0d0 or
> c1d0? There are two mirror plexes sitting on top of these disks
> mirroring different partitions. Will md work this out, partition the
> spares accordingly and fix up both using one spare disk, or will it
> just break, or will it get really confused and try to use both the
> spares in md7 to resolve the situation?
>
> I think I already know what the answer's going to be and that I've
> just shot myself in the foot? Well, not quite as this isn't a live
> server yet so I have time to correct this.
Looks like it. I think it will use c0d7p1 to fix md0 and c1d7p1 to fix
md1. So drop md1, make c0d0p1 as big as the others and then partition
md0 eigther directly or via lvm.
Or write your own handler to add sparse to failing devices that knows
when it needs to partition.
> Rgds,
>
> John
MfG
Goswin
next prev parent reply other threads:[~2009-06-29 16:08 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-29 15:28 What will happen with spares in this scenario? John McNulty
2009-06-29 16:08 ` Goswin von Brederlow [this message]
2009-06-29 21:07 ` John McNulty
[not found] ` <BD450977-FA0D-4F63-8ADB-1314FA43E654@googlemail.com>
2009-06-30 4:26 ` Goswin von Brederlow
2009-06-30 8:16 ` John McNulty
2009-06-30 17:54 ` Goswin von Brederlow
2009-06-30 20:47 ` John McNulty
2009-07-01 6:57 ` Goswin von Brederlow
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=87zlbruinb.fsf@frosties.localdomain \
--to=goswin-v-b@web.de \
--cc=johnmcn1@googlemail.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