The only way I can think of setting the main name as your hostname is to remove the brick for that host, detach host, then reintroduce the host using the hostname vs ip and add-brick again using hostname.
Im not sure that will actually clear the peer or volume info, but it should...I think On 17 March 2017 at 00:09, Sergei Gerasenko <[email protected]> wrote: > Yeah, I wasn't going to edit the peer files. I did it on a test cluster. > > I did a reverse lookup from one of the hosts and it does now list the host > name under "Other names", but the primary name is still an IP. Any way to > make the hostname the primary name? > > On Tue, Mar 14, 2017 at 4:03 PM, Ian Neilsen <[email protected]> > wrote: > >> I've always done a reverse peer probe from another node in the pool. Make >> sure you're hosts file or DNS is working correctly and then peer probe the >> opposite node. >> >> you can actually have gluster recognise other names that each node is >> known as such as IP, fqdn, shortname. >> >> I wouldn't edit the peer file if I were you. You can play nasty tricks on >> gluster index by editing or adding in peer files while gluster is running. >> >> On Mar 15, 2017 6:55 AM, "Gandalf Corvotempesta" < >> [email protected]> wrote: >> >>> I can confirm this >>> Any solution? >>> >>> Il 14 mar 2017 8:11 PM, "Sergei Gerasenko" <[email protected]> ha >>> scritto: >>> >>>> Hi everybody, >>>> >>>> Easy question: the output of *gluster peer status* on some of the >>>> hosts in the cluster has the hostname for all but one member of the >>>> cluster, which is listed by its ip. Is there an easy way to fix it? I know >>>> the information is coming from the peer files and I could edit the peer >>>> files directly, but can this be done through cli tools? >>>> >>>> Thanks, >>>> Sergei >>>> >>>> _______________________________________________ >>>> Gluster-users mailing list >>>> [email protected] >>>> http://lists.gluster.org/mailman/listinfo/gluster-users >>>> >>> >>> _______________________________________________ >>> Gluster-users mailing list >>> [email protected] >>> http://lists.gluster.org/mailman/listinfo/gluster-users >>> >> > -- Ian Neilsen Mobile: 0424 379 762 Linkedin: http://au.linkedin.com/in/ianneilsen Twitter : ineilsen
_______________________________________________ Gluster-users mailing list [email protected] http://lists.gluster.org/mailman/listinfo/gluster-users
