-
Notifications
You must be signed in to change notification settings - Fork 0
glusterfs install
bernardmaltais edited this page Apr 13, 2018
·
17 revisions
Heavily inspired from https://docs.gluster.org/en/latest/Quick-Start-Guide/Quickstart/
sudo sed -i 's/enforcing/permissive/g' /etc/selinux/config
sudo systemctl stop firewalld
sudo systemctl disable firewalld
sudo yum -y update
sudo yum -y install centos-release-gluster
sudo yum install -y glusterfs-server
sudo systemctl enable glusterd
sudo systemctl start glusterd
sudo mkfs.xfs -i size=512 /dev/sdc
sudo mkdir -p /data/brick1
sudo tee -a /etc/fstab <<-'EOF'
/dev/sdc /data/brick1 xfs defaults 1 2
EOF
sudo mount -a && mount
sudo mkdir /data/brick1/gv0
From "server1"
sudo gluster peer probe server2
Note: When using hostnames, the first server needs to be probed from one other server to set it's hostname.
From "server2"
sudo gluster peer probe server1
Note: Once this pool has been established, only trusted members may probe new servers into the pool. A new server cannot probe the pool, it must be probed from the pool.
Step 6 - Set up a GlusterFS volume
From any single server:
sudo gluster volume create gv0 replica 2 gluster1:/data/brick1/gv0 gluster2:/data/brick1/gv0
sudo gluster volume start gv0
Confirm that the volume shows "Started":
sudo gluster volume info