
Please find the latest version of these slides at:
/etc/hostname
and /etc/hosts
)usermode_helper=/bin/true
and minor_count=NUMBER
to the module)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
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
ganeti-instance-debootstrap
, organeti-instance-image
The node needs to be set up following our installation guide:
gnt-cluster init [-s ip] ... \ --enabled-hypervisors=kvm cluster
master-netdev
gnt-cluster verify
Try to fix any problems it reports. This will save you time for later.
gnt-node modify
or gnt-cluster modify
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
instance{1,2,3}.example.com
must exist in hosts or DNSdebootstrap+squeeze
must be valid in gnt-os list
# 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