transfer snippets

Transfer partition from one server to another

Tagged lvm, backup, transfer  Languages bash

The following is an example of how to transfer a partition from one server to another.

In the example, I first create a file containing the partition, and then transfer the partition to the other server.

dd if=/dev/xen-1/ of=/tmp/file
scp /tmp/file [email protected]:/file

I then SSH to the other server and create the partition from the file.

ssh host
lvcreate -L 4G /dev/VG00/
cat > /dev/aktagon-1/

Remember to create a backup before running these commands.