Hi, how to change the host name of gluster servers? if I modify the hostname1 in /etc/lib/glusterd/peers/uuid, the change is not save... gluster pool list return ipserver and not new hostname... Thank you -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170920/c5b95a89/attachment.html>
Hi, I hope you have gluster volume running on your cluster and you just want to change host name of your nodes to some other host name. Ex: From hostname1 to hostname2 I think changing a host name of any node is very simple using linux command. I think changing host name should automatically detect by the peers in peer list of cluster. Only thing is what will happen to all those volume on which we have bricks with this host name? How that volume is going to recognize bricks when we change the host name. That's where we have introduced "reset-brick" command. https://gluster.readthedocs.io/en/latest/release-notes/3.9.0/ Please go through above link and understand the reset-brick command and usage and try it. If you have any doubt, please let us know before disturbing anything on your setup which can lead to volume unavailable. I hope you are using gluster version 3.9.0 and above. Ashish ----- Original Message ----- From: "Alexandre Blanca" <alexandre.blanca at inria.fr> To: gluster-users at gluster.org Sent: Wednesday, September 20, 2017 6:02:16 PM Subject: [Gluster-users] hostname Hi, how to change the host name of gluster servers? if I modify the hostname1 in /etc/lib/glusterd/peers/uuid, the change is not save... gluster pool list return ipserver and not new hostname... Thank you _______________________________________________ Gluster-users mailing list Gluster-users at gluster.org http://lists.gluster.org/mailman/listinfo/gluster-users -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170921/f7cf2f22/attachment.html>
On Wed, Sep 20, 2017 at 6:02 PM, Alexandre Blanca <alexandre.blanca at inria.fr> wrote:> Hi, > > how to change the host name of gluster servers? > if I modify the hostname1 in /etc/lib/glusterd/peers/uuid, the change is > not save... > > gluster pool list return ipserver and not new hostname... >If you have used the same hostname for peer probing the cluster then here it goes: 1. You'd need to bring down all the glusterd instances in the cluster. 2. Find out the hostname entries in /var/lib/glusterd/* and replace them with the new hostname. 3. Bring up glusterd instances one after another.> Thank you > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://lists.gluster.org/mailman/listinfo/gluster-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.gluster.org/pipermail/gluster-users/attachments/20170922/73afbc56/attachment.html>
Maybe Matching Threads
- op-version for reset-brick (Was: Re: [ovirt-users] Upgrading HC from 4.0 to 4.1)
- op-version for reset-brick (Was: Re: [ovirt-users] Upgrading HC from 4.0 to 4.1)
- SUMMARY: Samba 2.0 and passwords
- op-version for reset-brick (Was: Re: [ovirt-users] Upgrading HC from 4.0 to 4.1)
- NFSv4, homes, Kerberos...