Install Cluster Glue on RHEL6
Cluster Glue:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
[root@heartbeat1 software]# wget -c http://hg.linux-ha.org/glue/archive/0a7add1d9996.tar.bz2 --2015-12-16 06:33:29-- http://hg.linux-ha.org/glue/archive/0a7add1d9996.tar.bz2 Resolving hg.linux-ha.org... 66.35.48.29 Connecting to hg.linux-ha.org|66.35.48.29|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 451432 (441K) [application/x-bzip2] Saving to: “0a7add1d9996.tar.bz2” 100%[======================================>] 451,432 76.8K/s in 5.7s 2015-12-16 06:33:41 (76.8 KB/s) - “0a7add1d9996.tar.bz2” saved [451432/451432] [root@heartbeat1 software]# [root@heartbeat1 software]# ll total 444 -rw-r--r-- 1 root root 451432 Oct 22 06:38 0a7add1d9996.tar.bz2 [root@heartbeat1 software]# bunzip2 0a7add1d9996.tar.bz2 [root@heartbeat1 software]# ll total 2372 -rw-r--r-- 1 root root 2426880 Oct 22 06:38 0a7add1d9996.tar [root@heartbeat1 software]# tar -xf 0a7add1d9996.tar [root@heartbeat1 software]# ll total 2376 -rw-r--r-- 1 root root 2426880 Oct 22 06:38 0a7add1d9996.tar drwxr-xr-x 10 root root 4096 Dec 16 06:36 Reusable-Cluster-Components-glue--0a7add1d9996 [root@heartbeat1 software]# cd Reusable-Cluster-Components-glue--0a7add1d9996/ [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# ll total 192 -rw-r--r-- 1 root root 653 Oct 16 2014 AUTHORS -rwxr-xr-x 1 root root 5105 Oct 16 2014 autogen.sh -rw-r--r-- 1 root root 13808 Oct 16 2014 ChangeLog -rw-r--r-- 1 root root 6783 Oct 16 2014 cluster-glue-fedora.spec -rw-r--r-- 1 root root 8553 Oct 16 2014 cluster-glue-suse.spec drwxr-xr-x 2 root root 4096 Dec 16 06:36 config -rw-r--r-- 1 root root 45065 Oct 16 2014 configure.ac -rw-r--r-- 1 root root 17987 Oct 16 2014 COPYING -rw-r--r-- 1 root root 26434 Oct 16 2014 COPYING.LIB drwxr-xr-x 3 root root 4096 Dec 16 06:36 doc -rw-r--r-- 1 root root 1493 Oct 16 2014 GNUmakefile drwxr-xr-x 2 root root 4096 Dec 16 06:36 hb_report drwxr-xr-x 6 root root 4096 Dec 16 06:36 include drwxr-xr-x 7 root root 4096 Dec 16 06:36 lib drwxr-xr-x 2 root root 4096 Dec 16 06:36 logd drwxr-xr-x 5 root root 4096 Dec 16 06:36 lrm -rw-r--r-- 1 root root 1525 Oct 16 2014 Makefile.am -rw-r--r-- 1 root root 2 Oct 16 2014 NEWS -rw-r--r-- 1 root root 2 Oct 16 2014 README drwxr-xr-x 2 root root 4096 Dec 16 06:36 replace [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
autogen.sh:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
[root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# ./autogen.sh (... ...etc) libtoolize: Remember to add `LTDL_INIT' to configure.ac. libtoolize: Remember to add `LT_CONFIG_LTDL_DIR([libltdl])' to `configure.ac'. libtoolize: Consider using `AC_CONFIG_AUX_DIR([libltdl/config])' in configure.ac. libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am. aclocal autoheader automake --add-missing --include-deps --copy configure.ac:84: installing `./compile' configure.ac:28: installing `./config.guess' configure.ac:28: installing `./config.sub' configure.ac:71: installing `./install-sh' configure.ac:71: installing `./missing' lib/clplumbing/Makefile.am: installing `./depcomp' lrm/admin/Makefile.am:36: `%'-style pattern rules are a GNU make extension Makefile.am: installing `./INSTALL' autoconf Now run ./configure [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
./configure:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# ./configure --prefix=/usr/local/heartbeat/ GFLAGS=-I/usr/local/heartbeat LIBS="/lib64/libuuid.so.1" (.. ... etc。) Header files = /usr/local/heartbeat/include Arch-independent files = /usr/local/heartbeat/share Documentation = /usr/local/heartbeat/share/doc/cluster-glue State information = /usr/local/heartbeat/var System configuration = /usr/local/heartbeat/etc Use system LTDL = yes HA group name = haclient HA user name = hacluster CFLAGS = -g -O2 -ggdb -fgnu89-inline -fstack-protector-all -Wall -Waggregate-return -Wbad-function-cast -Wcast-qual -Wcast-align -Wdeclaration-after-statement -Wendif-labels -Wfloat-equal -Wformat=2 -Wformat-security -Wformat-nonliteral -Winline -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wno-long-long -Wno-strict-aliasing -Wpointer-arith -Wstrict-prototypes -Wwrite-strings -ansi -D_GNU_SOURCE -DANSI_ONLY -Werror Libraries = -lbz2 -lz -lxml2 -lc -luuid -lrt -ldl /lib64/libuuid.so.1 -lglib-2.0 -lltdl Stack Libraries = [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
make:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
[root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# make (... ...etc。) gmake[2]: Entering directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996/doc' a2x -f manpage hb_report.8.txt /usr/bin/xsltproc \ --xinclude \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ha_logd.xml Note: Writing ha_logd.8 /usr/bin/xsltproc \ --xinclude \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl ha_logger.xml Note: Writing ha_logger.1 /usr/bin/xsltproc \ --xinclude \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl stonith.xml Note: Writing stonith.8 /usr/bin/xsltproc \ --xinclude \ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl meatclient.xml Note: Writing meatclient.8 gmake[2]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996/doc' gmake[1]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996/doc' Making all in config gmake[1]: Entering directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996/config' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996/config' gmake[1]: Entering directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996' gmake[1]: Nothing to be done for `all-am'. gmake[1]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996' [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
make install:
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# make install (... ... etc。) /usr/bin/install -c -d -m 700 -o root //usr/local/heartbeat/var/lib/heartbeat/cores/root /usr/bin/install -c -d -m 700 -o nobody //usr/local/heartbeat/var/lib/heartbeat/cores/nobody /usr/bin/install -c -d -m 700 //usr/local/heartbeat/var/lib/heartbeat/cores/hacluster chown hacluster //usr/local/heartbeat/var/lib/heartbeat/cores/hacluster chown: invalid user: `hacluster' gmake[2]: [install-exec-local] Error 1 (ignored) gmake[2]: Nothing to be done for `install-data-am'. gmake[2]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996' gmake[1]: Leaving directory `/software/Reusable-Cluster-Components-glue--0a7add1d9996' [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
安装完成后:/usr/local/heartbeat
1 2 3 4 5 |
[root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# ls /usr/local/heartbeat/ include lib sbin share var [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# ls /usr/local/heartbeat/sbin/ cibsecret ha_logger hb_report lrmadmin meatclient stonith [root@heartbeat1 Reusable-Cluster-Components-glue--0a7add1d9996]# |
————————
Done。