All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Molter <philip@corp.texas.net>
To: linux-raid@vger.kernel.org
Subject: Re: Force parity resync on raid5?
Date: Tue, 10 Aug 2004 07:03:52 -0500	[thread overview]
Message-ID: <4118B9A8.2040102@corp.texas.net> (raw)

Gordon Henderson wrote:

> On Mon, 9 Aug 2004, Philip Molter wrote:
> 
> 
>>How do I force a parity resync on a raid5 array?  Under 2.4, I would do
>>this by hard cycling the box and when it came back up, it would
>>automatically resync the array.  Under 2.6, this appears to have gone away.
> 
> 
> I don't know about 2.6, (still living with 2.4) but can't you simply do:
> 
>   raidhotremove /dev/mdX /dev/hdYZ
> 
> followed by
> 
>   raidhotadd /dev/mdX /dev/hdYZ
> 
> or /dev/sdYZ if SCSI disks...
> 
> However, picking the right disk to remove might be tricky... And if you
> were at all unsure about data on the disks, maybe rebooting and doing a
> hard fsck of the partition(s) in maintenance mode might be a good thing
> too...

Nope, I want something that will specifically resync the parity from the
known good data on the disks.  Thanks to the raid5 resync bug from
earlier 2.6 kernels, I have hundreds of systems with terabytes of data
that have perfectly good data sitting on raid5 arrays with corrupt
parity.  If I remove a drive to force a resync, the data is immediately
corrupted.

Linux RAID *has* to have sort of way to force a parity resync.  If it
doesn't have one, it needs one.  That's a glaring omission to make.

Philip



             reply	other threads:[~2004-08-10 12:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10 12:03 Philip Molter [this message]
2004-08-10 12:39 ` Force parity resync on raid5? Neil Brown
2004-08-10 14:30   ` Philip Molter
2004-08-11  2:28     ` Neil Brown
2004-08-11  3:37       ` Philip Molter
2004-08-11  9:23       ` David Greaves
  -- strict thread matches above, loose matches on Subject: below --
2004-08-12 17:15 Salyzyn, Mark
2004-08-12 18:16 ` Guy
2004-08-09 23:10 Philip Molter
2004-08-10  9:04 ` Gordon Henderson
2004-08-12  4:06   ` Guy
2004-08-12 11:52     ` Philip Molter
2004-08-12 12:31     ` David Greaves
2004-08-12 15:22       ` Guy
2004-08-12 16:26         ` David Greaves
2004-08-12 17:07           ` Philip Molter

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=4118B9A8.2040102@corp.texas.net \
    --to=philip@corp.texas.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 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.