[Gluster-users] Can you re-ip servers in a gluster brick without breaking it?

Vijay Bellur vbellur at redhat.com
Tue Sep 17 07:11:10 UTC 2013


On 09/17/2013 02:09 AM, Ray Powell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Howdy,
>     We need to re-ip the servers that make up a gluster volume.
> Unfortunately when they were setup I was stupid and did not use
> hostnames and instead specified each brick in the volume by ip.  Ex
> 10.103.114.4:/exports/DATA 10.103.114.5:/exports/DATA ...
> 10.103.114.X:/exports/DATA
>
>    Can I just stop gluster services on every server, search/replace the
> contents of /var/lib/glusterd/vols and /var/lib/glusterd/peers, then
> restart everything?  My fear is the hostname (IP) is important to
> something in DHT or the metadata written to the bricks xattrs.
>

The metadata maintained in bricks is not a function of the hostname or 
IP. The procedure that you refer to should work. Make sure that you have 
a backup of /var/lib/glusterd on each node before you attempt this :-).

-Vijay




More information about the Gluster-users mailing list