openSUSE Leap 16

GlusterFS : インストール2025/12/04

 

分散ファイルシステム GlusterFS をインストールして、ストレージクラスターを構成します。

前提として、クラスターを構成するノード群では GlusterFS に割り当てる領域は / パーティションとは別であることが推奨です。
( / 配下の任意のディレクトリでも設定は可能だが、非推奨のため、設定の際に強制オプションの付加が必要 )

当例では、全ノードで [sdb1] を [/glusterfs] にマウントして設定します。

[1] クラスターを構成する全ノードで GlusterFS サーバーをインストールして起動しておきます。
node01:~ #
zypper -n install glusterfs hostname
node01:~ #
vi /etc/glusterfs/glusterd.vol
   # 12行目 : IPv4 で通信する場合は 下行をコメント解除して変更
   option transport.address-family inet

node01:~ #
systemctl enable --now glusterd
node01:~ #
gluster --version

glusterfs 11.1
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 サービスの許可が必要です。全ノードで実施します。
node01:~ #
firewall-cmd --add-port={24007/tcp,24008/tcp,38465-38469/tcp,49152-60999/tcp}

success
node01:~ #
firewall-cmd --runtime-to-permanent

success
 

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

関連コンテンツ