From: Michael Tokarev <mjt@tls.msk.ru>
To: Bryce <bryce@zeniv.linux.org.uk>
Cc: Dragos <dragos@mpigani.org>, linux-raid@vger.kernel.org
Subject: Re: assemble vs create an array.......
Date: Fri, 30 Nov 2007 20:40:18 +0300 [thread overview]
Message-ID: <47504B02.3030700@msgid.tls.msk.ru> (raw)
In-Reply-To: <47502406.8080809@zeniv.linux.org.uk>
Bryce wrote:
[]
> mdadm -C -l5 -n5 -c128 /dev/md0 /dev/sdf1 /dev/sde1 /dev/sdg1 /dev/sdc1 /dev/sdd1
...
> IF you don't have the configuration printout, then you're left with
> exhaustive brute force searching of the combinations
You're missing a very important point -- --assume-clean option.
For experiments like this (trying to figure out the order of disks),
you'd better ensure the data on disks isn't being changed while
you try different combinations. But on each build, md always
destroys one drive by re-calculating parity. You have to stop
it from doing so - to not trash your data.
Another option is to use one missing drive always, i.e.,
mdadm -C -l5 -n5 -c128 /dev/md0 /dev/sdf1 missing /dev/sdg1 /dev/sdc1 /dev/sdd1
so that the array will be degraded and no way to resync anything -
this also prevents md from trashing data.
/mjt
next prev parent reply other threads:[~2007-11-30 17:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-30 3:42 assemble vs create an array Dragos
2007-11-30 5:32 ` Neil Brown
2007-11-30 14:26 ` David Greaves
2007-12-01 6:48 ` Dragos
2007-12-01 7:23 ` Dragos
2007-12-04 13:14 ` Dragos
2007-12-05 11:39 ` David Greaves
2007-12-06 15:17 ` Dragos
2007-12-06 16:39 ` Michael Tokarev
2007-12-06 17:12 ` Eric Sandeen
2007-12-06 21:22 ` David Chinner
2008-02-03 7:42 ` Dragos
2007-11-30 14:53 ` Bryce
2007-11-30 17:40 ` Michael Tokarev [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-01-28 7:21 Dragos
2008-01-28 7:25 Dragos
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=47504B02.3030700@msgid.tls.msk.ru \
--to=mjt@tls.msk.ru \
--cc=bryce@zeniv.linux.org.uk \
--cc=dragos@mpigani.org \
--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).