Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64...

22
Alternate Titles: “High Availability Apache Two Node Setup” Author: Muhammad Zeeshan Bhatti [LPI, VCP, OCP (DBA), MCSA, SUSE CLA,] (http://zeeshanbhatti.com) ([email protected]) WEB01.HA [root@web01 /]# /etc/init.d/iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] [root@web01 ~]# chkconfig iptables off [root@web01 /]# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@web01 /]# vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.48.131 web01.ha 192.168.48.132 web02.ha :wq! [root@web01 ~]# yum groupinstall "Development tools" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Setting up Group Process Checking for new repos for mirrors base/group_gz | 216 kB 00:00 Package redhat-rpm-config-9.0.3-42.el6.centos.noarch already installed and latest version Package 1:make-3.81-20.el6.x86_64 already installed and latest version Package patch-2.6-6.el6.x86_64 already installed and latest version Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version Package automake-1.11.1-4.el6.noarch already installed and latest version Package bison-2.4.1-5.el6.x86_64 already installed and latest version

Transcript of Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64...

Page 1: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Alternate Titles: “High Availability Apache Two Node Setup” Author: Muhammad Zeeshan Bhatti [LPI, VCP, OCP (DBA), MCSA, SUSE CLA,] (http://zeeshanbhatti.com) ([email protected]) WEB01.HA [root@web01 /]# /etc/init.d/iptables stop iptables: Setting chains to policy ACCEPT: filter [ OK ] iptables: Flushing firewall rules: [ OK ] iptables: Unloading modules: [ OK ] [root@web01 ~]# chkconfig iptables off [root@web01 /]# vi /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled # SELINUXTYPE= can take one of these two values: # targeted - Targeted processes are protected, # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@web01 /]# vi /etc/hosts 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 192.168.48.131 web01.ha 192.168.48.132 web02.ha :wq! [root@web01 ~]# yum groupinstall "Development tools" Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Setting up Group Process Checking for new repos for mirrors base/group_gz | 216 kB 00:00 Package redhat-rpm-config-9.0.3-42.el6.centos.noarch already installed and latest version Package 1:make-3.81-20.el6.x86_64 already installed and latest version Package patch-2.6-6.el6.x86_64 already installed and latest version Package 1:pkgconfig-0.23-9.1.el6.x86_64 already installed and latest version Package automake-1.11.1-4.el6.noarch already installed and latest version Package bison-2.4.1-5.el6.x86_64 already installed and latest version

Page 2: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Package libtool-2.2.6-15.5.el6.x86_64 already installed and latest version Package autoconf-2.63-5.1.el6.noarch already installed and latest version Package patchutils-0.3.1-3.1.el6.x86_64 already installed and latest version Package byacc-1.9.20070509-7.el6.x86_64 already installed and latest version Package indent-2.2.10-7.el6.x86_64 already installed and latest version Package diffstat-1.51-2.el6.x86_64 already installed and latest version Package cvs-1.11.23-16.el6.x86_64 already installed and latest version Package rcs-5.7-37.el6.x86_64 already installed and latest version Package 1:doxygen-1.6.1-6.el6.x86_64 already installed and latest version Package intltool-0.41.0-1.1.el6.noarch already installed and latest version Package git-1.7.1-3.el6_4.1.x86_64 already installed and latest version Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed and latest version Package swig-1.3.40-6.el6.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package binutils.x86_64 0:2.20.51.0.2-5.36.el6 will be updated ---> Package binutils.x86_64 0:2.20.51.0.2-5.42.el6 will be an update ---> Package elfutils.x86_64 0:0.152-1.el6 will be updated ---> Package elfutils.x86_64 0:0.158-3.2.el6 will be an update --> Processing Dependency: elfutils-libs(x86-64) = 0.158-3.2.el6 for package: elfutils-0.158-3.2.el6.x86_64 --> Processing Dependency: elfutils-libelf(x86-64) = 0.158-3.2.el6 for package: elfutils-0.158-3.2.el6.x86_64 --> Processing Dependency: libdw.so.1(ELFUTILS_0.158)(64bit) for package: elfutils-0.158-3.2.el6.x86_64 ---> Package flex.x86_64 0:2.5.35-8.el6 will be updated ---> Package flex.x86_64 0:2.5.35-9.el6 will be an update ---> Package gcc.x86_64 0:4.4.7-4.el6 will be updated ---> Package gcc.x86_64 0:4.4.7-11.el6 will be an update --> Processing Dependency: libgomp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64 --> Processing Dependency: cpp = 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64 --> Processing Dependency: libgcc >= 4.4.7-11.el6 for package: gcc-4.4.7-11.el6.x86_64 ---> Package gcc-c++.x86_64 0:4.4.7-4.el6 will be updated ---> Package gcc-c++.x86_64 0:4.4.7-11.el6 will be an update --> Processing Dependency: libstdc++-devel = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64 --> Processing Dependency: libstdc++ = 4.4.7-11.el6 for package: gcc-c++-4.4.7-11.el6.x86_64 ---> Package gcc-gfortran.x86_64 0:4.4.7-4.el6 will be updated ---> Package gcc-gfortran.x86_64 0:4.4.7-11.el6 will be an update --> Processing Dependency: libgfortran = 4.4.7-11.el6 for package: gcc-gfortran-4.4.7-11.el6.x86_64 ---> Package gettext.x86_64 0:0.17-16.el6 will be updated --> Processing Dependency: gettext = 0.17-16.el6 for package: gettext-devel-0.17-16.el6.x86_64 ---> Package gettext.x86_64 0:0.17-18.el6 will be an update ---> Package rpm-build.x86_64 0:4.8.0-37.el6 will be updated ---> Package rpm-build.x86_64 0:4.8.0-38.el6_6 will be an update --> Processing Dependency: rpm = 4.8.0-38.el6_6 for package: rpm-build-4.8.0-38.el6_6.x86_64 ---> Package subversion.x86_64 0:1.6.11-9.el6_4 will be updated ---> Package subversion.x86_64 0:1.6.11-12.el6_6 will be an update ---> Package systemtap.x86_64 0:2.3-3.el6 will be updated

Page 3: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

---> Package systemtap.x86_64 0:2.5-5.el6 will be an update --> Processing Dependency: systemtap-devel = 2.5-5.el6 for package: systemtap-2.5-5.el6.x86_64 --> Processing Dependency: systemtap-client = 2.5-5.el6 for package: systemtap-2.5-5.el6.x86_64 --> Running transaction check ---> Package cpp.x86_64 0:4.4.7-4.el6 will be updated ---> Package cpp.x86_64 0:4.4.7-11.el6 will be an update ---> Package elfutils-libelf.x86_64 0:0.152-1.el6 will be updated ---> Package elfutils-libelf.x86_64 0:0.158-3.2.el6 will be an update ---> Package elfutils-libs.x86_64 0:0.152-1.el6 will be updated ---> Package elfutils-libs.x86_64 0:0.158-3.2.el6 will be an update ---> Package gettext-devel.x86_64 0:0.17-16.el6 will be updated ---> Package gettext-devel.x86_64 0:0.17-18.el6 will be an update --> Processing Dependency: gettext-libs = 0.17-18.el6 for package: gettext-devel-0.17-18.el6.x86_64 ---> Package libgcc.x86_64 0:4.4.7-4.el6 will be updated ---> Package libgcc.x86_64 0:4.4.7-11.el6 will be an update ---> Package libgfortran.x86_64 0:4.4.7-4.el6 will be updated ---> Package libgfortran.x86_64 0:4.4.7-11.el6 will be an update ---> Package libgomp.x86_64 0:4.4.7-4.el6 will be updated ---> Package libgomp.x86_64 0:4.4.7-11.el6 will be an update ---> Package libstdc++.x86_64 0:4.4.7-4.el6 will be updated ---> Package libstdc++.x86_64 0:4.4.7-11.el6 will be an update ---> Package libstdc++-devel.x86_64 0:4.4.7-4.el6 will be updated ---> Package libstdc++-devel.x86_64 0:4.4.7-11.el6 will be an update ---> Package rpm.x86_64 0:4.8.0-37.el6 will be updated --> Processing Dependency: rpm = 4.8.0-37.el6 for package: rpm-libs-4.8.0-37.el6.x86_64 --> Processing Dependency: rpm = 4.8.0-37.el6 for package: rpm-python-4.8.0-37.el6.x86_64 ---> Package rpm.x86_64 0:4.8.0-38.el6_6 will be an update ---> Package systemtap-client.x86_64 0:2.3-3.el6 will be updated ---> Package systemtap-client.x86_64 0:2.5-5.el6 will be an update --> Processing Dependency: systemtap-runtime = 2.5-5.el6 for package: systemtap-client-2.5-5.el6.x86_64 ---> Package systemtap-devel.x86_64 0:2.3-3.el6 will be updated ---> Package systemtap-devel.x86_64 0:2.5-5.el6 will be an update --> Running transaction check ---> Package gettext-libs.x86_64 0:0.17-16.el6 will be updated ---> Package gettext-libs.x86_64 0:0.17-18.el6 will be an update ---> Package rpm-libs.x86_64 0:4.8.0-37.el6 will be updated ---> Package rpm-libs.x86_64 0:4.8.0-38.el6_6 will be an update ---> Package rpm-python.x86_64 0:4.8.0-37.el6 will be updated ---> Package rpm-python.x86_64 0:4.8.0-38.el6_6 will be an update ---> Package systemtap-runtime.x86_64 0:2.3-3.el6 will be updated ---> Package systemtap-runtime.x86_64 0:2.5-5.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved

Page 4: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

=============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Updating: binutils x86_64 2.20.51.0.2-5.42.el6 base 2.8 M elfutils x86_64 0.158-3.2.el6 base 233 k flex x86_64 2.5.35-9.el6 base 285 k gcc x86_64 4.4.7-11.el6 base 10 M gcc-c++ x86_64 4.4.7-11.el6 base 4.7 M gcc-gfortran x86_64 4.4.7-11.el6 base 4.7 M gettext x86_64 0.17-18.el6 base 1.8 M rpm-build x86_64 4.8.0-38.el6_6 updates 127 k subversion x86_64 1.6.11-12.el6_6 updates 2.3 M systemtap x86_64 2.5-5.el6 base 26 k Updating for dependencies: cpp x86_64 4.4.7-11.el6 base 3.7 M elfutils-libelf x86_64 0.158-3.2.el6 base 182 k elfutils-libs x86_64 0.158-3.2.el6 base 211 k gettext-devel x86_64 0.17-18.el6 base 155 k gettext-libs x86_64 0.17-18.el6 base 112 k libgcc x86_64 4.4.7-11.el6 base 102 k libgfortran x86_64 4.4.7-11.el6 base 267 k libgomp x86_64 4.4.7-11.el6 base 133 k libstdc++ x86_64 4.4.7-11.el6 base 294 k

Page 5: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

libstdc++-devel x86_64 4.4.7-11.el6 base 1.6 M rpm x86_64 4.8.0-38.el6_6 updates 901 k rpm-libs x86_64 4.8.0-38.el6_6 updates 313 k rpm-python x86_64 4.8.0-38.el6_6 updates 57 k systemtap-client x86_64 2.5-5.el6 base 3.6 M systemtap-devel x86_64 2.5-5.el6 base 1.5 M systemtap-runtime x86_64 2.5-5.el6 base 201 k Transaction Summary =============================================================================================================================================================================================== Upgrade 26 Package(s) Total download size: 40 M Is this ok [y/N]: y Downloading Packages: (1/26): binutils-2.20.51.0.2-5.42.el6.x86_64.rpm | 2.8 MB 00:01 (2/26): cpp-4.4.7-11.el6.x86_64.rpm | 3.7 MB 00:08 (3/26): elfutils-0.158-3.2.el6.x86_64.rpm | 233 kB 00:00 (4/26): elfutils-libelf-0.158-3.2.el6.x86_64.rpm | 182 kB 00:00 (5/26): elfutils-libs-0.158-3.2.el6.x86_64.rpm | 211 kB 00:00 (6/26): flex-2.5.35-9.el6.x86_64.rpm | 285 kB 00:00 (7/26): gcc-4.4.7-11.el6.x86_64.rpm | 10 MB 00:03 (8/26): gcc-c++-4.4.7-11.el6.x86_64.rpm | 4.7 MB 00:01 (9/26): gcc-gfortran-4.4.7-11.el6.x86_64.rpm | 4.7 MB 00:10 (10/26): gettext-0.17-18.el6.x86_64.rpm | 1.8 MB 00:03 (11/26): gettext-devel-0.17-18.el6.x86_64.rpm | 155 kB 00:00 (12/26): gettext-libs-0.17-18.el6.x86_64.rpm | 112 kB 00:00

Page 6: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

(13/26): libgcc-4.4.7-11.el6.x86_64.rpm | 102 kB 00:00 (14/26): libgfortran-4.4.7-11.el6.x86_64.rpm | 267 kB 00:00 (15/26): libgomp-4.4.7-11.el6.x86_64.rpm | 133 kB 00:00 (16/26): libstdc++-4.4.7-11.el6.x86_64.rpm | 294 kB 00:00 (17/26): libstdc++-devel-4.4.7-11.el6.x86_64.rpm | 1.6 MB 00:03 (18/26): rpm-4.8.0-38.el6_6.x86_64.rpm | 901 kB 00:02 (19/26): rpm-build-4.8.0-38.el6_6.x86_64.rpm | 127 kB 00:00 (20/26): rpm-libs-4.8.0-38.el6_6.x86_64.rpm | 313 kB 00:00 (21/26): rpm-python-4.8.0-38.el6_6.x86_64.rpm | 57 kB 00:00 (22/26): subversion-1.6.11-12.el6_6.x86_64.rpm | 2.3 MB 00:03 (23/26): systemtap-2.5-5.el6.x86_64.rpm | 26 kB 00:00 (24/26): systemtap-client-2.5-5.el6.x86_64.rpm | 3.6 MB 00:06 (25/26): systemtap-devel-2.5-5.el6.x86_64.rpm | 1.5 MB 00:03 (26/26): systemtap-runtime-2.5-5.el6.x86_64.rpm | 201 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 767 kB/s | 40 MB 00:53 warning: rpmts_HdrFromFdno: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Importing GPG key 0xC105B9DE: Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <[email protected]> Package: centos-release-6-5.el6.centos.11.1.x86_64 (@anaconda-CentOS-201311272149.x86_64/6.5) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : elfutils-libelf-0.158-3.2.el6.x86_64 1/52 Updating : libgcc-4.4.7-11.el6.x86_64 2/52

Page 7: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Updating : libstdc++-4.4.7-11.el6.x86_64 3/52 Updating : rpm-4.8.0-38.el6_6.x86_64 4/52 Updating : rpm-libs-4.8.0-38.el6_6.x86_64 5/52 Updating : elfutils-libs-0.158-3.2.el6.x86_64 6/52 Updating : binutils-2.20.51.0.2-5.42.el6.x86_64 7/52 Updating : libgomp-4.4.7-11.el6.x86_64 8/52 Updating : gettext-0.17-18.el6.x86_64 9/52 Updating : elfutils-0.158-3.2.el6.x86_64 10/52 Updating : gettext-libs-0.17-18.el6.x86_64 11/52 Updating : libstdc++-devel-4.4.7-11.el6.x86_64 12/52 Updating : systemtap-runtime-2.5-5.el6.x86_64 13/52 Updating : systemtap-client-2.5-5.el6.x86_64 14/52 Updating : cpp-4.4.7-11.el6.x86_64 15/52 Updating : gcc-4.4.7-11.el6.x86_64 16/52 Updating : systemtap-devel-2.5-5.el6.x86_64 17/52 Updating : libgfortran-4.4.7-11.el6.x86_64 18/52 Updating : gcc-gfortran-4.4.7-11.el6.x86_64 19/52 Updating : systemtap-2.5-5.el6.x86_64 20/52 Updating : gcc-c++-4.4.7-11.el6.x86_64 21/52 Updating : gettext-devel-0.17-18.el6.x86_64 22/52 Updating : rpm-build-4.8.0-38.el6_6.x86_64 23/52 Updating : rpm-python-4.8.0-38.el6_6.x86_64 24/52 Updating : flex-2.5.35-9.el6.x86_64 25/52 Updating : subversion-1.6.11-12.el6_6.x86_64 26/52

Page 8: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Cleanup : gettext-devel-0.17-16.el6.x86_64 27/52 Cleanup : rpm-build-4.8.0-37.el6.x86_64 28/52 Cleanup : gcc-c++-4.4.7-4.el6.x86_64 29/52 Cleanup : elfutils-0.152-1.el6.x86_64 30/52 Cleanup : rpm-python-4.8.0-37.el6.x86_64 31/52 Cleanup : systemtap-2.3-3.el6.x86_64 32/52 Cleanup : systemtap-client-2.3-3.el6.x86_64 33/52 Cleanup : systemtap-devel-2.3-3.el6.x86_64 34/52 Cleanup : rpm-4.8.0-37.el6.x86_64 35/52 Cleanup : rpm-libs-4.8.0-37.el6.x86_64 36/52 Cleanup : systemtap-runtime-2.3-3.el6.x86_64 37/52 Cleanup : gettext-0.17-16.el6.x86_64 38/52 Cleanup : gettext-libs-0.17-16.el6.x86_64 39/52 Cleanup : gcc-gfortran-4.4.7-4.el6.x86_64 40/52 Cleanup : libstdc++-devel-4.4.7-4.el6.x86_64 41/52 Cleanup : gcc-4.4.7-4.el6.x86_64 42/52 Cleanup : libstdc++-4.4.7-4.el6.x86_64 43/52 Cleanup : elfutils-libs-0.152-1.el6.x86_64 44/52 Cleanup : elfutils-libelf-0.152-1.el6.x86_64 45/52 Cleanup : libgcc-4.4.7-4.el6.x86_64 46/52 Cleanup : binutils-2.20.51.0.2-5.36.el6.x86_64 47/52 Cleanup : cpp-4.4.7-4.el6.x86_64 48/52 Cleanup : libgomp-4.4.7-4.el6.x86_64 49/52 Cleanup : libgfortran-4.4.7-4.el6.x86_64 50/52

Page 9: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Cleanup : flex-2.5.35-8.el6.x86_64 51/52 Cleanup : subversion-1.6.11-9.el6_4.x86_64 52/52 Verifying : libstdc++-4.4.7-11.el6.x86_64 1/52 Verifying : systemtap-client-2.5-5.el6.x86_64 2/52 Verifying : elfutils-0.158-3.2.el6.x86_64 3/52 Verifying : gettext-libs-0.17-18.el6.x86_64 4/52 Verifying : libgcc-4.4.7-11.el6.x86_64 5/52 Verifying : systemtap-devel-2.5-5.el6.x86_64 6/52 Verifying : libstdc++-devel-4.4.7-11.el6.x86_64 7/52 Verifying : subversion-1.6.11-12.el6_6.x86_64 8/52 Verifying : rpm-build-4.8.0-38.el6_6.x86_64 9/52 Verifying : rpm-libs-4.8.0-38.el6_6.x86_64 10/52 Verifying : elfutils-libs-0.158-3.2.el6.x86_64 11/52 Verifying : libgomp-4.4.7-11.el6.x86_64 12/52 Verifying : binutils-2.20.51.0.2-5.42.el6.x86_64 13/52 Verifying : systemtap-runtime-2.5-5.el6.x86_64 14/52 Verifying : gcc-c++-4.4.7-11.el6.x86_64 15/52 Verifying : flex-2.5.35-9.el6.x86_64 16/52 Verifying : rpm-python-4.8.0-38.el6_6.x86_64 17/52 Verifying : gettext-0.17-18.el6.x86_64 18/52 Verifying : rpm-4.8.0-38.el6_6.x86_64 19/52 Verifying : gcc-4.4.7-11.el6.x86_64 20/52 Verifying : libgfortran-4.4.7-11.el6.x86_64 21/52 Verifying : systemtap-2.5-5.el6.x86_64 22/52

Page 10: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Verifying : gettext-devel-0.17-18.el6.x86_64 23/52 Verifying : elfutils-libelf-0.158-3.2.el6.x86_64 24/52 Verifying : cpp-4.4.7-11.el6.x86_64 25/52 Verifying : gcc-gfortran-4.4.7-11.el6.x86_64 26/52 Verifying : gcc-gfortran-4.4.7-4.el6.x86_64 27/52 Verifying : flex-2.5.35-8.el6.x86_64 28/52 Verifying : gettext-devel-0.17-16.el6.x86_64 29/52 Verifying : libstdc++-4.4.7-4.el6.x86_64 30/52 Verifying : libstdc++-devel-4.4.7-4.el6.x86_64 31/52 Verifying : rpm-4.8.0-37.el6.x86_64 32/52 Verifying : cpp-4.4.7-4.el6.x86_64 33/52 Verifying : systemtap-2.3-3.el6.x86_64 34/52 Verifying : rpm-python-4.8.0-37.el6.x86_64 35/52 Verifying : gettext-0.17-16.el6.x86_64 36/52 Verifying : libgfortran-4.4.7-4.el6.x86_64 37/52 Verifying : gcc-c++-4.4.7-4.el6.x86_64 38/52 Verifying : binutils-2.20.51.0.2-5.36.el6.x86_64 39/52 Verifying : libgomp-4.4.7-4.el6.x86_64 40/52 Verifying : rpm-build-4.8.0-37.el6.x86_64 41/52 Verifying : elfutils-libelf-0.152-1.el6.x86_64 42/52 Verifying : gcc-4.4.7-4.el6.x86_64 43/52 Verifying : rpm-libs-4.8.0-37.el6.x86_64 44/52 Verifying : systemtap-runtime-2.3-3.el6.x86_64 45/52 Verifying : systemtap-devel-2.3-3.el6.x86_64 46/52

Page 11: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Verifying : elfutils-libs-0.152-1.el6.x86_64 47/52 Verifying : elfutils-0.152-1.el6.x86_64 48/52 Verifying : libgcc-4.4.7-4.el6.x86_64 49/52 Verifying : systemtap-client-2.3-3.el6.x86_64 50/52 Verifying : subversion-1.6.11-9.el6_4.x86_64 51/52 Verifying : gettext-libs-0.17-16.el6.x86_64 52/52 Updated: binutils.x86_64 0:2.20.51.0.2-5.42.el6 elfutils.x86_64 0:0.158-3.2.el6 flex.x86_64 0:2.5.35-9.el6 gcc.x86_64 0:4.4.7-11.el6 gcc-c++.x86_64 0:4.4.7-11.el6 gcc-gfortran.x86_64 0:4.4.7-11.el6 gettext.x86_64 0:0.17-18.el6 rpm-build.x86_64 0:4.8.0-38.el6_6 subversion.x86_64 0:1.6.11-12.el6_6 systemtap.x86_64 0:2.5-5.el6 Dependency Updated: cpp.x86_64 0:4.4.7-11.el6 elfutils-libelf.x86_64 0:0.158-3.2.el6 elfutils-libs.x86_64 0:0.158-3.2.el6 gettext-devel.x86_64 0:0.17-18.el6 gettext-libs.x86_64 0:0.17-18.el6 libgcc.x86_64 0:4.4.7-11.el6 libgfortran.x86_64 0:4.4.7-11.el6 libgomp.x86_64 0:4.4.7-11.el6 libstdc++.x86_64 0:4.4.7-11.el6 libstdc++-devel.x86_64 0:4.4.7-11.el6 rpm.x86_64 0:4.8.0-38.el6_6 rpm-libs.x86_64 0:4.8.0-38.el6_6 rpm-python.x86_64 0:4.8.0-38.el6_6 systemtap-client.x86_64 0:2.5-5.el6 systemtap-devel.x86_64 0:2.5-5.el6 systemtap-runtime.x86_64 0:2.5-5.el6 Complete! [root@web01 ~]# yum install httpd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package httpd.x86_64 0:2.2.15-29.el6.centos will be updated --> Processing Dependency: httpd = 2.2.15-29.el6.centos for package: 1:mod_ssl-2.2.15-29.el6.centos.x86_64 --> Processing Dependency: httpd = 2.2.15-29.el6.centos for package: httpd-manual-2.2.15-29.el6.centos.noarch ---> Package httpd.x86_64 0:2.2.15-39.el6.centos will be an update

Page 12: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

--> Processing Dependency: httpd-tools = 2.2.15-39.el6.centos for package: httpd-2.2.15-39.el6.centos.x86_64 --> Running transaction check ---> Package httpd-manual.noarch 0:2.2.15-29.el6.centos will be updated ---> Package httpd-manual.noarch 0:2.2.15-39.el6.centos will be an update ---> Package httpd-tools.x86_64 0:2.2.15-29.el6.centos will be updated ---> Package httpd-tools.x86_64 0:2.2.15-39.el6.centos will be an update ---> Package mod_ssl.x86_64 1:2.2.15-29.el6.centos will be updated ---> Package mod_ssl.x86_64 1:2.2.15-39.el6.centos will be an update --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Updating: httpd x86_64 2.2.15-39.el6.centos base 825 k Updating for dependencies: httpd-manual noarch 2.2.15-39.el6.centos base 785 k httpd-tools x86_64 2.2.15-39.el6.centos base 75 k mod_ssl x86_64 1:2.2.15-39.el6.centos base 93 k Transaction Summary =============================================================================================================================================================================================== Upgrade 4 Package(s) Total download size: 1.7 M Is this ok [y/N]:y Downloading Packages: (1/4): httpd-2.2.15-39.el6.centos.x86_64.rpm | 825 kB 00:00 (2/4): httpd-manual-2.2.15-39.el6.centos.noarch.rpm | 785 kB 00:01 (3/4): httpd-tools-2.2.15-39.el6.centos.x86_64.rpm | 75 kB 00:00

Page 13: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

(4/4): mod_ssl-2.2.15-39.el6.centos.x86_64.rpm | 93 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 832 kB/s | 1.7 MB 00:02 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : httpd-tools-2.2.15-39.el6.centos.x86_64 1/8 Updating : httpd-2.2.15-39.el6.centos.x86_64 2/8 Updating : 1:mod_ssl-2.2.15-39.el6.centos.x86_64 3/8 Updating : httpd-manual-2.2.15-39.el6.centos.noarch 4/8 Cleanup : httpd-manual-2.2.15-29.el6.centos.noarch 5/8 Cleanup : 1:mod_ssl-2.2.15-29.el6.centos.x86_64 6/8 Cleanup : httpd-2.2.15-29.el6.centos.x86_64 7/8 Cleanup : httpd-tools-2.2.15-29.el6.centos.x86_64 8/8 Verifying : httpd-2.2.15-39.el6.centos.x86_64 1/8 Verifying : 1:mod_ssl-2.2.15-39.el6.centos.x86_64 2/8 Verifying : httpd-tools-2.2.15-39.el6.centos.x86_64 3/8 Verifying : httpd-manual-2.2.15-39.el6.centos.noarch 4/8 Verifying : httpd-2.2.15-29.el6.centos.x86_64 5/8 Verifying : 1:mod_ssl-2.2.15-29.el6.centos.x86_64 6/8 Verifying : httpd-tools-2.2.15-29.el6.centos.x86_64 7/8 Verifying : httpd-manual-2.2.15-29.el6.centos.noarch 8/8 Updated: httpd.x86_64 0:2.2.15-39.el6.centos Dependency Updated:

Page 14: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

httpd-manual.noarch 0:2.2.15-39.el6.centos httpd-tools.x86_64 0:2.2.15-39.el6.centos mod_ssl.x86_64 1:2.2.15-39.el6.centos Complete! [root@web01 /]# yum install wget Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.nayatel.com * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package wget.x86_64 0:1.12-5.el6_6.1 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: wget x86_64 1.12-5.el6_6.1 updates 483 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package(s) Total download size: 483 k Installed size: 1.8 M Is this ok [y/N]: y Downloading Packages: wget-1.12-5.el6_6.1.x86_64.rpm | 483 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction

Page 15: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Installing : wget-1.12-5.el6_6.1.x86_64 1/1 Verifying : wget-1.12-5.el6_6.1.x86_64 1/1 Installed: wget.x86_64 0:1.12-5.el6_6.1 Complete! [root@web01 downlaod]# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm [root@web01 downlaod]# rpm -ivh epel-release-6-8.noarch.rpm Now Install Heartbeat. [root@web01 downlaod]# yum install heartbeat Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/metalink | 4.4 kB 00:00 * base: mirrors.nayatel.com * epel: ftp.cuhk.edu.hk * extras: mirrors.nayatel.com * updates: mirrors.nayatel.com epel | 4.4 kB 00:00 epel/primary_db | 6.5 MB 02:17 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package heartbeat.x86_64 0:3.0.4-2.el6 will be installed --> Processing Dependency: resource-agents for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: cluster-glue-libs for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: cluster-glue for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: PyXML for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: libplumb.so.2()(64bit) for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: libltdl.so.7()(64bit) for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: libhbclient.so.1()(64bit) for package: heartbeat-3.0.4-2.el6.x86_64 --> Processing Dependency: libapphb.so.2()(64bit) for package: heartbeat-3.0.4-2.el6.x86_64 --> Running transaction check ---> Package PyXML.x86_64 0:0.8.4-19.el6 will be installed ---> Package cluster-glue.x86_64 0:1.0.5-6.el6 will be installed --> Processing Dependency: perl-TimeDate for package: cluster-glue-1.0.5-6.el6.x86_64 ---> Package cluster-glue-libs.x86_64 0:1.0.5-6.el6 will be installed ---> Package heartbeat-libs.x86_64 0:3.0.4-2.el6 will be installed

Page 16: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

---> Package libtool-ltdl.x86_64 0:2.2.6-15.5.el6 will be installed ---> Package resource-agents.x86_64 0:3.9.5-12.el6_6.5 will be installed --> Processing Dependency: /usr/sbin/rpc.nfsd for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /usr/sbin/rpc.mountd for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/rpc.statd for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/quotaon for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/quotacheck for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/mount.nfs4 for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/mount.nfs for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Processing Dependency: /sbin/mount.cifs for package: resource-agents-3.9.5-12.el6_6.5.x86_64 --> Running transaction check ---> Package cifs-utils.x86_64 0:4.8.1-19.el6 will be installed --> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: cifs-utils-4.8.1-19.el6.x86_64 --> Processing Dependency: keyutils for package: cifs-utils-4.8.1-19.el6.x86_64 --> Processing Dependency: libwbclient.so.0()(64bit) for package: cifs-utils-4.8.1-19.el6.x86_64 --> Processing Dependency: libtalloc.so.2()(64bit) for package: cifs-utils-4.8.1-19.el6.x86_64 ---> Package nfs-utils.x86_64 1:1.2.3-54.el6 will be installed --> Processing Dependency: nfs-utils-lib >= 1.1.0-3 for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: rpcbind for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libtirpc for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libgssglue.so.1(libgssapi_CITI_2)(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libgssglue for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libevent for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libtirpc.so.1()(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libnfsidmap.so.0()(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libgssglue.so.1()(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 --> Processing Dependency: libevent-1.4.so.2()(64bit) for package: 1:nfs-utils-1.2.3-54.el6.x86_64 ---> Package perl-TimeDate.noarch 1:1.16-13.el6 will be installed ---> Package quota.x86_64 1:3.17-21.el6_5 will be installed --> Processing Dependency: tcp_wrappers for package: 1:quota-3.17-21.el6_5.x86_64 --> Processing Dependency: libnl.so.1()(64bit) for package: 1:quota-3.17-21.el6_5.x86_64 --> Running transaction check ---> Package keyutils.x86_64 0:1.4-5.el6 will be installed --> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-1.4-5.el6.x86_64 ---> Package libevent.x86_64 0:1.4.13-4.el6 will be installed ---> Package libgssglue.x86_64 0:0.1-11.el6 will be installed ---> Package libnl.x86_64 0:1.1.4-2.el6 will be installed ---> Package libtalloc.x86_64 0:2.0.7-2.el6 will be installed ---> Package libtirpc.x86_64 0:0.2.1-10.el6 will be installed ---> Package nfs-utils-lib.x86_64 0:1.1.5-9.el6 will be installed ---> Package rpcbind.x86_64 0:0.2.0-11.el6 will be installed ---> Package samba-winbind-clients.x86_64 0:3.6.23-14.el6_6 will be installed --> Processing Dependency: samba-winbind = 3.6.23-14.el6_6 for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 --> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64

Page 17: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

--> Processing Dependency: libtdb.so.1(TDB_1.2.5)(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 --> Processing Dependency: libtdb.so.1(TDB_1.2.2)(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 --> Processing Dependency: libtdb.so.1(TDB_1.2.1)(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 --> Processing Dependency: libtevent.so.0()(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 --> Processing Dependency: libtdb.so.1()(64bit) for package: samba-winbind-clients-3.6.23-14.el6_6.x86_64 ---> Package tcp_wrappers.x86_64 0:7.6-57.el6 will be installed --> Running transaction check ---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated ---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update ---> Package libtdb.x86_64 0:1.2.10-1.el6 will be installed ---> Package libtevent.x86_64 0:0.9.18-3.el6 will be installed ---> Package samba-winbind.x86_64 0:3.6.23-14.el6_6 will be installed --> Processing Dependency: samba-common = 3.6.23-14.el6_6 for package: samba-winbind-3.6.23-14.el6_6.x86_64 --> Running transaction check ---> Package samba-common.x86_64 0:3.6.23-14.el6_6 will be installed --> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: heartbeat x86_64 3.0.4-2.el6 epel 161 k Installing for dependencies: PyXML x86_64 0.8.4-19.el6 base 892 k cifs-utils x86_64 4.8.1-19.el6 base 65 k cluster-glue x86_64 1.0.5-6.el6 base 71 k cluster-glue-libs x86_64 1.0.5-6.el6 base 116 k heartbeat-libs x86_64 3.0.4-2.el6 epel 263 k

Page 18: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

keyutils x86_64 1.4-5.el6 base 39 k libevent x86_64 1.4.13-4.el6 base 66 k libgssglue x86_64 0.1-11.el6 base 23 k libnl x86_64 1.1.4-2.el6 base 121 k libtalloc x86_64 2.0.7-2.el6 base 20 k libtdb x86_64 1.2.10-1.el6 base 33 k libtevent x86_64 0.9.18-3.el6 base 26 k libtirpc x86_64 0.2.1-10.el6 base 79 k libtool-ltdl x86_64 2.2.6-15.5.el6 base 44 k nfs-utils x86_64 1:1.2.3-54.el6 base 326 k nfs-utils-lib x86_64 1.1.5-9.el6 base 68 k perl-TimeDate noarch 1:1.16-13.el6 base 37 k quota x86_64 1:3.17-21.el6_5 base 201 k resource-agents x86_64 3.9.5-12.el6_6.5 updates 357 k rpcbind x86_64 0.2.0-11.el6 base 51 k samba-common x86_64 3.6.23-14.el6_6 updates 10 M samba-winbind x86_64 3.6.23-14.el6_6 updates 2.2 M samba-winbind-clients x86_64 3.6.23-14.el6_6 updates 2.0 M tcp_wrappers x86_64 7.6-57.el6 base 61 k Updating for dependencies: keyutils-libs x86_64 1.4-5.el6 base 20 k Transaction Summary =============================================================================================================================================================================================== Install 25 Package(s) Upgrade 1 Package(s)

Page 19: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Total download size: 17 M Is this ok [y/N]: y Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Warning: RPMDB altered outside of yum. Installing : libtalloc-2.0.7-2.el6.x86_64 1/27 Installing : libgssglue-0.1-11.el6.x86_64 2/27 Installing : libtool-ltdl-2.2.6-15.5.el6.x86_64 3/27 Installing : cluster-glue-libs-1.0.5-6.el6.x86_64 4/27 Installing : libtevent-0.9.18-3.el6.x86_64 5/27 Installing : libtdb-1.2.10-1.el6.x86_64 6/27 Installing : samba-common-3.6.23-14.el6_6.x86_64 7/27 Installing : samba-winbind-3.6.23-14.el6_6.x86_64 8/27 Installing : samba-winbind-clients-3.6.23-14.el6_6.x86_64 9/27 Updating : keyutils-libs-1.4-5.el6.x86_64 10/27 Installing : keyutils-1.4-5.el6.x86_64 11/27 Installing : libtirpc-0.2.1-10.el6.x86_64 12/27 Installing : rpcbind-0.2.0-11.el6.x86_64 13/27 Installing : cifs-utils-4.8.1-19.el6.x86_64 14/27 Installing : libnl-1.1.4-2.el6.x86_64 15/27 Installing : 1:perl-TimeDate-1.16-13.el6.noarch 16/27 Installing : cluster-glue-1.0.5-6.el6.x86_64 17/27 Installing : tcp_wrappers-7.6-57.el6.x86_64 18/27 Installing : 1:quota-3.17-21.el6_5.x86_64 19/27 Installing : libevent-1.4.13-4.el6.x86_64 20/27

Page 20: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Installing : nfs-utils-lib-1.1.5-9.el6.x86_64 21/27 Installing : 1:nfs-utils-1.2.3-54.el6.x86_64 22/27 Installing : resource-agents-3.9.5-12.el6_6.5.x86_64 23/27 Installing : PyXML-0.8.4-19.el6.x86_64 24/27 Installing : heartbeat-libs-3.0.4-2.el6.x86_64 25/27 Installing : heartbeat-3.0.4-2.el6.x86_64 26/27 Cleanup : keyutils-libs-1.4-4.el6.x86_64 27/27 Verifying : samba-winbind-clients-3.6.23-14.el6_6.x86_64 1/27 Verifying : samba-common-3.6.23-14.el6_6.x86_64 2/27 Verifying : samba-winbind-3.6.23-14.el6_6.x86_64 3/27 Verifying : 1:nfs-utils-1.2.3-54.el6.x86_64 4/27 Verifying : libtalloc-2.0.7-2.el6.x86_64 5/27 Verifying : 1:quota-3.17-21.el6_5.x86_64 6/27 Verifying : PyXML-0.8.4-19.el6.x86_64 7/27 Verifying : libevent-1.4.13-4.el6.x86_64 8/27 Verifying : cluster-glue-1.0.5-6.el6.x86_64 9/27 Verifying : nfs-utils-lib-1.1.5-9.el6.x86_64 10/27 Verifying : resource-agents-3.9.5-12.el6_6.5.x86_64 11/27 Verifying : libtevent-0.9.18-3.el6.x86_64 12/27 Verifying : keyutils-libs-1.4-5.el6.x86_64 13/27 Verifying : tcp_wrappers-7.6-57.el6.x86_64 14/27 Verifying : rpcbind-0.2.0-11.el6.x86_64 15/27 Verifying : keyutils-1.4-5.el6.x86_64 16/27 Verifying : cifs-utils-4.8.1-19.el6.x86_64 17/27

Page 21: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

Verifying : heartbeat-libs-3.0.4-2.el6.x86_64 18/27 Verifying : heartbeat-3.0.4-2.el6.x86_64 19/27 Verifying : libtdb-1.2.10-1.el6.x86_64 20/27 Verifying : libtool-ltdl-2.2.6-15.5.el6.x86_64 21/27 Verifying : cluster-glue-libs-1.0.5-6.el6.x86_64 22/27 Verifying : 1:perl-TimeDate-1.16-13.el6.noarch 23/27 Verifying : libnl-1.1.4-2.el6.x86_64 24/27 Verifying : libtirpc-0.2.1-10.el6.x86_64 25/27 Verifying : libgssglue-0.1-11.el6.x86_64 26/27 Verifying : keyutils-libs-1.4-4.el6.x86_64 27/27 Installed: heartbeat.x86_64 0:3.0.4-2.el6 Dependency Installed: PyXML.x86_64 0:0.8.4-19.el6 cifs-utils.x86_64 0:4.8.1-19.el6 cluster-glue.x86_64 0:1.0.5-6.el6 cluster-glue-libs.x86_64 0:1.0.5-6.el6 heartbeat-libs.x86_64 0:3.0.4-2.el6 keyutils.x86_64 0:1.4-5.el6 libevent.x86_64 0:1.4.13-4.el6 libgssglue.x86_64 0:0.1-11.el6 libnl.x86_64 0:1.1.4-2.el6 libtalloc.x86_64 0:2.0.7-2.el6 libtdb.x86_64 0:1.2.10-1.el6 libtevent.x86_64 0:0.9.18-3.el6 libtirpc.x86_64 0:0.2.1-10.el6 libtool-ltdl.x86_64 0:2.2.6-15.5.el6 nfs-utils.x86_64 1:1.2.3-54.el6 nfs-utils-lib.x86_64 0:1.1.5-9.el6 perl-TimeDate.noarch 1:1.16-13.el6 quota.x86_64 1:3.17-21.el6_5 resource-agents.x86_64 0:3.9.5-12.el6_6.5 rpcbind.x86_64 0:0.2.0-11.el6 samba-common.x86_64 0:3.6.23-14.el6_6 samba-winbind.x86_64 0:3.6.23-14.el6_6 samba-winbind-clients.x86_64 0:3.6.23-14.el6_6 tcp_wrappers.x86_64 0:7.6-57.el6 Dependency Updated: keyutils-libs.x86_64 0:1.4-5.el6 Complete! [root@web01 downlaod]# cp /usr/share/doc/heartbeat-3.0.4/authkeys /etc/ha.d/ [root@web01 downlaod]# cp /usr/share/doc/heartbeat-3.0.4/ha.cf /etc/ha.d/ [root@web01 downlaod]# cp /usr/share/doc/heartbeat-3.0.4/haresources /etc/ha.d/ [root@web01 downlaod]# vi /etc/ha.d/authkeys

Page 22: Alternate Titles: “High Availability Apache Two Node Setup ... · Package ctags-5.8-2.el6.x86_64 already installed and latest version Package cscope-15.6-6.el6.x86_64 already installed

auth 2 2 sha1 test-ha :wq! [root@web01 downlaod]# chmod 600 /etc/ha.d/authkeys [root@web01 downlaod]# vi /etc/ha.d/ha.cf Line20 logfile /var/log/ha-log Line34 logfacility local0 Line48 keepalive 2 Line56 deadtime 30 Line71 initdead 120 Line76 udpport 694 Line91 bcast eth0 Line157 auto_failback on Line211 node web01.ha Line212 node web02.ha :wq! Note: web01.Ha and web02.ha is the output generated by [root@web01 downlaod]# uname -n web01.ha The final piece of work in our configuration is to edit the haresources file. This file contains the information about resources which we want to highly enable. In our case we want the webserver (httpd) highly available: Line45 web01.ha 192.168.48.140 httpd :wq! Line135 Listen 192.168.48.140:80 :wq! [root@web01 downlaod]# echo "WEB01.HA HIGH AVAILIBILTY APACHE TESTING" > /var/www/html/index.html [root@web01 downlaod]#/etc/init.d/heartbeat start