It's the settings for GlusterFS clients to mount GlusterFS volumes.
| |
| [1] | For mounting with GlusterFS Native Client, Configure like follows. |
[root@client ~]#
curl http://download.gluster.org/pub/gluster/glusterfs/LATEST/EPEL.repo/glusterfs-epel.repo -o /etc/yum.repos.d/glusterfs-epel.repo
[root@client ~]#
yum -y install glusterfs glusterfs-fuse
# mount vol_distributed volume on /mnt
[root@client ~]#
mount -t glusterfs node01.server.world:/vol_distributed /mnt
[root@client ~]#
df -hT
Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 27G 1.1G 26G 5% / devtmpfs devtmpfs 2.0G 0 2.0G 0% /dev tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 2.0G 8.3M 2.0G 1% /run tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/vda1 xfs 497M 151M 347M 31% /boot node01.server.world:/vol_distributed fuse.glusterfs 40G 65M 40G 1% /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 ~]#
[root@client ~]#
systemctl start rpcbind rpc-statd
[root@client ~]#
systemctl enable rpcbind rpc-statd
mount -t nfs -o mountvers=3 node01.server.world:/vol_distributed /mnt
[root@client ~]#
df -hT
Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/centos-root xfs 27G 1.1G 26G 5% / devtmpfs devtmpfs 2.0G 0 2.0G 0% /dev tmpfs tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs tmpfs 2.0G 8.3M 2.0G 1% /run tmpfs tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup /dev/vda1 xfs 497M 151M 347M 31% /boot node01.server.world:/vol_distributed nfs 40G 64M 40G 1% /mnt |
Nenhum comentário:
Postar um comentário