CentOS Stream9で分散ファイルシステム GlusterFS をインストールする

環境
# cat /etc/redhat-release
CentOS Stream release 9

GlusterFS 10のインストール手順
1.GlusterFS をインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf -y install centos-release-gluster10
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-10.repo
# dnf -y install centos-release-gluster10 # sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-10.repo
# dnf -y install centos-release-gluster10
# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-10.repo

2.EPEL有効にしてインストールします

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# dnf --enablerepo=centos-gluster10,epel -y install glusterfs-server
# dnf --enablerepo=centos-gluster10,epel -y install glusterfs-server
# dnf --enablerepo=centos-gluster10,epel -y install glusterfs-server

3.glusterの自動起動

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# systemctl enable --now glusterd
# systemctl enable --now glusterd
# systemctl enable --now glusterd

4.glusterバージョンの確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# gluster --version
glusterfs 10.2
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.
# gluster --version glusterfs 10.2 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.
# gluster --version
glusterfs 10.2
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 サービスの許可を行います。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# firewall-cmd --add-service=glusterfs
success
# firewall-cmd --runtime-to-permanent
success
# firewall-cmd --add-service=glusterfs success # firewall-cmd --runtime-to-permanent success
# firewall-cmd --add-service=glusterfs
success
# firewall-cmd --runtime-to-permanent
success

 

CentOS Stream 9

Posted by arkgame