Fedora 42
Sponsored Link

GlusterFS 11 : GlusterFS クライアントの設定2025/05/13

 

GlusterFS ボリュームを任意のクライアントからマウントします。

[1] GlusterFS Native でマウントする場合は、以下のように設定します。
例として [vol_distributed] ボリュームを [/mnt] にマウントします。
[root@client ~]#
dnf -y install glusterfs glusterfs-fuse
# 宛先はボリューム構成ノードであればどこでも可

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

Filesystem                        Type            Size  Used Avail Use% Mounted on
/dev/mapper/fedora-root           xfs              28G  2.3G   26G   9% /
devtmpfs                          devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs                             tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs           781M  1.1M  780M   1% /run
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs                             tmpfs           2.0G     0  2.0G   0% /tmp
/dev/vda2                         xfs             960M  328M  633M  35% /boot
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-resolved.service
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/serial-getty@ttyS0.service
tmpfs                             tmpfs           391M  4.0K  391M   1% /run/user/0
node01.srv.world:/vol_distributed fuse.glusterfs   56G  5.1G   51G  10% /mnt

# 読み書き確認

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

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

Gluster write test
関連コンテンツ