Redhat Cluster
Ref: http://www.centos.org/docs/5/html/Cluster_Administration/s1-add-service-CA.htmlGetting tired of heartbeat... it's not really meant for managing HA services. I mean if heartbeat is dead but the service is up, should a service be restarted? Maybe the newer version of heartbeat takes care of that with crm. I'm just too lazy to go into that and instead I wanna give Redhat cluster a try.
# install clustering packages
yum groupinstall Clustering
# on host machine, create a shared disk. yes I'm using virtualbox here
VBoxManage createhd --filename /my/vm/c5-shared-disk.vdi --size 4096 --type shareable --variant Fixed VBoxManage modifyhd /my/vm/c5-shared-disk.vdi --type shareable
# on each node, configure a cluster with cluster-gui
system-config-cluster 1. add nodes 2. add manual fencing device - not recommended but there isn't a real fencing device I can use 3. add a failover domain with all nodes in the cluster 4. create floating IP resource 5. create filesystem resource 6. create mysql resource 7. create a service with all of the above shared resources. configure the service to "relocate" on recovery
# start cman and rgmanager
service cman start service rgmanager start
# Testing failover
Shutdown mysql and watch it fail over.
mysqladmin -h<floating IP> shutdown
# Problemzzzz
While shutting mysql works, unplugging the nic doesn't cause a failover! The standby node keeps waiting for the dead node to fence. Forcing a fence_ack with fence_ack_manual didn't help.
There are no comments on this page. [Add comment]