CentOS Stream 9
Sponsored Link

GlusterFS 9 : GlusterFS クライアントの設定2022/03/30

 
GlusterFS ボリュームを任意のクライアントからマウントします。
[1] GlusterFS Native でマウントする場合は、以下のように設定します。
例として [vol_distributed] ボリュームを [/mnt] にマウントします。
[root@client ~]#
dnf -y install centos-release-gluster9
[root@client ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-9.repo
[root@client ~]#
dnf --enablerepo=centos-gluster9 -y install glusterfs glusterfs-fuse
# 宛先はボリューム構成ノードであればどこでも可

[root@client ~]#
mount -t glusterfs node01.srv.world:/vol_distributed /mnt
[root@client ~]#
df -hT

devtmpfs                          devtmpfs        1.8G     0  1.8G   0% /dev
tmpfs                             tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs                             tmpfs           745M  8.6M  737M   2% /run
/dev/mapper/cs-root               xfs              26G  1.9G   25G   8% /
/dev/vda1                         xfs            1014M  370M  645M  37% /boot
tmpfs                             tmpfs           373M     0  373M   0% /run/user/0
node01.srv.world:/vol_distributed fuse.glusterfs   52G  4.3G   48G   9% /mnt

# 読み書き確認

[root@client ~]#
echo "Gluster write test" > /mnt/testfile.txt

[root@client ~]#
cat /mnt/testfile.txt

Gluster write test
関連コンテンツ