User Tools

Site Tools


linux:high_availability_virtualization_cluster

This is an old revision of the document!


Description

Instructions on how to deploy a high availability KVM cluster based on CentOS 6.x

Instructions

  • Deploy Centos (minimal)
  • Enjoy with basic networking.
  • Disable SELINUX
  • Install EPEL meta-pkg:
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
  • Install basic pkgs (for me):
yum -y install vim tmux lsof strace
  • Update:
yum update
  • Enjoy with multipathd+storage 8-)
  • Install the clusterware suite:
yum groupinstall "High Availability" "Resilient Storage"
  • In the “master” node, install the admin suite:
yum groupinstall "High Availability Management"
  • Change the password for “ricci” user:
passwd ricci
  • Configure services:
chkconfig ricci on
chkconfig luci on
chkconfig cman on
chkconfig modclusterd on
  • Disable NetworkManager:
chkconfig NetworkManager off && service NetworkManager stop
  • Setup at least one bridge, for example having 4 interfaces: eth0+eth1=bonding, eth2+eth3=bridge:
cat ifcfg-eth0
DEVICE=eth0
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
cat ifcfg-eth1
DEVICE=eth1
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
cat ifcfg-eth2
DEVICE=eth2
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
BRIDGE=br0
cat ifcfg-eth3
DEVICE=eth3
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=none
BRIDGE=br0
cat ifcfg-br0
DEVICE=br0
TYPE=Bridge
ONBOOT=yes
BOOTPROTO=none
USERCTL=no
cat ifcfg-bond0
DEVICE=bond0
ONBOOT=yes
BOOTPROTO=static
USERCTL=no
NETWORK=10.54.0.0
IPADDR=10.54.0.20
NETMASK=255.255.255.0
BROADCAST=10.52.0.255
GATEWAY=10.54.0.1
  • Start services: <code bash> service ricci start service luci start service cman start </code> If luci refuses to start, read the troubleshoot section.
  • Access the luci UI or Conga formatively (the url is displayed after staring luci).

chkconfig iptables off && service iptables stop

 

Troubleshoot

Luci

If you get an error like this:

Unable to create the luci base configuration file (`/var/lib/luci/etc/luci.ini').

You can try to:

rpm -e --nodeps python-webob-0.9.6.1-3.el6.noarch
easy_install WebOb==1.0.8

This should be enough, but if you're still having problems running luci, follow with that instructions: Edit that file:

vi /usr/lib/python2.6/site-packages/pylons/decorators/__init__.py

And comment/remove the line (line ~20):

from webob import UnicodeMultiDict

That is.

thanks to dmabry and Michael Pedersen combining their post I were able to run Luci.

linux/high_availability_virtualization_cluster.1377850169.txt.gz · Last modified: 2013/08/30 08:09 by dodger