Active Passive setup with heartbeat drbd and Apache
Heartbeat 2 + DRBD 8 + Apache Step 1 : Configure DRBD -> Follow DRBD configuration steps Step 2 : Give Virtual IP for HeartBeat ###At both machines ifconfig eth0:1 192.168.91.95 netmask 255.255.255.0 (put at /etc/rc.d/rc.local) Step 3 : Configure Apache Edit /etc/httpd/conf/httpd.conf Machine – 192.168.91.2 <VirtualHost 192.168.91.95> DocumentRoot /web <-- DRBD <Directory "/web"> allow from all Options +Indexes </Directory> ServerName 192.168.91.2 </VirtualHost> Machine – 192.168.91.3 <VirtualHost 192.168.91.95> DocumentRoot /web <-- DRBD <Directory "/web"> allow from all Options +Indexes </Directory> ServerName 192.168.91.3 </VirtualHost> Step 4: Installation and Configuration Heatbeat ###At Both machine rpm -ivh lm_sensors-2.8.7-2.40.3.i386.rpm rpm -ivh heartbeat-pils-2.0.8-2.el4.centos.i386.rpm rpm -ivh heartbeat-stonith-2.0.8-2.el4.centos.i...