Re: RAID1 question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu Sep 29, 2011 at 03:37:05PM -0400, William Thompson wrote:

> On Thu, Sep 29, 2011 at 08:26:11PM +0100, Robin Hill wrote:
> > On Thu Sep 29, 2011 at 02:34:57PM -0400, William Thompson wrote:
> > 
> > > Please keep me in the CC.  I am not on the list.
> > > 
> > > If I have a RAID1 of 2 disks and I decide to move them to another computer
> > > and recreate the raid, does it really need to do the initial recovery?
> > > 
> > You don't need to recreate the raid at all, just reassemble it. You may
> > want to update the homehost though, otherwise it will (IIRC) auto
> > assemble to md_126 (or so) instead of md0.
> 
> The reason I asked this was because a mirrored pair that I currently have is
> 0.90 version and I was going to use 1.0
> 
You _should_ be able to do a --create --assume-clean there, without
losing the data, but I'd go with a backup, --create, and restore jsut to
be safe.

> > > For that matter, when creating a RAID1 on 2 disks, is it really needed
> > > to do the initial recovery?
> > > 
> > > I understand why it's needed for RAID4/5/6 though.
> > >
> > Probably not, no. Anything written would go to both mirrors, and reads
> > of any un-mirrored areas are indeterminate anyway. You would lose the
> 
> I figured this would be the case.
> 
> > ability to check the array for mismatches though, and the recovery
> > process would bring everything into sync whenever it's run anyway. More
> 
> I've rarely done this.  On large disks, this takes may hours to perform.
> 
It can, but it also ensures the disks are readable. If you don't run
regular checks, in a recovery situation you may hit a bad block on a
supposedly good disk and have a heap more trouble to deal with.

> > of a question would be why not do the initial recovery? It doesn't delay
> > access to the array, and at least the I/O load is happening at a
> > controlled point (rather than at recovery time, when you have no
> 
> I guess the only reason I can come up with would be to avoid extra head
> seeks.  Well, that and the time it takes.
> 
> During the initial sync, if a write happens to an area that has been synced,
> does it go to all drives?  What about a write to an area that as not been
> synced yet?
> 
If the area has already been synced then writes will definitely go to
all members. I'm pretty sure this also happens in areas which haven't
been synced as well, but I'm not 100% on that.

Cheers,
    Robin
-- 
     ___        
    ( ' }     |       Robin Hill        <robin@xxxxxxxxxxxxxxx> |
   / / )      | Little Jim says ....                            |
  // !!       |      "He fallen in de water !!"                 |

Attachment: pgpUDUX8Tx1XK.pgp
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux