Changing the port of the bricks?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



?Looks like having the port be configurable through the gluster command would be a very good feature enhancement <hint, hint> :-)

James Burnash, Unix Engineering


-----Original Message-----
From: gluster-users-bounces at gluster.org [mailto:gluster-users-bounces at gluster.org] On Behalf Of Amar Tumballi
Sent: Thursday, February 24, 2011 11:16 PM
To: hartmut at hartmut-woehrle.ch
Cc: gluster-users at gluster.org
Subject: Re: Changing the port of the bricks?

Hi Hartmut,

Answers Inline.


> I have a problem with the used port.
>

Currently, there is no option to change the port through options, hence you need to change the code.


> I have to say usually it works fine, but now our developers told me, 
> that glusterfs is blocking a port, that our software is using (tcp 
> 24000-240xx).
> So now I'm looking for a solution, but I only found (documentation, 
> mailinglist, google...) the description to change the inter 
> communication ports (server, client), but not for the bricks. When I 
> chaneg every listen and remote port to - lets say - 35000, I see the 
> connections of the peers talking at 3500x. But when I mount the 
> volume, it still uses 2400x.
> I found the following in the log files, so it seems to be in this:
>
> [2011-02-24 16:15:41.556636] I 
> [glusterd-pmap.c:237:pmap_registry_bind]
> pmap: adding brick
> /scratch on port 24009
>
> This is mostly because you had started volume before changing all the 
> port
information, and 'glusterd' will remember this. Hence every time you restart the volume, the same port gets assigned to it.  One of the option is to delete the volume and create it with the same command (which was used earlier).



> When looking for pmap_registry_bind I found the glusterd-pmap.c, with 
> a call to
> line 81:   pmap->base_port = GF_DEFAULT_BASE_PORT + 2;
>
> So is there a possibility to redefine this GF_DEFAULT_BASE_PORT?
>
>
Yes, you can change this in code, and re-compile to get it working.

libglusterfs/src/globals.h:23:#define GF_DEFAULT_BASE_PORT 24007



Regards,
Amar


DISCLAIMER: 
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. 
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications. http://www.knight.com


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux