[ale] dd hard drive cloning over a network

David Tomaschik david at systemoverlord.com
Tue Jan 4 20:26:05 EST 2011


Why would dd straight to & from LVM do anything?  A logical volume
should be just a block device to any app, including dd.

David


On 01/04/2011 04:24 PM, Ken Price wrote:
>
> James gave you some good suggestions, here's how you do it over SSH
> from the source machine.
>
>     * (On source machine) dd if=/dev/sda | ssh root@[destination] dd
>       of=/dev/sda
>
> Something that's important to note.  You don't want to copy a LVM
> volume over the network to another LVM volume.  It won't work
> correctly and you'll corrupt the destination volume.  You can,
> however, copy to a file on the remote machine, and then to the
> destination LVM volume.
>
>     * (On source machine) dd if=/dev/VolGroup/LogVol00 | ssh
>       root@[destination] dd of=/home/somefilename.dump
>     * (On destination machine) dd if=/home/somefilename.dump
>       of=/dev/VolGroup/DestinationVol
>
> I always add bs=64k to the source dd command to speed things up, but
> it's up to you.  Hope this helps.
>
> Ken
>
>  
>
> On Tue, 4 Jan 2011 20:01:58 +0000, wrote:
>
>> Hi..
>> I need to dd a hard drive from a machine on one box to a machine on another box over a tcp network connection. How would you do that? Would some kind of fancy command using netpipes do the job? 
>>
>> -Jim Butler
>> Sent from my BlackBerry Smartphone provided by Alltel
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org <mailto:Ale at ale.org>
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20110104/58ac3b2f/attachment.html 


More information about the Ale mailing list