CentOS Stream9に分散ファイルシステムGlusterFSをインストールする
環境
CentOS Stream release 9
操作方法
1.システムパッケージを更新します
# sudo dnf update
2.GlusterFSをインストールします
# 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
3.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.
4.glusterfsを起動します
# sudo systemctl start glusterd
自動起動を設定します
# sudo systemctl enable --now glusterd
ステータスを確認します
# 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 Sat 2022-10-15 00:03:34 JST; 3min 1s ago
5.Firewallを設定します
# sudo firewall-cmd --add-service=glusterfs # sudo firewall-cmd --reload