rasti.hil@hilandco.com +41 79 367-9677

Search This Blog

Install and Configure GlusterFS RHEL 7 ( azure <> azure)

vi /etc/yum.repos.d/Gluster.repo

[gluster50]
name=Gluster 5.0
baseurl=http://mirror.centos.org/centos/7/storage/x86_64/gluster-5/
gpgcheck=0
enabled=1

yum install -y glusterfs-server
systemctl start glusterd
systemctl enable glusterd

fdisk /dev/sdd
n 1

mkfs.ext4 /dev/sdd1
mkdir -p /data/gluster
mount /dev/sdd1 /data/gluster
echo "/dev/sdd1 /data/gluster ext4 defaults 0 0" | tee --append /etc/fstab

firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="10.0.0.0/24" accept'
firewall-cmd --reload
firewall-cmd --zone=public --add-rich-rule='rule family="ipv4" source address="rhoam02" accept'
firewall-cmd --reload

gluster peer probe rhoam01.westeurope.cloudapp.azure.com
gluster peer probe rhoam02.westeurope.cloudapp.azure.com
gluster peer status
gluster pool list
mkdir -p /data/gluster/gv0
gluster volume create gv0 replica 2 rhoam01:/data/gluster/gv0 rhoam02:/data/gluster/gv0
gluster volume start gv0
gluster volume info gv0

mount -t glusterfs rhoam01:/gv0 /mnt
mount -t glusterfs rhoam02:/gv0 /mnt

echo "rhoam01:/gv0 /mnt glusterfs defaults,_netdev 0 0" | tee --append /etc/fstab