sudo apt-get install -y xfsprogs
sudo apt install software-properties-common sudo add-apt-repository ppa:gluster/glusterfs-7 sudo apt update sudo apt install -y glusterfs-server
sudo mkdir /mnt/disks
sudo dd if=/dev/zero of=/mnt/disks/5GB_HDD.img bs=1M count=5120
sudo losetup -P --show /dev/loop56 /mnt/disks/5GB_HDD.img
sudo mkfs.xfs -i size=512 /dev/loop56 sudo mkdir -p /data/brick1 sudo su echo '/dev/loop56 /data/brick1 xfs defaults 1 2' >> /etc/fstab exit sudo mount -a && mount
sudo service glusterd start sudo service glusterd status
gluster peer probe Server1 gluster peer probe Server2
gluster peer probe Server0
sudo gluster peer status
sudo mkdir -p /data/brick1/gv0
sudo gluster volume create gv0 replica 3 s3tel-00:/data/brick1/gv0 s3tel-01:/data/brick1/gv0 Server1:/data/brick1/gv0 sudo gluster volume start gv0
sudo mkdir -p /mnt/gluster_gv0 sudo mount -t glusterfs server1:/gv0 /mnt/gluster_gv0 sudo chown -R s3tel:s3tel /mnt/gluster_gv0/
gluster volume info
Reference: https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/ https://docs.gluster.org/en/latest/Install-Guide/Install/#for-ubuntu http://www.linuxandubuntu.com/home/creating-virtual-disks-using-linux-command-line