[Gluster-devel] gluster 3.1, glusterfsd does not consider deviant hostnames

Amar Tumballi amar at gluster.com
Fri Mar 4 08:37:36 UTC 2011

> I adjusted this part using the bricks hostname instead localhost, as you
> can see here:
>        snprintf (cmd_str, 8192,
>                  "%s/sbin/glusterfsd --xlator-option
> %s-server.listen-port=%d "
>                  "-s %s --volfile-id %s -p %s --brick-name %s "
>                  "--brick-port %d -l %s", GFS_PREFIX, volinfo->volname,
>                  port, brickinfo->hostname, volfile, pidfile,
> brickinfo->path, port,
>                  brickinfo->logfile);
This change is fine.

> I think the solution is okay, but better would be if glusterd considers the
> optionally --remote-host= parameter instead
> the bricks host. Maybe anybody can tell me how I have to adjust it.
To start 'glusterfsd' bind()'d to particular IP, you need to edit
glusterd-volgen.c and add an option to 'protocol/server' volume saying
'option bind-address <IP>'

That should make glusterfsd listen on particular IP instead of binding to

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20110304/3cf8b005/attachment-0003.html>

More information about the Gluster-devel mailing list