linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RAID5 initial resync: faster vs more secure
@ 2008-03-20 16:58 Hubert Verstraete
  2008-03-25  5:15 ` Neil Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Hubert Verstraete @ 2008-03-20 16:58 UTC (permalink / raw)
  To: linux-raid

Hi list

Each time I create a RAID5 array, by default, as a degraded array with a 
spare, I cannot stop and restart the array unless the initial resync has 
completed. If I do so, the resync is not resumed when the array is 
re-assembled.
Is this due to the fact that one disk is a spare, but md actually 
doesn't know which of the disks is the spare one ?

Assuming that there is no bug and no workaround about this issue, I 
think the following: when one cannot guarantee the array won't be 
stopped until the resync completes, one should better create the RAID5 
array with the -f option. Indeed, when I use -f, I can stop the array 
and restart it, the resync will be resumed where it had stopped.
The cost of this is that the initial resync runs slower.

Comments are welcome.

Thanks,
Hubert

PS: the reshape patch from Neil on 03/03/08 does not fix the issue.

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

* Re: RAID5 initial resync: faster vs more secure
  2008-03-20 16:58 RAID5 initial resync: faster vs more secure Hubert Verstraete
@ 2008-03-25  5:15 ` Neil Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2008-03-25  5:15 UTC (permalink / raw)
  To: Hubert Verstraete; +Cc: linux-raid

On Thursday March 20, hubskml@free.fr wrote:
> Hi list
> 
> Each time I create a RAID5 array, by default, as a degraded array with a 
> spare, I cannot stop and restart the array unless the initial resync has 
> completed. If I do so, the resync is not resumed when the array is 
> re-assembled.
> Is this due to the fact that one disk is a spare, but md actually 
> doesn't know which of the disks is the spare one ?

No.  It is due to that fact that the v0.90 metadata has no convenient
place to record how far the recovery has progressed.

If you use --metadata=1 when creating the array, it will be able to
record the status of incomplete recovery and restart is properly.

NeilBrown


> 
> Assuming that there is no bug and no workaround about this issue, I 
> think the following: when one cannot guarantee the array won't be 
> stopped until the resync completes, one should better create the RAID5 
> array with the -f option. Indeed, when I use -f, I can stop the array 
> and restart it, the resync will be resumed where it had stopped.
> The cost of this is that the initial resync runs slower.
> 
> Comments are welcome.
> 
> Thanks,
> Hubert
> 
> PS: the reshape patch from Neil on 03/03/08 does not fix the issue.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2008-03-25  5:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-20 16:58 RAID5 initial resync: faster vs more secure Hubert Verstraete
2008-03-25  5:15 ` Neil Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).