How to configure your Ganeti cluster.
Choose between a physical interface or a dedicated vlan:
auto eth1
iface eth1 inet static
address 192.168.4.1
netmask 255.255.255.0
--or--
auto eth0.4
iface eth0.4 inet static
address 192.168.4.1
netmask 255.255.255.0
Example with dedicated vlan:
auto br905 iface br905 inet manual bridge_ports eth0.905 bridge_stp off bridge_fd 0
If you're not using the system's volume group initialize a VG for instances. For example:
$ pvcreate /dev/sdb1 $ pvcreate /dev/sdc1 $ vgcreate xenvg /dev/sdb1 /dev/sdc1
Use packages. These exist for Debian, Ubuntu, Centos+RHEL, Suse. If you need customized ones create them, and put them in a local repository.
The node needs to be set up following our installation guide:
gnt-cluster init [-s ip] ... \ --enabled-hypervisors=kvm cluster
# gnt-cluster verify
Try to fix any problems it reports. This will save you time for later.
gnt-node add [-s ip] node2 gnt-node add [-s ip] node3
Make sure you have a ganeti.cron file:
# Restart failed instances (every 5 minutes) */5 * * * * root /usr/sbin/ganeti-watcher # Clean job archive (at 01:45 AM) 45 1 * * * root /usr/sbin/ganeti-cleaner
You can run "burnin" to check the cluster:
/usr/lib/ganeti/tools/burnin -o debootstrap+squeeze -p \
--reboot-types=hard,full --disk-size 1G \
instance-{1,2,3}.example.com
# install instance-{debootstrap, image}
gnt-os list
gnt-instance add -t drbd \
{-n node3:node2 | -I hail } \
-o debootstrap+default web
ping i0
ssh i0 # easy with OS hooks
Questions?