GlusterFS_Storage_Pool_高可用及负载均衡配置_v2011091402. 下载本文

内容发布更新时间 : 2024/5/6 17:35:35星期一 下面是文章的全部内容请认真阅读。

GlusterFS Storage Pool 高可用及负载均衡配置

1. 概述 .................................................................................................................................................. 1 2. GlusterFS 安装配置 ........................................................................................................................ 2 3. CTDB简介 ........................................................................................................................................ 2 4. CTDB安装配置 ................................................................................................................................ 3

4.1. 4.2. 4.3.

通过源码编译安装 .............................................................................................................. 3 通过yum安装 ..................................................................................................................... 3 CTDB配置 ............................................................................................................................. 3

5. CTDB高可用测试 ............................................................................................................................ 5

5.1.

关于CTDB虚拟IP和CTDB集群内节点的实IP之间的关系 ........................................... 7

6. RR DNS简介 ..................................................................................................................................... 9 7. RR DNS master/slave安装配置 ....................................................................................................... 9

7.1. 7.2. 7.3.

通过yum安装 ..................................................................................................................... 9 通过源码安装 ...................................................................................................................... 9 Master/Slave配置 .............................................................................................................. 10 7.3.1.

BIND Master的配置 ............................................................................................... 10

Zone配置文件中关键字说明............................................................................................... 12 7.3.2.

BIND Slave的配置 .................................................................................................. 13

8. RR DNS负载均衡测试 ................................................................................................................... 14 参考资料 ............................................................................................................................................... 15

1. 概述

通过为GlusterFS 存储池配置CTDB以及RR DNS ,实现CIFS、NFS、Gluster Native输出的高可用和负载均衡。

1 / 15

CIFS ClientNFS ClientGluster ClientOtherClientIP NetworkGluster Storage PoolRR DNSMasterCTDBActiveCIFSGlusterFS ClientNFSRR DNSSlaveCTDBActiveCIFSGlusterFS ClientNFSCTDBActiveCIFSGlusterFS ClientGlusterFSNFS...GlusterFSGlusterFS

2. GlusterFS 安装配置

GlusterFS安装:略。

GlusterFS卷必须配置为副本模式,确保底层集群文件系统是高可用的。

3. CTDB简介

CTDB is a cluster implementation of the TDB database used by Samba and other projects to store temporary data. If an application is already using TDB for temporary data it is very easy to convert that application to be cluster aware and use CTDB instead.

Features include:

CTDB provides a TDB that has consistent data and consistent locking across all nodes in a cluster. CTDB is very fast.

In case of node failures, CTDB will automatically recover and repair all TDB databases that it manages. CTDB is the core component that provides pCIFS (\CTDB provides HA features such as node monitoring, node failover, and IP takeover.

CTDB provides a reliable messaging transport to allow applications linked with CTDB to communicate to other instances of the application running on different nodes in the cluster.

CTDB has pluggable transport backends. Currently implemented backends are TCP and Infiniband.

CTDB supports a system of application specific management scripts, allowing applications that depend on network or filesystem resources to be managed in a highly available manner on a cluster.

2 / 15

4. CTDB安装配置

4.1. 通过源码编译安装

4.2. 通过yum安装

yum install ctdb

4.3. CTDB配置

在GlusterFS存储池中创建一个副本卷conf,用来存放CTDB的 lock file。

停止samba服务,修改/etc/samba/smb.conf配置文件。

创建CTDB的主配置文件ctdb。在这里指定其他文件的位置及名称。

3 / 15