Using dd Clone Server or P2P P2V V2V V2P
Exactly same hardware.
Different hardware.
Virtual Machian
In my case 2 HP ProLiant DL385, one server is year old and seen come to DC is it on from there we have clone using following.
HP ProLiant DL385 = studyhat.com which is in live for production.
HP ProLiant DL385 = new brought to DC we want to create clone of studyhat.com
We have created on XEN virtualization one clone of HP ProLiant DL385
Virtual Machian
In my case 2 HP ProLiant DL385, one server is year old and seen come to DC is it on from there we have clone using following.
HP ProLiant DL385 = studyhat.com which is in live for production.
HP ProLiant DL385 = new brought to DC we want to create clone of studyhat.com
We have created on XEN virtualization one clone of HP ProLiant DL385
* Boot with Live CD's new server where you want clone.
* Give IP Address to eth0 .
* Ping to the server from where you want to clone.
* dd if=/dev/sda | ssh root@ipaddress "dd of=/dev/sdb"
* ssh <ipaddress of running server> 'dd if=/dev/sda' | dd of=/dev/sda
* ssh <ipaddress of running server> 'dd if=/dev/sdb' | dd of=/dev/sdb
* # dd if=/dev/sda | ssh root@xxx.xxx.xxx.xxx (target ip address )'dd of=/dev/sda'
*#dd if=/dev/sda |gzip -c --fast| ssh root@target ip address 'gzip -d | dd of=/dev/sda'
* Once you get # <console>
* #vi
/etc/sysconfig/network
* #vi /etc/hosts
/
* #vi /etc/sysconfig/network-scripts/ifcfg-bond0
* #vi /etc/sysconfig/network-scripts/ifcfg-eth0
* * #vi /etc/resolv.conf
* * # reboot
1 comment:
This actually works for V2P? What about LVMs, GRUB, and the initrd image?
I did it over USB drive connected to HP server and USB passthrough to Virtual machine. I wanted to dd it to a USB external hard drive and then pop it into a system. fdisk shows the partitions but doesn't want to mount them when on linux resuce CD
I tried:
dd if=/dev/sda1 of=/dev/sdb1
dd if=/dev/sda2 of=/dev/sdb2
Post a Comment