RHEL/CentOS Clustering
Setup
Install
Run:
# yum installgroup Clustering
RHEL:
yum groupinstall Clustering
-
For use with vmware-server, you need the VMware VIX
API (on both the clients and vm host)
Configuration
Do this:
$ ssh -Y root@node1
# system-config-cluster
-
Setup your nodes
Setup the failover domain (httpd
or something like that)
Setup the resources to be clustered
Setup the service
Enable the cluster management software (cman
and rgmanager
):
Centos:
# chkconfig cman on
# chkconfig rgmanager on
# chkconfig openais on
RHEL5:
# chkconfig cman on
# chkconfig rgmanager on
# chkconfig openais off
Reboot
check the status of the cluster (same command as step 1)
vmware fencing
get
fence_vmware
setup with vmware-server2:
# fence_vmware -a 192.168.1.3:8333 -l USER -p PASSWORD -d server2 -n '[estore] node2/node2.vmx'
You'll use this info later when editing /etc/cluster/cluster.conf
setup centos vm image for web serving:
# yum install httpd mod_ssl php mysql-server php-mysql php-pear-DB php-xml php-xmlrpc php-gd php-mbstring sendmail-cf
Relocate Services
# clusvcadm -r wiki-httpd
Services
RHEL5:
cman
cmirror
rgmanager
modclusterd
ricci
tog-pegasus
Links/Info