On Mon, Nov 18, 2013 at 3:03 PM, Marco Zanger <[email protected]> wrote:
> Hello everyone,
>
> I'm trying to enable the firewall and open the ports needed for the volumes 
> that I'll be creating.
>
> We've an script that configures certain amount of volumes across some 
> servers, starting them and mounting them. (Gluster v3.3)
>
> Gluster says that the ports used by the volume bricks are from 24009 up to 
> the amount of bricks... but that doesn't seem to be my Gluster case.
>
> When I create my volumes the ports used are far away from that:
>
> Gluster process                                         Port
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/upload_path                                         24189
> Brick <SOME-IP>.55:/upload_path                                         24123
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/custom_music                                24190
> Brick <SOME-IP>.55:/custom_music                                24124
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/greetings                                           24191
> Brick <SOME-IP>.55:/greetings                                           24125
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/ivr_greetings                                       24192
> Brick <SOME-IP>.55:/ivr_greetings                                       24126
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/license_path                                        24193
> Brick <SOME-IP>.55:/license_path                                        24127
> ------------------------------------------------------------------------------
> Brick <SOME-IP>.54:/default_storage                             24194
> Brick <SOME-IP>.55:/default_storage                             24128
>
> And If I clear everything and start from scratch again I get other ports for 
> the same volume bricks. So there is no way for me in advance to know which 
> ports will be used.

Apparently not. For example, Puppet-Gluster inspects the ports in use
and sets them accordingly. Using those facilities is one possibility.
https://github.com/purpleidea/puppet-gluster

Cheers,
James


>
> Is there any way I can force gluster to use ports from 24009 all the time and 
> use the rest sequentially?
>
> Regards,
> Marco
> _______________________________________________
> Gluster-users mailing list
> [email protected]
> http://supercolony.gluster.org/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
[email protected]
http://supercolony.gluster.org/mailman/listinfo/gluster-users

Reply via email to