4 node GFS+IPVSADM cluster with Ubuntu Linux
Linux and Open Source world has vast array of technologies to fit our needs. In these pages, I will define steps to build 4 node GFS cluster with LVS. Unfortunately there is not much howtos or guides to setup similar environments.
GFS is developed by Redhat and GFS configuration can be most easily done using GUI tools in Redhat Enterprise Linux. However, there are many reasons to deploy a Debian/Ubuntu instead of Redhat. (I will not discuss them here)
This setup has been tested on following hardware:
- 4x HP Compaq DL380 G5
- Intel Xeon quad core
- 16 GB RAM
- 2 x 146 GB SCSI internal disk
- 2 x Qlogic HBA
- 2 x Gigabit Ethernet
- MSA 2000 with 2x controllers
- 2x Fibre Switch
Our environment will end up having following features:
- All servers, running Ubuntu Hardy Heron 8.04 LTS 64-bit edition (Openvz enabled kernel)
- MSA2000 configured as single RAID6 drive
- GFS cluster setup with simple config, including quorum device and simple fencing
- RAID6 drive formatted as LVM volume and shared between 4 nodes using GFS
- LVS+Heartbeat to setup ip failover for web and mysql services
- Network interfaces are bonded to provide redundancy
- Two nodes will run web server and the other two nodes will use mysql
- Use OpenVZ for virtualization
(db1, db2, web1, web2)

