Warning : during disc copy (~1.5TB) the "source" node will be offline !

1) failover the vm of source node to avoid long downtime (failover ip if needed).

2) reboot the source node in rescue mode

3) reboot the new node in rescue mode

4) use dd to sync disk from source to new node :

sourcenode:~# dd if=/dev/sda | ssh newnode "dd of=/dev/sda"
sourcenode:~# dd if=/dev/sdb | ssh newnode "dd of=/dev/sdb"

4bis) after dd are done, restart source node, and put the vm back on it (with dedicated failover ips).

5) when both sync are done, on the new node :

fsck -f /dev/sda1
mkdir /mnt/sda
mount /dev/sda1 /mnt/sda
vi /mnt/sda/etc/network/interfaces
#Update main IP / failover IP / local (lo:1) IP

openvpn

Then, be sure all failover IPs are available as z2-X1.pokersource.info :

  • on new node :
    chroot /mnt/sda
    hostname z2-X1.pokersource.info
    /usr/local/bin/buildconf.sh
    z2-X.host.gnt
    echo z2-X.host.gnt > /etc/hostname
    
  • on ganeti master :
    for i in 1 2 3 4 5 6 7;do echo "WORKING ON $i" ; ssh z2-$i "hostname z2-${i}1.pokersource.info;buildconf.sh 1.pokersource.info;hostname z2-$i";done
    

Ganeti config

Remove ganeti config :

#if still in chroot
rm /var/lib/ganeti/*

Zebra & OSPF

cd /etc/quagga
vi opsfd.conf
#update z2-X name and 10.10.1.X IP
vi zebra.conf
#update z2-X name 

Boot

  • exit chroot
  • umount /mnt/sda
  • reboot on system

When you have rebooted, it still has some things to do :

LVM

Remove all existing lv :

newnode:~# lvs
#For each lv :
newnode:~# lvremove LV_NAME

Add the node

On ganeti master :

gnt-node add z2-X.host.gnt