Debian 13 trixie

GlusterFS : GlusterFS クライアントの設定2025/08/20

 

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

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

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

Filesystem                        Type            Size  Used Avail Use% Mounted on
udev                              devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs                             tmpfs           392M  536K  392M   1% /run
/dev/mapper/debian--vg-root       ext4             27G  1.1G   25G   5% /
tmpfs                             tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/systemd-journald.service
tmpfs                             tmpfs           2.0G     0  2.0G   0% /tmp
/dev/vda1                         ext4            943M   74M  804M   9% /boot
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/serial-getty@ttyS0.service
tmpfs                             tmpfs           1.0M     0  1.0M   0% /run/credentials/getty@tty1.service
tmpfs                             tmpfs           392M  4.0K  392M   1% /run/user/0
node01.srv.world:/vol_distributed fuse.glusterfs   54G  2.8G   49G   6% /mnt

# 読み書き確認

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

root@client:~#
cat /mnt/testfile.txt

Gluster write test
関連コンテンツ