View Single Post

   
  #4 (permalink)  
Old 01-16-2008, 09:56 AM
John Howells
 
Posts: n/a
Default Re: Is this an excissive time to copy a disk ?



Dave wrote:
>
> I'm trying to clone a bootable 36 GB disk to another identical 36 GB in
> single user mode.
>
> # touch /reconfigure
> # sync
> # sync
> # dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c2t5d0s2
>
> and after 9 hours the dd command has still not finished, and from what I
> gather (not being by the machine), there is not much sign of any disk
> activity. The disk are not antique models, so I am surprised that after
> 9 hours this has not copied. It that to be expected? I know it copies
> all the disk (even where there's no data), but am concerned it is just
> not going to work.



The default is for dd to copy 512 bytes at a time (I think), in a "read
512 / write 512" loop, and that makes things *VERY* slow! To speed
things up a *LOT* you need to add "bs=1024k" or some such so that it
copies one Mbyte at a time. But it'll probably still take a couple of
hours, assuming a resync on a mirrored 36G disk is anything to go by.

John Howells
Reply With Quote