linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* resync (what is it doing when making a new array?)
@ 2004-08-08  0:25 Eli Cantu
  2004-08-08  3:23 ` Daniel Pittman
  2004-08-08  7:24 ` Gordon Henderson
  0 siblings, 2 replies; 5+ messages in thread
From: Eli Cantu @ 2004-08-08  0:25 UTC (permalink / raw)
  To: linux-raid

Hello All,

I've gone through the faq, archives, newsgroups, google etc.

I cannot find an answer to my question: After creating a new array, why is the
time consuming resync required?


I've built a few hardware RAID 5 arrays in my time using Mylex, Adaptec, AMI
etc. I don't recall this hours long, sometimes days long initial resync using
hardware raid.

What's written to the disks using linux raid, and why isn't it used in hardware
raids?

Thanks,
~e

(watching a raid 5 array, composed of five 250gb disks, resyncing...to be
completed 16 hours from now...)

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


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

* Re: resync (what is it doing when making a new array?)
  2004-08-08  0:25 resync (what is it doing when making a new array?) Eli Cantu
@ 2004-08-08  3:23 ` Daniel Pittman
  2004-08-08 14:49   ` Eli Cantu
  2004-08-08  7:24 ` Gordon Henderson
  1 sibling, 1 reply; 5+ messages in thread
From: Daniel Pittman @ 2004-08-08  3:23 UTC (permalink / raw)
  To: linux-raid

On 8 Aug 2004, Eli Cantu wrote:
> I cannot find an answer to my question: After creating a new array, why is the
> time consuming resync required?

Because the disks need to contain the correct data, or they will cause
faults when you try to use them after a disk failure. :)

> I've built a few hardware RAID 5 arrays in my time using Mylex, Adaptec, AMI
> etc. I don't recall this hours long, sometimes days long initial resync using
> hardware raid.

Usually, this is handled by either doing the sync in the background
quietly, or by keeping an NVRAM bitmap of "unclean" blocks that starts
with all the bits set.

Regards,
        Daniel
-- 
I have always detested the belief that sex is the chief bond
between man and woman. Friendship is far more human.
        -- Agnes Smedley


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

* Re: resync (what is it doing when making a new array?)
  2004-08-08  0:25 resync (what is it doing when making a new array?) Eli Cantu
  2004-08-08  3:23 ` Daniel Pittman
@ 2004-08-08  7:24 ` Gordon Henderson
  2004-08-09 20:55   ` Jon Lewis
  1 sibling, 1 reply; 5+ messages in thread
From: Gordon Henderson @ 2004-08-08  7:24 UTC (permalink / raw)
  To: Eli Cantu; +Cc: linux-raid

On Sat, 7 Aug 2004, Eli Cantu wrote:

> (watching a raid 5 array, composed of five 250gb disks, resyncing...to
> be completed 16 hours from now...)

One thing to check (if it's IDE drives) is that they are working in DMA
mode - use hdparm /dev/hda, etc. to check and force DMA if necessary
(although you might need to re-compile your kernel to include the correct
drivers for your IDE hardware)

It'll still take a long time with 250GB drives, though.

Other things you can fiddle with are

  /proc/sys/dev/raid/speed_limit_max
  /proc/sys/dev/raid/speed_limit_min

which will affect resync speed versus array accessibility during the
recync.

Gordon


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

* Re: resync (what is it doing when making a new array?)
  2004-08-08  3:23 ` Daniel Pittman
@ 2004-08-08 14:49   ` Eli Cantu
  0 siblings, 0 replies; 5+ messages in thread
From: Eli Cantu @ 2004-08-08 14:49 UTC (permalink / raw)
  Cc: linux-raid

> Usually, this is handled by either doing the sync in the background
> quietly, or by keeping an NVRAM bitmap of "unclean" blocks that starts
> with all the bits set.
>
> Regards,
>         Daniel
> --

Thanks Daniel & Gordon,

I suspected as much. Well, it's a new day and my array finished resyncing. Yea!

~e


-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/


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

* Re: resync (what is it doing when making a new array?)
  2004-08-08  7:24 ` Gordon Henderson
@ 2004-08-09 20:55   ` Jon Lewis
  0 siblings, 0 replies; 5+ messages in thread
From: Jon Lewis @ 2004-08-09 20:55 UTC (permalink / raw)
  To: linux-raid

On Sun, 8 Aug 2004, Gordon Henderson wrote:

> On Sat, 7 Aug 2004, Eli Cantu wrote:
>
> > (watching a raid 5 array, composed of five 250gb disks, resyncing...to
> > be completed 16 hours from now...)
>
> One thing to check (if it's IDE drives) is that they are working in DMA
> mode - use hdparm /dev/hda, etc. to check and force DMA if necessary
> (although you might need to re-compile your kernel to include the correct
> drivers for your IDE hardware)
>
> It'll still take a long time with 250GB drives, though.

16 hours seems kind of long.  I've recently been dealing with a 6 200gb
drive (SATA) sw RAID5, and resyncs took around 3 hours on an otherwise
totally idle P4 2.4ghz.

----------------------------------------------------------------------
 Jon Lewis                   |  I route
 Senior Network Engineer     |  therefore you are
 Atlantic Net                |
_________ http://www.lewis.org/~jlewis/pgp for PGP public key_________

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

end of thread, other threads:[~2004-08-09 20:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-08  0:25 resync (what is it doing when making a new array?) Eli Cantu
2004-08-08  3:23 ` Daniel Pittman
2004-08-08 14:49   ` Eli Cantu
2004-08-08  7:24 ` Gordon Henderson
2004-08-09 20:55   ` Jon Lewis

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).