All of lore.kernel.org
 help / color / mirror / Atom feed
* Linux raid wiki - force assembling an array where one drive has a different event count - advice needed
@ 2016-09-23 23:15 Wols Lists
  2016-09-23 23:46 ` Adam Goryachev
  0 siblings, 1 reply; 3+ messages in thread
From: Wols Lists @ 2016-09-23 23:15 UTC (permalink / raw)
  To: linux-raid

As I understand it, the event count on all devices in an array should be
the same. If they're a little bit different it doesn't matter too much.
My question is how much does it matter?

Let's say I've got a raid-5 and suddenly realise that one of the drives
has failed and been kicked from the array. What happens if I force a
reassemble? Or do a --re-add?

I don't actually have a clue, and if I'm updating the wiki I need to
know. What I would HOPE happens, is that the raid code fires off an
integrity scan, reading each stripe, and updating the re-added drive if
it's out-of-date. Is this what the bitmap enables? So the raid code can
work out what changes have been made since the drive has been booted?

Or does forced re-adding risk damaging the data because the raid code
can't tell what is out-of-date and what is current on the re-added drive?

Basically, what I'm trying to get at, is that if there's one disk
missing in a raid5, is a user better off just adding a new drive and
rebuilding the array (risking a failure in another drive), or are they
better off trying to add the failed drive back in, and then doing a
--replace.

And I guess the same logic applies with raid6.

Cheers,
Wol

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-09-24  3:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-23 23:15 Linux raid wiki - force assembling an array where one drive has a different event count - advice needed Wols Lists
2016-09-23 23:46 ` Adam Goryachev
2016-09-24  3:43   ` Phil Turmel

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.