Re: how to clone a disk

2006-03-11 Thread PFC
I have a raid5 array that contain 4 disk and 1 spare disk. now i saw one disk have sign of going fail via smart log. Better safe than sorry... replace the failing disk and resync, that's all. You might want to do cat /dev/md# /dev/null, or cat /dev/hd? /dev/null first. This is

Re: how to clone a disk

2006-03-11 Thread Mike Hardy
I can think of two things I'd do slightly differently... Do a smartctl -t long on each disk before you do anything, to verify that you don't have single sector errors on other drives Use ddrescue for better results copying a failing drive -Mike PFC wrote: I have a raid5 array that contain

Re: how to clone a disk

2006-03-11 Thread Ming Zhang
On Sat, 2006-03-11 at 06:53 -0500, Paul M. wrote: Since its raid5 you would be fine just pulling the disk out and letting the raid driver rebuild the array. If you have a hot spare yes, rebuilding is the simplest way. but rebuild will need to read all other disks and write to the new disk. when

Re: how to clone a disk

2006-03-11 Thread Ming Zhang
On Sat, 2006-03-11 at 08:55 -0800, Mike Hardy wrote: I can think of two things I'd do slightly differently... Do a smartctl -t long on each disk before you do anything, to verify that you don't have single sector errors on other drives will this test interfere with normal disk io activity?

Re: how to clone a disk

2006-03-11 Thread Ming Zhang
thanks a lot! ming On Sat, 2006-03-11 at 15:08 -0800, Mike Hardy wrote: Ming Zhang wrote: On Sat, 2006-03-11 at 08:55 -0800, Mike Hardy wrote: I can think of two things I'd do slightly differently... Do a smartctl -t long on each disk before you do anything, to verify that you

Re: how to clone a disk

2006-03-11 Thread dean gaudet
On Sat, 11 Mar 2006, Ming Zhang wrote: On Sat, 2006-03-11 at 06:53 -0500, Paul M. wrote: Since its raid5 you would be fine just pulling the disk out and letting the raid driver rebuild the array. If you have a hot spare yes, rebuilding is the simplest way. but rebuild will need to read

Re: how to clone a disk

2006-03-11 Thread Ming Zhang
On Sat, 2006-03-11 at 16:15 -0800, dean gaudet wrote: On Sat, 11 Mar 2006, Ming Zhang wrote: On Sat, 2006-03-11 at 06:53 -0500, Paul M. wrote: Since its raid5 you would be fine just pulling the disk out and letting the raid driver rebuild the array. If you have a hot spare yes,

Re: how to clone a disk

2006-03-11 Thread dean gaudet
On Sat, 11 Mar 2006, Ming Zhang wrote: On Sat, 2006-03-11 at 16:15 -0800, dean gaudet wrote: you're planning to do this while the array is online? that's not safe... unless it's a read-only array... what i plan to do is to pull out the disk (which is ok now but going to die), so

Re: how to clone a disk

2006-03-11 Thread dean gaudet
On Sat, 11 Mar 2006, Ming Zhang wrote: On Sat, 2006-03-11 at 16:31 -0800, dean gaudet wrote: if you fail the disk from the array, or boot without the failing disk, then the event counter in the other superblocks will be updated... and the removed/failed disk will no longer be considered

Re: how to clone a disk

2006-03-11 Thread Ming Zhang
On Sat, 2006-03-11 at 16:47 -0800, dean gaudet wrote: On Sat, 11 Mar 2006, Ming Zhang wrote: On Sat, 2006-03-11 at 16:31 -0800, dean gaudet wrote: if you fail the disk from the array, or boot without the failing disk, then the event counter in the other superblocks will be updated...