GlusterFS 10 : GlusterFS Client2022/06/15 |
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-gluster10
[root@client ~]#
sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/CentOS-Gluster-10.repo # enable EPEL, too [root@client ~]# dnf --enablerepo=centos-gluster10,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 1.8G 0 1.8G 0% /dev tmpfs tmpfs 1.9G 0 1.9G 0% /dev/shm tmpfs tmpfs 744M 8.6M 736M 2% /run /dev/mapper/cs-root xfs 26G 2.0G 25G 8% / /dev/vda1 xfs 1014M 370M 645M 37% /boot tmpfs tmpfs 372M 0 372M 0% /run/user/0 node01.srv.world:/vol_distributed fuse.glusterfs 52G 4.5G 48G 9% /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 |
|