Rocky Linux9に分散ファイルシステムGlusterFSをインストールする

環境
# cat /etc/redhat-release
Rocky Linux release 9.0 (Blue Onyx)

操作方法
1.リポジトリを追加します

# sudo dnf install epel-release

2.システムパッケージを更新します

# sudo dnf update

3.glusterをインストールします

# sudo dnf -y install centos-release-gluster10
# sudo sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-10.repo
# sudo dnf --enablerepo=centos-gluster10,epel -y install glusterfs-server

4.glusterバージョンを確認します

# gluster --version
glusterfs 10.3
Repository revision: git://git.gluster.org/glusterfs.git
Copyright (c) 2006-2016 Red Hat, Inc. <https://www.gluster.org/>
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.

5.glusterfsを起動します

# sudo systemctl start glusterd

6.glusterfs自動起動を設定します

# sudo systemctl enable --now glusterd

7.glusterfsステータスを確認します

# sudo systemctl status glusterd
● glusterd.service - GlusterFS, a clustered file-system server
     Loaded: loaded (/usr/lib/systemd/system/glusterd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-10-16 16:45:51 JST; 1min 57s ago

8.Firewallを設定します

# sudo firewall-cmd --add-service=glusterfs
success

firewall設定を反映します

# sudo firewall-cmd --reload
success

 

Rocky Linux 9

Posted by arkgame