[Gluster-users] GlusterFS Mounts at startup consuming needed local ports for host services
pkalever at redhat.com
Tue May 10 11:33:40 UTC 2016
1. I need to accept this, currently
/proc/sys/net/ipv4/ip_local_port_range was not taken care in
glusterfs, I shall soon patch it with the required changes which will
then start respecting 'ip_local_port_range'
2. Chen Chen observations were right! we have moved to bind insecure
around 3.7.2 period with which we try to fetch a port from 65535 -
down, because of which he observed mount is only using port 60000+,
but in your case you are in 3.6.0 hence client ports start from 1023
if I am not wrong!
3. For now a quick work around could be
3.1. Specify your ports in
'/proc/sys/net/ipv4/ip_local_reserved_ports', glusterfs ensure not to
bind on the ports mentioned in 'ip_local_reserved_ports' which you may
wish to use them for other services.
The below command helps in doing so:
# sysctl -w net.ipv4.ip_local_reserved_ports=1002
3.2. As you rightly said, start all non-gluster services then
at last start mounting glusterfs
On Sun, Apr 10, 2016 at 7:03 PM, Chen Chen <chenchen at smartquerier.com> wrote:
> Hi Ryan,
> In my case, glusterfs didn't use any port below 10000. The output is
> Maybe you could deploy a new test client with Gluster 3.6.9 and see if it
> (Resend into list.)
> Best wishes,
> On 4/10/2016 2:13 AM, Ryan.J.Wyler at wellsfargo.com wrote:
>> Can you check and see what lsof outputs for glusterfs?
>> # lsof -i | grep ^glusterfs
>> glusterfs 2893 root 9u IPv4 15373 0t0 TCP
>> client.domain.com:1023->server1.domain.com:24007 (ESTABLISHED)
>> see how my client uses local port 1023?
>> -----Original Message-----
>> From: gluster-users-bounces at gluster.org
>> [mailto:gluster-users-bounces at gluster.org] On Behalf Of Chen Chen
>> Sent: Saturday, April 09, 2016 9:20 AM
>> To: gluster-users at gluster.org
>> Subject: Re: [Gluster-users] GlusterFS Mounts at startup consuming needed
>> local ports for host services
>> My gluster mount is only using port 60000+. I was using 3.7.6 and now
>> using 3.7.9.
>> On 4/9/2016 11:00 PM, Ryan.J.Wyler at wellsfargo.com wrote:
>>> Is there any way to configure glusterfs to avoid using specific local
>>> ports when mounting filesystems?
>>> Ryan Wyler
>> Chen Chen
>> Shanghai SmartQuerier Biotechnology Co., Ltd.
>> Add: Room 410, 781 Cai Lun Road, China (Shanghai) Pilot Free Trade Zone
>> Shanghai 201203, P. R. China
>> Mob: +86 15221885893
>> Email: chenchen at smartquerier.com
>> Web: www.smartquerier.com
> Chen Chen
> Shanghai SmartQuerier Biotechnology Co., Ltd.
> Add: Room 410, 781 Cai Lun Road, China (Shanghai) Pilot Free Trade Zone
> Shanghai 201203, P. R. China
> Mob: +86 15221885893
> Email: chenchen at smartquerier.com
> Web: www.smartquerier.com
> Gluster-users mailing list
> Gluster-users at gluster.org
More information about the Gluster-users