Re: Quick question regarding RAID1




Jeroen Geilman wrote:
pzaloum@xxxxxxxxx wrote:

I have a raid array currently building using linux software raid
(mdadm) ...

The initial synching of the array naturally takes a good long time to
complete..

Why ? If you have just created this array both members will be empty.
It took roughly 5 minutes on my mirrored 36GB drives.
If you mean you started out with a single drive and later added a mirror to
that, yes, it might take a while, but then I would not do that to begin
with - I'd wipe out both drives, do a quick init and restore from backup.


Yes I am starting from a pre-existing partition on my drive 0 when i
created the array. I did not want the files to be unavailable while
copying them from temporary storage or whatnot into the raid

I was just curious to know: if i do a --remove on one of the array
drive devices and later do a --re-add for the same disk to bring it
back into the array will the resync process take as long as the initial
one? or will it go faster since it virtually has no differences between
itself and the peer drive it is now rejoining?

When you add a drive the system will probably assume it is a replacement -
the copy operation will take just as long in that case.
Unless the raid driver is really smart, and reads the data to compare it
before writing it over.
But that operation is only fast when both drives are guaranteed to be almost
identical in content - if you added a completely new drive this procedure
would take significantly longer than a dumb copy.

Maybe i wasn't clear but the drive i am removing is a previously
healthy mirror. Some minor changes may occur between removal and adding
but generally they will remain identical...


It's a lot more likely that mdadm will just do a dumb copy.

I think the documentation will tell you all you want to know about it.


--
All your bits are belong to us.

.



Relevant Pages

  • Re: SQL 2005 clustered virtual server
    ... We are implementing a 2 node SQL 2005 cluster with SAN array. ... 1 mirror for the logs and 5x mirrors for data in which I am ... further 2x 72GB drives. ... ---rootdisk2 (another drive letter, physical disk resource) ...
    (microsoft.public.windows.server.clustering)
  • Re: RAID options
    ... scenario you can yank the two partners and use them as fallback should ... This would also be my motivation for the additional drives, ... have OS and programs on the mirror and DATA on the RAID5, ... >> Though SBS is IO intensive performance of the array should not be your ...
    (microsoft.public.windows.server.sbs)
  • [Summary] saving disksuite info while rebuilding server
    ... "Caution - If a full install of Solaris is performed, ... make sure you have tape backups of everything. ... I had an old workgroup storage array with six 18G drives formatted RAID5 ...
    (SunManagers)
  • Re: best practice for hard drive upgrade
    ... pulled 2nd 250, rebuilt array, and ended up with a 250gb array. ... Apparently this RAID card - promise tx4310 - will not resize the array. ... If the original array consisted of 36GB drives a, ... Plug in one of your 500's and rebuild the array between the 250 and it. ...
    (microsoft.public.windows.server.sbs)
  • Re: Problems with software RAID on SATA
    ... Connected to this are two 320GB drives ... >>which I want to turn into a RAID1 array. ... >>I'm almost certain it's a problem with initting the RAID arrays at boot. ...
    (Debian-User)