原文地址:http://blog.csdn.net/wangyuling1234567890/article/details/25519261


安装环境:

CentOS6.2

glusterfs-3.4.3


GlusterFS 挂载需要 fuse 支持,如果你的内核版本低于 2.6.16 则需要下载fuse的源码包自行编译安装,也可下载 fuse 的rpm包。安装fuse的方法我就不说了,不会源码安装的直接去rpmfind.net上下载rpm即可。高于此版本的内核中已经有了fuse.ko的模块,需要的时候可以执行以下命令进行加载:

modprobe -b fuse


1、下载GlusterFS的源码包,目前已经有更新版本 :

wget http://download.gluster.org/pub/gluster/glusterfs/3.4/3.4.1/glusterfs-3.4.1.tar.gz

如果上面的链接失效,也可从我的blog 上面下载:

wget http://down.space-personal.com/GlusterFS/glusterfs-3.4.1.tar.gz


2、安装需要的依赖包:

yum install -y openssl-devel libaio-devel bison-devel.x86_64  flex systemtap-sdt-devel readline-devel


3、安装:

tar zxf glusterfs-3.4.1.tar.gz

cd glusterfs-3.4.1

./configure –prefix=/opt/soft/glusterfs –enable-systemtap

make -j4

make install

 

这样安装就已经完成了,执行命令:/opt/soft/glusterfs/sbin/glusterfs --version,看到如下信息则安装正确而

[root@localhost glusterfs-3.4.3]# glusterfs --version
glusterfs 3.4.3 built on May 10 2014 10:48:24
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2013 Red Hat, Inc.
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.


注:


由于安装到了/opt/soft/glusterfs目录下,所以需要把可执行文件链接到 系统环境变量里:

ln -s /opt/soft/glusterfs/sbin/glusterfs /usr/bin/glusterfs


                                                                                             —— —— 以上内容整理自互联网