RE: resync duration ?

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

 



> >> A resync reads all the data and checks the parity.  If it find bad
> >> parity (which is likely to be very rare) then it corrects it.
> >> So resync should run at the full speed of the hardware, just reading.
> >
> > It will?  Maybe I am just mis-remembering, but I thought I saw the same
> > note
> > in the log when the resync occurred (ckarray) as when a recovery was in
> > progress:
> >
> > May 14 22:40:42 Backup kernel: [ 8083.747787] md: recovery of RAID array
> > md0
> > May 14 22:40:42 Backup kernel: [ 8083.747789] md: minimum _guaranteed_
> > speed: 1000 KB/sec/disk.
> > May 14 22:40:42 Backup kernel: [ 8083.747791] md: using maximum
> available
> > idle IO bandwidth (but not more than 200000 KB/sec) for recovery.
> > May 14 22:40:42 Backup kernel: [ 8083.747797] md: using 128k window,
> over
> > a
> > total of 1465138432 blocks.
> >
> > Am I mis-remembering, or am I missing something here?
> 
> It isn't clear to me exactly what you are asking...
> 
> It says it won't use more than 200MB/sec, which is true. But that is
> per-device, and few devices can deliver that yet.

Oh.  I thought it meant for the entire array.  Yeah, 200MBps is pretty far
out there, at least for a sustained rate.  SATA II can burst to that, but
few drives can manage much more than 50 MBps, sustained.

> It says "using maximum available", so it if you want the bandwidth
> for something else, it will back off.
> 
> It prints the same message for resync as for recovery.

Ah, so I'm not going crazy, I just have a comprehension problem.

Hmmm.  I'm not sure which is worse. :-)

> > Oh, while I am thinking of it, ckarray runs every month on the first of
> > the
> > month, but how can one trigger it manually?
> 
>   echo check > /sys/block/mdX/md/sync_action.
> 
> or "echo repair" to get it to fix anything it finds.

Thanks.  Those are pretty easy, but it would be nice if they were in the MAN
page.  Better yet, have you considered adding both as command line options
for mdadm?

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[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