[Gluster-users] change IP address of working gluster cluster

Joe Julian joe at julianfamily.org
Sat Jul 12 09:03:57 UTC 2014


As long as you use hostnames for your bricks, just change the hostname to resolve to the address you want to use. That's why we always recommend using hostnames.

If you use IPs, then you're stuck and have to hack files to change bricks.

On July 12, 2014 1:03:08 AM PDT, Attila Heidrich <attila.heidrich at gmail.com> wrote:
>Thanks a lot answering!
>
>Assymetric route is not an option - I guess; there are just two bricks
>at
>the moment, I have changed hosts file for both.
>
>Will look after the config files, thanks a lot again! Later on I will
>use
>IP addresses for being sure :)
>
>
>Regards,
>Attila
>
>
>2014-07-10 11:28 GMT+02:00 Jonathan Barber <jonathan.barber at gmail.com>:
>
>> On 10 July 2014 09:51, Anders Blomdell
><anders.blomdell at control.lth.se>
>> wrote:
>>
>>> On 2014-07-10 10:11, Attila Heidrich wrote:
>>> > Hi!
>>> >
>>> > I have seen, that someone else is having tha same problem, but he
>>> received
>>> > no answer at all.
>>> > http://gluster.org/pipermail/gluster-users/2014-March/039421.html
>>> >
>>> > We have got the same problem. There are two NICs in all boxes, 1G
>and
>>> 10G,
>>> > and we started just the 1G, but now would like to use the other.
>>> >
>>> > IP addresses/networks are different (of course) and there are
>running
>>> > services in the cluster.
>>> >
>>> > Is there a way to work out this easily?
>>> >
>>> > I'm pretty sure I can add new nodes on the new network and later
>remove
>>> the
>>> > old ones, but it would be nicer to have some way for changing
>connect
>>> data
>>> > of the same nodes.
>>> If you want clients to use the 1G links, and servers to talk via the
>10G
>>> links,
>>> 'ip route add <dest> src <1G address> dev <10G interface>' on all
>server
>>> might help.
>>>
>>
>> Will that not cause asymmetric flows? The traffic will leave via the
>10GbE
>> interface, but the destination IP is still the 1GbE interface, so it
>will
>> arrive at the 1GbE interface on the other host.
>>
>> You can change the /etc/hosts entries, replacing the entries for the
>1GbE
>> IP with the 10GbE IP and then restarting the gluster processes.
>>
>> You could mess about with iptables and NAT, but I think at that point
>you
>> might as well add/remove the hosts.
>>
>> I guess you can also update the configuration files under
>> /var/lib/glusterfs and rename the brick files... You might want to
>test
>> that first though :)
>>
>> Cheers
>>
>>
>>> /Anders
>>>
>>> --
>>> Anders Blomdell                  Email:
>anders.blomdell at control.lth.se
>>> Department of Automatic Control
>>> Lund University                  Phone:    +46 46 222 4625
>>> P.O. Box 118                     Fax:      +46 46 138118
>>> SE-221 00 Lund, Sweden
>>>
>>> _______________________________________________
>>> Gluster-users mailing list
>>> Gluster-users at gluster.org
>>> http://supercolony.gluster.org/mailman/listinfo/gluster-users
>>>
>>
>>
>>
>> --
>> Jonathan Barber <jonathan.barber at gmail.com>
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Gluster-users mailing list
>Gluster-users at gluster.org
>http://supercolony.gluster.org/mailman/listinfo/gluster-users

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20140712/20cf5dda/attachment.html>


More information about the Gluster-users mailing list