CentOS Stream 8
Sponsored Link

GlusterFS 9 : インストール2021/07/09

 
分散ファイルシステム GlusterFS をインストールして、ストレージクラスターを構成します。
前提として、クラスターを構成するノード群では GlusterFS に割り当てる領域は / パーティションとは別であることが推奨です。
( / 配下の任意のディレクトリでも設定は可能だが、非推奨のため、設定の際に強制オプションの付加が必要 )
当例では、全ノードで [sdb1] を [/glusterfs] にマウントして設定します。
[1] クラスターを構成する全ノードで GlusterFS サーバーをインストールして起動しておきます。
[root@node01 ~]#
dnf -y install centos-release-gluster9
[root@node01 ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-9.repo
[root@node01 ~]#
dnf --enablerepo=centos-gluster9,powertools -y install glusterfs-server
[root@node01 ~]#
systemctl enable --now glusterd
[root@node01 ~]#
gluster --version

glusterfs 9.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.
[2] Firewalld を有効にしている場合は、GlusterFS サービスの許可が必要です。全ノードで実施します。
[root@node01 ~]#
firewall-cmd --add-service=glusterfs

success
[root@node01 ~]#
firewall-cmd --runtime-to-permanent

success
 
GlusterFS サーバーのインストールと基本設定は以上です。
GlusterFS によるクラスターの構成設定は次ページ以降を参照ください。
関連コンテンツ