resync (what is it doing when making a new array?)
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/
Quoted 2 lines · Eli Cantu
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. :)
Quoted 3 lines
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
Signature · 3 lines
I have always detested the belief that sex is the chief bond
between man and woman. Friendship is far more human.
-- Agnes SmedleyQuoted 2 lines · Eli Cantu
(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
Quoted 7 lines
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/
Quoted 11 lines · Gordon Henderson
Quoted 2 lines · Eli Cantu
(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_________