一.准备两台ubuntu16.04机器PC1、PC2,网络配置分别如下:
PC1:
PC2:
二.PC1、PC2上分别安装heartbeat,步骤相同,如下:
1. 添加haclient用户组和hacluster用户
groupadd haclient
useradd -g haclient hacluster -M -s /sbin/nologin
2.安装依赖包
apt-get install autoconf
源码安装libtool-2.4.6
apt-get install glib2.0 glib2.0-data glib2.0-dev
apt-get install libxml2-dev
apt-get install libbz2-dev
apt-get install uuid-dev
apt-get install asciidoc
apt-get install libxslt1-dev
apt-get install libplumb2-dev
2.安装glue
./autogen.sh
./configure --prefix=/usr LIBS='/lib/i386-linux-gnu/libuuid.so.1'
make&&make install
3.安装resource agents
./autogen.sh
./configure --prefix=/usr LIBS='/lib/i386-linux-gnu/libuuid.so.1'
make&&make install
4.安装heartbeat
./bootstrap
./configure --prefix=/usr LIBS='/lib/i386-linux-gnu/libuuid.so.1'
make&&make install
三.配置heartbeat
阅读(2723) | 评论(0) | 转发(0) |