Re: Postgresql data integrity during RAID10 drive rebuild

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Vivek Khera <vivek(at)khera(dot)org>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgresql data integrity during RAID10 drive rebuild
Date: 2006-11-29 20:40:59
Message-ID: 1164832859.14565.215.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2006-11-29 at 14:16, Vivek Khera wrote:
> On Nov 29, 2006, at 2:39 PM, Scott Marlowe wrote:
>
> >> Sounds good. According to LSI, the drive will take 8 hrs to rebuild a
> >> 146GB disc (at a 30% rebuild rate), so doing this in the middle of
> >> the
> >> day is not ideal.
> >
> > The rebuild time also tends to depend on how full the array is. If
> > you're only using 5% or so, it won't take the full 8 hours they're
> > projecting.
>
> But how does the RAID card know what is and what is not "full" in the
> unix file system stored on it? It has to rebuild the entire drive.

Not sure how they do it exactly, but it seems a lot of RAID controllers
know which parts of a drive have been written to and which haven't. I
recall seeing it happen on rebuilding a RAID 5 on an old LSI card.

It could just be that it's a lot faster if it's got zeros on a block and
can short circuit the parity there.

As for RAID 1+0, not sure if it will be faster or not.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ritesh Nadhani 2006-11-29 20:49:29 Re: Development of cross-platform GUI for Open Source DBs
Previous Message Dave Bodenstab 2006-11-29 20:39:01 Create index on array element?