Server hosts
Server configuration
yum -y update && upgrade; yum clean all; yum autoremove
systemctl stop iptables systemctl stop firewalld systemctl disable iptables systemctl disable firewalld
yum -y install centos-release-gluster yum -y install glusterfs-server
systemctl start glusterd systemctl enable glusterd
cat >> /etc/hosts 103.43.47.x glusterfs01.darin.web.id 103.43.47.x glusterfs02.darin.web.id 103.43.47.x glusterfs03.darin.web.id
mkdir /mnt/folder
gluster peer storage glusterfs02.darin.web.id gluster peer storage glusterfs03.darin.web.id peer probe: success
gluster volume create volume-name transport tcp glusterfs01.darin.web.id:/mnt/folder glusterfs02.darin.web.id:/mnt/folder glusterfs03.darin.web.id:/mnt/folder volume create: storage: success: please start the volume to access data gluster volume start volume-name gluster volume status volume-name
Client configuration (Mounting shared volume using Gluster Native Client)
yum -y update && upgrade; yum clean all; yum autoremove
systemctl stop iptables systemctl stop firewalld systemctl disable iptables systemctl disable firewalld
cat >> /etc/hosts 103.43.47.x glusterfs01.darin.web.id 103.43.47.x glusterfs02.darin.web.id 103.43.47.x glusterfs03.darin.web.id
yum -y install wget fuse fuse-libs openib libibverbs
The glusterfs package contains the Gluster Native Client The glusterfs-fuse package contains the FUSE translator required for mounting on client systems The glusterfs-rdma packages contain OpenFabrics verbs RDMA module for Infiniband
http://www.gluster.org/download/
wget https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.8/glusterfs-3.8.15-2.el7.x86_64.rpm wget https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.8/glusterfs-fuse-3.8.15-2.el7.x86_64.rpm wget https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.8/glusterfs-rdma-3.8.15-2.el7.x86_64.rpm wget https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.8/glusterfs-libs-3.8.15-2.el7.x86_64.rpm wget https://buildlogs.centos.org/centos/7/storage/x86_64/gluster-3.8/glusterfs-client-xlators-3.8.15-2.el7.x86_64.rpm rpm -i glusterfs-3.8.15-2.el7.x86_64.rpm rpm -i glusterfs-fuse-3.8.15-2.el7.x86_64.rpm rpm -i glusterfs-libs-3.8.15-2.el7.x86_64.rpm rpm -i glusterfs-client-xlators-3.8.15-2.el7.x86_64.rpm rpm -i glusterfs-rdma-3.8.15-2.el7.x86_64.rpm
mkdir /data mount -t glusterfs HOSTNAME-OR-IPADDRESS:/VOLNAME MOUNTDIR mount -t glusterfs 103.43.47.x:/glusterstorage /data mount -t gluster fs glusterfs01.darin.web.id :/glusterstorage /data
Cluster verification and test from client
cd /data touch file{1..1000} check whether file exist in every node or not