yum install centos-release-gluster
yum install glusterfs-server

Verify


[[email protected] ~]# glusterfs --version
glusterfs 3.12.9
Repository revision: git://git.gluster.org/glusterfs.git
Copyright (c) 2006-2016 Red Hat, Inc. <https://www.gluster.org/>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
It is licensed to you under your choice of the GNU Lesser
General Public License, version 3 or any later version (LGPLv3
or later), or the GNU General Public License, version 2 (GPLv2),
in all cases as published by the Free Software Foundation.

start service

service glusterd start
service rpcbind start

probe node

gluster peer probe gluster3
gluster peer probe gluster2

[[email protected] ~]# service glusterd start
Redirecting to /bin/systemctl start glusterd.service
[[email protected] ~]# gluster peer probe gluster3
peer probe: success.
[[email protected] ~]# gluster peer probe gluster2
peer probe: success. Probe on localhost not needed

create /data, create volume

[[email protected] ~]# mkdir /data
[[email protected] ~]# gluster volume create triple gluster1:/data gluster2:/data gluster3:/data
volume create: triple: failed: The brick gluster3:/data is being created in the root partition. It is recommended that you don't use the system's root partition for storage backend. Or use 'force' at the end of the command if you want to override this behavior.
[[email protected] ~]# gluster volume create triple gluster1:/data gluster2:/data gluster3:/data force
volume create: triple: success: please start the volume to access data

verify

# gluster volume info

Volume Name: triple
Type: Distribute
Volume ID: 34767df2-24e3-438f-be5d-53edeaefef4f
Status: Created
Snapshot Count: 0
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: gluster1:/data
Brick2: gluster2:/data
Brick3: gluster3:/data
Options Reconfigured:
transport.address-family: inet
nfs.disable: on

start volume

[[email protected] ~]# gluster volume start triple
volume start: triple: success
[[email protected] ~]# gluster volume info

Volume Name: triple
Type: Distribute
Volume ID: 34767df2-24e3-438f-be5d-53edeaefef4f
Status: Started
Snapshot Count: 0
Number of Bricks: 3
Transport-type: tcp
Bricks:
Brick1: gluster1:/data
Brick2: gluster2:/data
Brick3: gluster3:/data
Options Reconfigured:
transport.address-family: inet
nfs.disable: on

check status

[[email protected] ~]# gluster volume status
Status of volume: triple
Gluster process                             TCP Port  RDMA Port  Online  Pid
------------------------------------------------------------------------------
Brick gluster1:/data                        49152     0          Y       387
Brick gluster2:/data                        49152     0          Y       1297
Brick gluster3:/data                        49152     0          Y       1216

Task Status of Volume triple
------------------------------------------------------------------------------
There are no active volume tasks