Tecnologia da Informação - TI : It's the settings for GlusterFS clients to mount GlusterFS volumes

Total de visualizações de página

quinta-feira, 14 de abril de 2016

It's the settings for GlusterFS clients to mount GlusterFS volumes


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 ~]# 
systemctl start rpcbind rpc-statd 

[root@client ~]# 
systemctl enable rpcbind rpc-statd
[root@client ~]# 
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

O Caminho para a Infraestrutura Ágil: Modernizar ou Estagnar?

  Com certeza. Para um post mais denso e detalhado, o ideal é abordar a Transformação Digital e a Modernização da Infraestrutura . Esse tipo...