CentOS Stream 8
Sponsored Link

GlusterFS 6 : GlusterFS Client2021/03/22

 
Configure GlusterFS Client to mount GlusterFS volumes.
[1] To mount with GlusterFS Native, Set like follows.
The example below shows to mount [vol_distributed] volume to [/mnt].
[root@client ~]#
dnf -y install centos-release-gluster6
[root@client ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-6.repo
[root@client ~]#
dnf -y install glusterfs glusterfs-fuse
# OK to specify any target nodes in cluster

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

Filesystem                        Type            Size  Used Avail Use% Mounted on
devtmpfs                          devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs                             tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs                             tmpfs           1.9G  8.6M  1.9G   1% /run
tmpfs                             tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup
/dev/mapper/cs-root               xfs              26G  2.3G   24G   9% /
/dev/vda1                         xfs            1014M  259M  756M  26% /boot
tmpfs                             tmpfs           374M     0  374M   0% /run/user/0
node01.srv.world:/vol_distributed fuse.glusterfs   52G  5.1G   47G  10% /mnt

# verify reading and writing

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

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

Gluster write test
Matched Content