[Gluster-users] Multiple Volumes over diffrent Interfaces
Gregor Burck
gregor at aeppelbroe.de
Tue Mar 6 10:32:35 UTC 2018
Hi,
I'm trying to create two gluster volumes over two nodes with two
seperate networks:
The names are in the hosts file of each node:
root at gluster01 :~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 gluster01.peiker-cee.de gluster01
10.0.2.54 gluster02g1.peiker-cee.de gluster02g1
10.0.7.54 gluster02g2.peiker-cee.de gluster02g2
10.0.2.53 gluster01g1.peiker-cee.de gluster01g1
10.0.7.53 gluster01g2.peiker-cee.de gluster01g2
Then I peer:
root at gluster01 :~# gluster peer probe gluster02g1
peer probe: success.
root at gluster01 :~# gluster peer probe gluster02g2
peer probe: success. Host gluster02g2 port 24007 already in peer list
root at gluster01 :~# gluster volume create g1 transport tcp
gluster01g1:/glusterstore/g1 gluster02g1:/glusterstore/g1
volume create: g1: success: please start the volume to access data
root at gluster01 :~# gluster volume start g1
volume start: g1: success
root at gluster01 :~# gluster volume create g2 transport tcp
gluster01g2:/glusterstore/g2 gluster02g2:/glusterstore/g2
volume create: g2: failed: Staging failed on gluster02g1. Error: Host
gluster01g2 is not in 'Peer in Cluster' state
Then I connect to the second node:
root at gluster02 :~# gluster peer status
Number of Peers: 1
Hostname: gluster01g1.peiker-cee.de
Uuid: 32090055-0183-4f2c-b742-9e120b72573a
State: Peer in Cluster (Connected)
root at gluster02 :~# gluster peer probe gluster01g2
peer probe: success. Host gluster01g2 port 24007 already in peer list
root at gluster02 :~# gluster peer status
Number of Peers: 1
Hostname: gluster01g1.peiker-cee.de
Uuid: 32090055-0183-4f2c-b742-9e120b72573a
State: Peer in Cluster (Connected)
Other names:
gluster01g2
After recreate the folder (they was already in a volume,...) I managed
to create and start the second volume.
So I wonder why I've to probe the peer from the second node and wasn't
able to do it all from the first node?
Bye
Gregor
More information about the Gluster-users
mailing list