FSF France machines management - Cookbook: recipe #321, Howto resurect a Ganeti node
Show feedback again
recipe #321, HowTo: Howto resurect a Ganeti node
Assuming a full backup of the NODE ganeti node exists on backup.tld, here are the steps to resurect it on a new disk:
- boot on a live CD with the same architecture as NODE
- fdisk /dev/sda
- create sda1 root 20GB, sda2 swap XGB (amount of RAM), sda3 LVM
- reboot so that it is taken into account (in case it is ignored * * because the disk is considered active, fdisk will tell)
- mke2fs -j /dev/sda1 ; tune2fs -i 300 -c 300 -m 0 /dev/sda1
- ssh-keygen + copy the key over on backup.tld authorized_keys
- mount /dev/sda1 /mnt
- rsync -avH --numeric-ids backup.tld:/NODE/ /mnt/
- vi /mnt/etc/network/interface and add iface eth0 inet dhcp
- chroot /mnt
- grub-install /dev/sda
- vgreduce --removemissing all
- vgremove all
- pvremove /dev/XXX (this is assuming the disk layout on the new machine is different from the one on the previous machine)
- reboot
- fix root= on the grub menu to /dev/sda1
after boot update-grub
Last update: Thu 14 Oct 2010 04:18:57 PM UTC
Audience and Context
Audience:All Project Members
Feature:
Project Main Pages
(As there is at least one of the Audience/Feature/Action context information not set, this recipe will not show up in related recipes links)
Show feedback again

Related Recipes: