1 |
On 1 Feb 2010, at 11:58, J. Roeleveld wrote: |
2 |
> ... |
3 |
> I am currently installing a new server and am using Linux software |
4 |
> raid to |
5 |
> merge 6 * 1.5TB drives in a RAID5 configuration. |
6 |
> |
7 |
> Creating the RAID5 takes over 20 hours (according to " cat /proc/ |
8 |
> mdstat ") |
9 |
> |
10 |
> Is there a way that will speed this up? The drives are new, but |
11 |
> contain random |
12 |
> data left over from some speed and reliability tests I did. I don't |
13 |
> care about |
14 |
> keeping the current 'data', as long as when the array is reliable |
15 |
> later. |
16 |
> |
17 |
> Can I use the " --assume-clean " option with mdadm and then expect |
18 |
> it to keep |
19 |
> working, even through reboots? |
20 |
> Or is this a really bad idea? |
21 |
|
22 |
|
23 |
It wasn't my intention to chide you - I don't use software RAID |
24 |
myself, and your question piqued my curiosity - but the first three |
25 |
Google hits for "assume-clean" indicate that this isn't safe to use |
26 |
with RAID5. |
27 |
|
28 |
The 4th Google hit contains an extract from the manpage: |
29 |
|
30 |
... It can |
31 |
also be used when creating a RAID1 or RAID10 if you want |
32 |
to avoid the initial resync, however this practice -- |
33 |
while normally safe -- is not recommended. Use this |
34 |
only if you really know what you are doing. |
35 |
|
36 |
|
37 |
I have to say that I don't fully understand this. I would have thought |
38 |
that one could pretend the entire array was empty, and the RAID driver |
39 |
would just overwrite the disk as you write to the filesystem. The |
40 |
parts used by the filesystem are the only parts you care about, and I |
41 |
wouldn't have thought it would matter if the unused parts weren't in |
42 |
sync. I would be delighted if someone could explain me. |
43 |
|
44 |
I kinda expected this 20 hours to be spent verifying that the disks |
45 |
contain no bad sectors, which would really hose you if it were the case. |
46 |
|
47 |
But OTOH, 20 hours does not seem an outrageous amount of time for |
48 |
building a 7.5TB array. You're not going to do this often, and you |
49 |
want it done right. |
50 |
|
51 |
It would be interesting to know whether hardware RAID would behave any |
52 |
differently or allow the sync to perform in the background. I have |
53 |
only 1.5TB in RAID5 across 4 x 500gb drives at present; IIRC the |
54 |
expansion from 3 x drives took some hours, but I can't recall the |
55 |
initial setup. |
56 |
|
57 |
Stroller. |