[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
- cloning to multiple drives with the "dd" command., didier chavaroche, 2015/02/18
- Re: cloning to multiple drives with the "dd" command., Pádraig Brady, 2015/02/18
- Re: cloning to multiple drives with the "dd" command., didier chavaroche, 2015/02/19
- Re: cloning to multiple drives with the "dd" command., Bernhard Voelker, 2015/02/19
- Re: cloning to multiple drives with the "dd" command., Bob Proulx, 2015/02/19
- Re: cloning to multiple drives with the "dd" command., didier chavaroche, 2015/02/20
- Re: cloning to multiple drives with the "dd" command., Mike Hodson, 2015/02/20
- Re: cloning to multiple drives with the "dd" command., Sami Kerola, 2015/02/20
- Re: cloning to multiple drives with the "dd" command.,
Bernhard Voelker <=
- Re: cloning to multiple drives with the "dd" command., didier chavaroche, 2015/02/23
- Re: cloning to multiple drives with the "dd" command., Bob Proulx, 2015/02/23
- Re: cloning to multiple drives with the "dd" command., Ray Dillinger, 2015/02/23