Created
February 29, 2012 08:52
-
-
Save jippi/1939271 to your computer and use it in GitHub Desktop.
Linode => Hetzner migration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export install, partition, sync, clean boot, install image, edit , reboot | |
ssh [email protected] "dd if=/dev/xvdc " | dd of=/dev/sda1 | |
find /etc -type f -exec sed -i s/178.79.138.75/176.9.207.38/g {} \; | |
Migration steps: | |
Linode Disk Partition: /dev/xvdb | |
Hetzner Disk Partition: /dev/sda | |
3) Boot finnix on both servers | |
4) Set root password on both servers | |
5) Start ssh on both servers | |
6) Run 'ssh root@<linode ip> "dd if=/dev/xvdb " | dd of=/dev/sda' from the hetzner finnix <- this will take some time to execute, its moving all the files block by block over the net | |
7) reboot finnix on hetzner | |
8) configure eth0 on finnix hetzner | |
9) mount /dev/sda /mnt | |
10) cd /mnt | |
11) chroot . | |
12) rm -rf /boot | |
13) mkdir -p /boot/grub | |
14) apt-get update | |
15) apt-get install linux-image-2.6.26-1-amd64 | |
16) change fstab | |
17) change interfaces | |
dpkg -P linux-headers-2.6.26-2-common-xen linux-headers-2.6.26-2-xen-amd64 linux-image-2.6.26-1-amd64 linux-image-2.6.26-1-xen-amd64 linux-image-2.6.26-2-xen-amd64 linux-image-xen-amd64 linux-modules-2.6-xen-amd64 linux-modules-2.6.26-1-xen-amd64 linux-modules-2.6.26-2-xen-amd64 linux-modules-xen-amd64 | |
dpkg -P grub grub-common | |
# GRUB STUFF | |
http://askubuntu.com/questions/81613/ubuntu-option-disappear-from-grub-11-10-after-update-on-a-dual-partition | |
https://help.ubuntu.com/community/Grub2 | |
mount --bind /dev /mnt/dev | |
mount -o bind /dev/pts /mnt/dev/pts | |
grub-install --recheck /dev/sda | |
update-grub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment