I created aliased shortened hostnames for the nodes in the cluster. Some of 
them are created when I run makehosts (ces nodes), and some are not (dss nodes).

[root@fry-mgmt0 ~]# lsdef -v
lsdef - Version 2.14.5.lenovo2 (git commit 
06d7097f42eca03db70c9eb93b8abeaf8ca1c2be, built Tue Apr 16 20:08:56 UTC 2019)
[root@fry-mgmt0 ~]# tabdump hosts | egrep 'ces|dss'
#node,ip,hostnames,otherinterfaces,comments,disable
"ces","|\D+(\d+).*$|192.168.1.($1+30)|","|\D+(\d+).*$|ces($1)|","|\D+(\d+).*$|-ipmi:192.168.2.($1+30)|",,
"dssg-2-3","|\D+(\d+).*$|192.168.1.($1+50)|","|\D+(\d+).*$|dss($1)|","|\D+(\d+).*$|-ipmi:192.168.2.($1+50)|",,
[root@fry-mgmt0 ~]# nodels fry-dss01 hosts
fry-dss01: hosts.hostnames: dss01 ### Here's the alias
fry-dss01: hosts.ip: 192.168.1.51
fry-dss01: hosts.node: fry-dss01
fry-dss01: hosts.otherinterfaces: -ipmi:192.168.2.51
fry-dss01: hosts.comments:
fry-dss01: hosts.disable:
[root@fry-mgmt0 ~]# nodels fry-ces01 hosts
fry-ces01: hosts.hostnames: ces01 ### Here's the alias
fry-ces01: hosts.ip: 192.168.1.31
fry-ces01: hosts.node: fry-ces01
fry-ces01: hosts.otherinterfaces: -ipmi:192.168.2.31
fry-ces01: hosts.comments:
fry-ces01: hosts.disable:
[root@fry-mgmt0 ~]# makehosts -l -n
[root@fry-mgmt0 ~]# grep fry-ces01 /etc/hosts
192.168.1.31 fry-ces01.fry.cluster.local fry-ces01 ces01 ### This is what I am 
trying to do, and it works here
192.168.2.31 fry-ces01-ipmi.fry.cluster.local fry-ces01-ipmi
[root@fry-mgmt0 ~]# grep fry-dss01 /etc/hosts
192.168.1.51 fry-dss01.fry.cluster.local fry-dss01 ### Alias doesn't get 
created!
192.168.2.51 fry-dss01-ipmi.fry.cluster.local fry-dss01-ipmi

Regards,
Christian Caruthers
Lenovo Professional Services
Mobile: 757-289-9872

_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to