Thread (10 messages) 10 messages, 4 authors, 2010-03-15

Re: Growing after replacing with larger discs

From: John Robinson <hidden>
Date: 2010-03-13 18:13:20

On 13/03/2010 15:21, Majed B. wrote:
You should never degrade the array to copy its contents. Its very
risky. There might be bad sectors on one or more disks and if you
don't have all disks at hand, you may not be able to rebuild the array
on the new disk.
OK that's fair, you're right I don't want to risk losing data because I 
was using a degraded array.
As for using dd, as others have pointed, the metadata won't be in
place and if you create a new array after using dd, it'll still
require a resync and the data will be destroyed.
I don't see whay either it'd require a resync - although I didn't say 
it, I was planning to zero the rest of the larger drives and recreate 
with --assume-clean - nor why data would be destroyed if I didn't create 
with --assume-clean, after all the data will all be in the right place.

But I think on balance I'm going to save the contents of the original 
array to an extra drive, create a new array on the big discs, and copy 
the data back. It shouldn't take too much more time than copying the 
discs individually with dd, even though I'm copying the data twice 
rather than once, and it's both safer and gives me a free defrag.

Cheers,

John.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help