Migrate Hard Drive Over IP

How to migrate a hard drive partition or lvm over a network. On the machine where you want the drive to be copied to (target)
  • Create a lvm the correct size
 lvcreate -L6G -n pbx-root VolGroup00?
  • start netcat
 nc -l 30000 |dd of=/dev/VolGroup00?/pbx-root
Note: you may need to disable the firewall or just open port 30000 On the machine where you are copying from (source)
 dd if=/dev/VolGroup00?/pbx-root |nc target.tld 30000
This may take some time - but when it is finished, both machines will return to the command prompt, with the target machine advising how much data has been transferred.

-- Michael Judd