This write-up details the process of connecting your glusterfs nodes to an secure pool.
Step 1: Enable and Start the GlusterFS Services
1 2 |
systemctl enable glusterd |
Example Output
1 2 |
Created symlink from /etc/systemd/system/multi-user.target.wants/glusterd.service to /usr/lib/systemd/system/glusterd.service. |
Step 2: Start GlusterFS Service
1 2 |
systemctl start glusterd |
Step 3: Check Gluster Peer Status
Here we will verify the gluster services are started. Note at this point you should show 0 peers.
1 2 |
gluster peer status |
Example Output
1 2 |
Number of Peers: 0 |
Step 4: Add GlusterFS Nodes to Secure Pool
Next we will use gluster peer probe
to add nodes to our pool. In this example I am performing all the action on glusterfs-01 and connecting nodes gluster02-gfs and gluster03-gfs to the secure pool.
1 2 |
gluster peer probe gluster02-gfs |
Example Output
1 2 |
peer probe: success. |
Add third node to secure pool.
1 2 |
gluster peer probe gluster03-gfs |
Example Output
1 2 |
peer probe: success. |
Continue adding all peers using gluster peer probe
command
Step 5: Verify All GlusterFS Peers are Connected
The gluster peer status
command displays the status of the gluster nodes.
1 2 |
gluster peer status |
1 2 3 4 5 6 7 8 9 10 |
Number of Peers: 2 Hostname: gluster02-gfs Uuid: 3241a3b3-059f-4ff7-8f95-b5e75b979590 State: Peer in Cluster (Connected) Hostname: gluster03-gfs Uuid: f617530e-ff49-4624-82c0-88c5213151df State: Peer in Cluster (Connected) |
The gluster peer status
command below shows the state of the GlusterFS nodes in a table.
1 2 |
gluster pool list |
1 2 3 4 5 |
UUID Hostname State 3241a3b3-059f-4ff7-8f95-b5e75b979590 gluster02-gfs Connected f617530e-ff49-4624-82c0-88c5213151df gluster03-gfs Connected 51ab939a-ecf0-4dc9-b6f2-31887811f7f7 localhost Connected |