GlusterFS 11 : GlusterFS Client2023/03/31 |
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-gluster11
[root@client ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-11.repo # enable EPEL, too [root@client ~]# dnf --enablerepo=centos-gluster11,epel -y install glusterfs glusterfs-fuse # OK to specify any target nodes in cluster [root@client ~]# mount -t glusterfs node01.srv.world:/vol_distributed /mnt
df -hT Filesystem Type Size Used Avail Use% Mounted on devtmpfs devtmpfs 4.0M 0 4.0M 0% /dev tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 784M 8.6M 775M 2% /run /dev/mapper/cs-root xfs 26G 2.3G 24G 9% / /dev/vda1 xfs 1014M 295M 720M 29% /boot tmpfs tmpfs 392M 0 392M 0% /run/user/0 node01.srv.world:/vol_distributed fuse.glusterfs 52G 4.8G 48G 10% /mnt # verify read and write [root@client ~]# echo "Gluster write test" > /mnt/testfile.txt [root@client ~]# cat /mnt/testfile.txt Gluster write test |
Sponsored Link |