CentOS 7
Ads

GlusterFS : Clients' Settings
2016/08/06
 
It's the settings for GlusterFS clients to mount GlusterFS volumes.
[1] For mounting with GlusterFS Native Client, Configure like follows.
[root@client ~]#
yum -y install centos-release-gluster38
[root@client ~]#
yum -y install glusterfs glusterfs-fuse
# mount vol_distributed volume on /mnt

[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/centos-root           xfs              27G  1.5G   26G   6% /
devtmpfs                          devtmpfs        2.0G     0  2.0G   0% /dev
tmpfs                             tmpfs           2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs           2.0G  8.4M  2.0G   1% /run
tmpfs                             tmpfs           2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/vda1                         xfs             497M  208M  290M  42% /boot
tmpfs                             tmpfs           396M     0  396M   0% /run/user/0
node01.srv.world:/vol_distributed fuse.glusterfs   53G  3.0G   51G   6% /mnt
[2] NFS (v3) is also supported, so it's possible to mount with NFS.
Configure for it on GlusterFS Servers first, refer to here.
[root@client ~]#
yum -y install nfs-utils
[root@client ~]#
systemctl start rpcbind rpc-statd

[root@client ~]#
systemctl enable rpcbind rpc-statd
[root@client ~]#
mount -t nfs -o mountvers=3 node01.srv.world:/vol_distributed /mnt

[root@client ~]#
df -hT

Filesystem                        Type      Size  Used Avail Use% Mounted on
/dev/mapper/centos-root           xfs        27G  1.5G   26G   6% /
devtmpfs                          devtmpfs  2.0G     0  2.0G   0% /dev
tmpfs                             tmpfs     2.0G     0  2.0G   0% /dev/shm
tmpfs                             tmpfs     2.0G  8.4M  2.0G   1% /run
tmpfs                             tmpfs     2.0G     0  2.0G   0% /sys/fs/cgroup
/dev/vda1                         xfs       497M  208M  290M  42% /boot
tmpfs                             tmpfs     396M     0  396M   0% /run/user/0
node01.srv.world:/vol_distributed nfs        53G  3.0G   51G   6% /mnt
 
Tweet