Before configuring a glusterfs volume, you need to create an available storage pool consisting of network servers that contain the volume. A storage pool is a trusted network storage server. When you start the first server, the storage pool consists of a group of servers. To add an additional storage server to the storage pool, you can use the probe command in a trusted storage server.
Note: The glusterfs service must run on all storage servers to be added to the storage pool. For more information, see start the glusterfs service.
Create a trusted storage pool
1. Use probe to add servers to the storage pool
To add a server to the storage pool, run the following command:
$ GlusterPeer probe Server
For example, to create a storage pool composed of four servers, add three servers from server1 to the storage pool:
$ GlusterPeer probe server2probe successful$ GlusterPeer probe server3probe successful$ GlusterPeer probe server4probe successful
Note: Do not use probe to add yourself to the storage pool on this server.
2. Run the following command to verify the adding status from server1:
$ GlusterPeer statusnumber of peers:3Hostname:192.168.1.92UUID: 5e987133-16dd-43c2-835b-08b7d55e94e5state: PeerInCluster (connected) hostname:192.168.1.93UUID: 1e0ca3aa-9ef7-4f66-8f15-Cbc348f29ff7state: pfde43e-2008-03-4e33-4f77-Ed3984da21aestate: PeerInCluster (connected)