/article/2018/11/05/glusterfs-install/

glusterfs安装

  • 【作者】看不见我
  • 【分类】Service
  • 【发布】2018-11-05 19:56
  • 【更新】2018-11-05 19:56

Glusterfs Soft Install

glustster软件包安装文档。

版本情况:

https://www.gluster.org/download/

version 3.7.20    3.7的最后一个版本
version 3.10.12   3.10稳定版本(双副本镜像卷)
version 3.12.14   3.12稳定版本(需要3副本或arbiter镜像卷的版本)

PPA源安装(ubuntu)

# Ubuntu 14
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:gluster/glusterfs-3.8
sudo apt-get update
sudo apt-get install glusterfs-server

源码安装

1. 依赖包

centos

# 必须依赖包
yum -y install libtool
yum -y install flex bison libacl-devel python-devel
yum -y install sqlite-devel
# 默认yum源没有的包,需要用EPEL源安装
# 可以使用阿里云源:https://opsx.alibaba.com/mirror
yum -y install userspace-rcu-devel

# 所有依赖包
#yum install automake autoconf libtool flex bison openssl-devel libxml2-devel python-devel libaio-devel libibverbs-devel librdmacm-devel readline-devel lvm2-devel glib2-devel userspace-rcu-devel libcmocka-devel libacl-devel sqlite-devel fuse-devel redhat-rpm-config

2. 编译安装

VERSION=3.12.14
wget https://download.gluster.org/pub/gluster/glusterfs/${VERSION%.*}/${VERSION?"(ERROR)unknown version"}/glusterfs-${VERSION}.tar.gz
[ $? -eq 0 ] && tar -zxvf glusterfs-${VERSION?"(ERROR)unknown version"}.tar.gz
[ $? -eq 0 ] && cd glusterfs-${VERSION?"(ERROR)unknown version"}
[ $? -eq 0 ] && ./autogen.sh
[ $? -eq 0 ] && ./configure --prefix=/usr/local/glusterfs
[ $? -eq 0 ] && make && make install && echo ok ...

3. Linux环境变量

echo 'export PATH=/usr/local/glusterfs/sbin:$PATH' > /etc/profile.d/glusterfs.sh
Top