[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
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 --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
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
gluster pool list
mkdir -p /data/gluster/gv0
gluster volume create gv0 replica 2 rhoam01:/data/gluster/gv0 rhoam02:/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
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