Rocky Linux9 GlusterFSをインストールする
- 作成日 2022.09.21
- Rocky Linux
- Rocky Linux9

Rocky Linux9に、分散ファイルシステムであるGlusterFSをインストールする手順を記述してます。
環境
- OS Rocky Linux release 9.0 (Blue Onyx)
GlusterFSインストール
リポジトリを追加しておきます。
$ sudo dnf install epel-release
メタデータの期限切れの最終確認: 0:38:18 時間前の 2022年09月10日 16時15分02秒 に実施しました。
依存関係が解決しました。
==================================================================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ
====================================================================================================================================================インストール:
epel-release noarch 9-4.el9 extras 19 k
トランザクションの概要
====================================================================================================================================================インストール 1 パッケージ
ダウンロードサイズの合計: 19 k
インストール後のサイズ: 25 k
これでよろしいですか? [y/N]: y
パッケージのダウンロード:
epel-release-9-4.el9.noarch.rpm 772 kB/s | 19 kB 00:00
----------------------------------------------------------------------------------------------------------------------------------------------------合計 34 kB/s | 19 kB 00:00
トランザクションの確認を実行中
トランザクションの確認に成功しました。
トランザクションのテストを実行中
トランザクションのテストに成功しました。
トランザクションを実行中
準備 : 1/1
インストール中 : epel-release-9-4.el9.noarch 1/1
scriptletの実行中: epel-release-9-4.el9.noarch 1/1
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
検証 : epel-release-9-4.el9.noarch 1/1
インストール済み:
epel-release-9-4.el9.noarch
完了しました!
アップデートしてます。
$ sudo dnf update
準備ができたので、インストールを行います。
$ 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
バージョンを確認できれば、インストール完了です。
$ 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.
glusterfs起動
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-09-10 16:59:42 JST; 5s ago
Docs: man:glusterd(8)
Process: 353667 ExecStart=/usr/sbin/glusterd -p /var/run/glusterd.pid --log-level $LOG_LEVEL $GLUSTERD_OPTIONS (code=exited, status=0/SUCCESS)
Main PID: 353668 (glusterd)
Tasks: 8 (limit: 15463)
Memory: 12.3M
CPU: 12ms
CGroup: /system.slice/glusterd.service
└─353668 /usr/sbin/glusterd -p /var/run/glusterd.pid --log-level INFO
9月 10 16:59:42 localhost.localdomain systemd[1]: Starting GlusterFS, a clustered file-system server...
9月 10 16:59:42 localhost.localdomain systemd[1]: Started GlusterFS, a clustered file-system server.
firewallを設定していれば、許可しておきます。
$ sudo firewall-cmd --add-service=glusterfs
$ sudo firewall-cmd --reload
-
前の記事
SQL Server アスキーコードから文字列に変換する 2022.09.21
-
次の記事
Rocky Linux9 nginxをインストールする 2022.09.22
コメントを書く