coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cloning to multiple drives with the "dd" command.


From: Bernhard Voelker
Subject: Re: cloning to multiple drives with the "dd" command.
Date: Fri, 20 Feb 2015 11:42:54 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

On 02/20/2015 11:04 AM, Sami Kerola wrote:
Is there a reason why

$ dd if=/dev/zero count=1 of=/tmp/a of=/tmp/b

could not be made to write to two, or any number of of= destinations,
in single execution?

Because we have tee(1)

dd if=$SOURCE $I_OPTS \
  | tee \
      >( dd $O_OPTS of=$TARGET1 ) \
      >( dd $O_OPTS of=$TARGET2 ) \
      >( dd $O_OPTS of=$TARGET3 ) \
      >( dd $O_OPTS of=$TARGET4 )

Getting the errors of the writing dd processes would
be a bit hard though.

Anyway, this doesn't avoid the IO bottleneck, it just avoids
to read $SOURCE n-times.  IMO having more than 3-4 dd's in
parallel is only slowing down the whole process. Maybe the
'nochache' flag could help to avoid flooding the system cache
at least.

Have a nice day,
Berny





reply via email to

[Prev in Thread] Current Thread [Next in Thread]