sky
2020-Dec-07 02:07 UTC
[Gluster-users] Cannot connect to the cluster after customizing the port
Hi: 1. The ports of both nodes are changed to 24017 2. After installation, change the port and start directly (non-restart) 3. I tried, but the nodes in the pool cannot connect after restarting. The log shows an attempt to connect to the default port Steps(both node1 and node2) # yum install glusterfs glusterfs-server glusterfs-fuse # vim /etc/glusterfs/glusterd.vol .... option transport.socket.listen-port 24017 .... # systemctl start glusterd # gluster peer probe node2 Probe returned with Transport endpoint is not connected After changing the port back to 24007 and restarting, the connection is normal ? 2020-12-06 19:27:01?"Strahil Nikolov" <hunter86_bg at yahoo.com> ???>Did you change the port on both nodes ? >Did you restart glusterd on both nodes (the one you do peer probe and the other one that is being probed) ? > >Have you tried to first peer probe and then change the port on all nodes in the pool ? > > >Best Regards, >Strahil Nikolov > > > > > >? ?????, 4 ???????? 2020 ?., 12:18:42 ???????+2, sky <x_hsky at 163.com> ??????: > > > > > >linux version: cenots 7.5 >gluster verison: 7.5.1 >/etc/glusterfs/glusterd.vol: >volume management > type mgmt/glusterd > option working-directory /var/lib/glusterd > option transport-type socket,rdma > option transport.socket.keepalive-time 10 > option transport.socket.keepalive-interval 2 > option transport.socket.read-fail-log off > option transport.socket.listen-port 24017 > option transport.rdma.listen-port 24008 > option ping-timeout 0 > option event-threads 1 ># option lock-timer 180 ># option transport.address-family inet6 > option base-port 49252 > option max-port 60999 >end-volume > >I started normally after changing the ports on both nodes(port from 24007 to 24017), but I cannot add nodes through the ?gluster peer probe node2? command, >It always prompts me: > Probe returned with Transport endpoint is not connected > > > > > > > > > > > > > > > >________ > > > >Community Meeting Calendar: > >Schedule - >Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC >Bridge: https://meet.google.com/cpu-eiue-hvk >Gluster-users mailing list >Gluster-users at gluster.org >https://lists.gluster.org/mailman/listinfo/gluster-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20201207/8640e88b/attachment.html>
Strahil Nikolov
2020-Dec-07 21:01 UTC
[Gluster-users] Cannot connect to the cluster after customizing the port
Are you sure that the firewall is open. Usually , there could be a firewall inbetween the nodes. Also, you can run a tcpdump on nodeA and issue a peer probe from NodeB and see if there is anything hitting it. What about enabling trace logs and checking for any clues. You can find details about the log level at : https://access.redhat.com/documentation/en-us/red_hat_gluster_storage/3/html/administration_guide/configuring_the_log_level Best Regards,Strahil Nikolov ? 10:07 +0800 ?? 07.12.2020 (??), sky ??????:> Hi: > 1. The ports of both nodes are changed to 24017 > 2. After installation, change the port and start directly (non- > restart) > 3. I tried, but the nodes in the pool cannot connect after > restarting. The log shows an attempt to connect to the default port > > Steps(both node1 and node2) > # yum install glusterfs glusterfs-server glusterfs-fuse > # vim /etc/glusterfs/glusterd.vol > .... > option transport.socket.listen-port 24017 > .... > # systemctl start glusterd > > > # gluster peer probe node2 > Probe returned with Transport endpoint is not connected > > > After changing the port back to 24007 and restarting, the connection > is normal > > > > > > > > > ? 2020-12-06 19:27:01?"Strahil Nikolov" <hunter86_bg at yahoo.com> > ???>Did you change the port on both nodes ?>Did you restart glusterd > on both nodes (the one you do peer probe and the other one that is > being probed) ?>>Have you tried to first peer probe and then change > the port on all nodes in the pool ?>>>Best Regards,>Strahil > Nikolov>>>>>>? ?????, 4 ???????? 2020 ?., 12:18:42 ???????+2, sky > <x_hsky at 163.com> ??????: >>>>>>linux version: cenots 7.5 >gluster > verison: 7.5.1>/etc/glusterfs/glusterd.vol: >volume management> > type mgmt/glusterd> option working-directory /var/lib/glusterd> > option transport-type socket,rdma> option > transport.socket.keepalive-time 10> option > transport.socket.keepalive-interval 2> option > transport.socket.read-fail-log off> option > transport.socket.listen-port 24017> option transport.rdma.listen- > port 24008> option ping-timeout 0> option event-threads 1># > option lock-timer 180># option transport.address-family inet6> > option base-port 49252> option max-port 60999>end-volume>>I > started normally after changing the ports on both nodes(port from > 24007 to 24017), but I cannot add nodes through the ?gluster peer > probe node2? command,>It always prompts me: > Probe returned with > Transport endpoint is not > connected>>>>>>>>>>>> >>> >________>>>>Community Meeting > Calendar:>>Schedule ->Every 2nd and 4th Tuesday at 14:30 IST / 09:00 > UTC>Bridge: https://meet.google.com/cpu-eiue-hvk>Gluster-users > mailing list>Gluster-users at gluster.org>https://lists.gluster.org/mai > lman/listinfo/gluster-users > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20201207/f83a6d3d/attachment.html>