Creating the trusted pool

Finally, we need to create a trusted pool. A trusted pool is a list of nodes that will be part of the cluster, where each Gluster node trusts the other, thus allowing for the creation of volumes.

To create the trusted pool, run the following code from the first node:

gluster peer probe gfs2
gluster peer probe gfs3

You can verify that the nodes show up as follows:

The command can be run from any node, and the hostnames or IPs need to be modified to include the others. In this case, I have added the IP addresses of each of the nodes onto the /etc/hosts file to allow for easy configuration. Ideally, the hostnames should be registered with the DNS server for the name resolution within the network.

After the installation, the gluster nodes should allow volumes to be created.