配置环境NFS: 192.168.1.121 CentOS6.7Node1:192.168.1.131 CentOS7.2Node2:192.168.1.132 CentOS7.2Node3:192.168.1.133 CentOS7.2配置前准备[root@node1~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost..
分类:
其他好文 时间:
2016-09-23 15:18:22
阅读次数:
406
drbd-8.4.3.tar.gz源码编译制作rpm包解压tar-axfdrbd-8.4.3.tar.gz./configure--enable-spec--with-km##--enable-specRatherthancreatingMakefiles,createanRPMspe##--with-kmEnablekernelmodule如果编译出现:configure:error:noacceptableCcompilerfoundin$PATH则yuminstall-..
分类:
其他好文 时间:
2016-09-23 00:10:28
阅读次数:
191
两个主机相同的配置安装corosync.x86_64pssh-2.3.1-2.1.x86_64.rpmcrmsh-1.2.6-0.rc2.2.1.x86_64.rpm/etc/corosync/corosync.conf4totem{5version:26secauth:off7threads:08interface{9ringnumber:010bindnetaddr:172.25.28.011mcastaddr:226.94.1.1#多播地址12mcastport:54070..
分类:
其他好文 时间:
2016-09-23 00:08:41
阅读次数:
195
heartbeat安装软件heartbeat-3.0.4-2.el6.x86_64.rpmheartbeat-devel-3.0.4-2.el6.x86_64.rpmheartbeat-libs-3.0.4-2.el6.x86_64.rpmldirectord-3.9.5-3.1.x86_64.rpm/usr/share/doc/ha.cfMainconfigurationfileharesourcesResourceconfigurationfileauthkeysAuthenticationinf..
分类:
其他好文 时间:
2016-09-23 00:03:45
阅读次数:
168
配置环境Node1:192.168.1.131 CentOS7.2Node2:192.168.1.132 CentOS7.2配置前准备[root@node1~]#cat/etc/hosts127.0.0.1localhostlocalhost.localdomainlocalhost4localhost4.localdomain4::1localhostlocalhost.localdomainlocalhost6localhost6.localdomain6192.168.1.131n..
分类:
其他好文 时间:
2016-09-22 11:40:12
阅读次数:
202
什么是DRBD?分布式复制块设备。当你将数据写入本地的DRBD设备上的文件系统时,数据同时会被发送到远程端的另一边的DRBD设备文件系统里,保障数据实时同步,当本地的DRBD设备突然故障,远程节点还保留一份一模一样的数据,根据这个特性,可以结合heatbeat的ha开源软件,实现高..
分类:
其他好文 时间:
2016-09-21 23:34:00
阅读次数:
270
DRBD理论DRBD(DistributedReplicatedBlockDevice),DRBD号称是“网络RAID”,开源软件,由LINBIT公司开发。DRBD工作原理:DRBD是一种块设备,可以被用于高可用(HA)之中.他有内核模块和相关程序而组成,通过网络通信来同步镜像整个设备,它类似于一个网络(磁盘阵列)RAID-1功能。当你..
分类:
其他好文 时间:
2016-09-18 15:45:38
阅读次数:
164
DRBD节点1:Server1.example.com172.25.23.1节点2:Server2.example.com172.25.23.2VIP:172.25.23.100Selinux和iptables处于disabled状态redhat6.5版本一.安装drbd将源码做成rpm包并安装下载的安装包为drbd-8.4.2.tar.gz[root@server1~]#yuminstallrpm-build-y#做rpm包的工具..
分类:
其他好文 时间:
2016-09-18 15:44:49
阅读次数:
206
HA的比较heartbeat与corosync是流行的MessagingLayer(集群信息层),非要在这两个当中选一个我选择corosync,至于理由是仁者见仁,智者见智,用过的人都知道。Pacemaker是最流行的CRM(集群资源管理器)是从heartbeatv3中独立出来的资源管理器,同时Corosync+Pacemaker是最流..
分类:
其他好文 时间:
2016-09-18 15:41:44
阅读次数:
473
一、安装环境说明 二、准备环境:(node1,node2) 1.关闭iptables和SELINUX,避免安装过程中报错 2.设置hosts文件 3.在两台虚拟机上添加一块2G硬盘sdb作为DRBD,分别分区为sdb1,大小1G,并在本地系统创建/data目录,不做挂载操作。 4.时间同步: 三、D ...
分类:
其他好文 时间:
2016-09-18 01:10:55
阅读次数:
307