如何在RHEL8 YUM安装Gluster?

GlusterFS

1 前言

由于Gluster官方没有提供很详细的编译安装文档,本章将通过在RHEL8上安装GlusterF,用于作为编译安装的参照。
另外,由于本章重点是yum安装,故而本章不介绍Gluster的基础知识和集群的配置,如果你需要,请参考以下章节,
https://www.cmdschool.org/archives/6056
如果你需要使用编译安装,请参考如下章节,
https://www.cmdschool.org/archives/5917

2 最佳实践

2.1 系统的安装配置

请参阅以下链接安装RHEL8系统,
https://www.cmdschool.org/archives/5778

2.2 安装Gluster

2.2.1 配置Gluster的源

curl https://download.gluster.org/pub/gluster/glusterfs/6/6.3/RHEL/glusterfs-rhel8.repo > /etc/yum.repos.d/glusterfs-rhel8.repo

2.2.1 安装Gluster的包

yum install -y glusterfs-server

如果遇到以下错误提示,

Error:
 Problem: conflicting requests
  - nothing provides python3-pyxattr needed by glusterfs-server-6.3-1.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

可通过安装如下非官方源解决依赖关系,

yum install -y ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/releases/27/Everything/x86_64/os/Packages/p/python3-pyxattr-0.5.3-12.fc27.x86_64.rpm

2.3 配置Gluster

2.3.1 启动Gluster

systemctl start glusterd.service
systemctl enable glusterd.service

2.3.2 确认Gluster的进程启动

pgrep -a glusterd

可见如下信息,

2634 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO

2.3.3 确认Gluster的端口倾听

netstat -antp | grep glusterd

可见如下信息,

tcp        0      0 0.0.0.0:24007           0.0.0.0:*               LISTEN      2634/glusterd

参阅文档
========================
https://docs.gluster.org/en/latest/Install-Guide/Install/

没有评论

发表回复

GlusterFS
如何在RHEL8 部署Gluster客户端?

1 基础知识 1.1 Gluster卷的客户端类型 1.1.1 Gluster Native Cli …

GlusterFS
如何在RHEL8 部署Gluster服务端?

1 基础知识 1.1 Gluster的简介 – Gluster是一个可扩展的分布式文件系 …

GlusterFS
如何在RHEL8 编译安装Gluster?

1 前言 笔者之前使用yum部署过Gluster的服务,但最近笔者发现官方已经不再提供旧版本的rpm …