Hi Ulf,
xCAT can configure the node/host name on a secondary/public interface on a
compute node. But we support scenarios a little different with your
example, the node name in xcat DB will be the hostname in compute node, it
is for provision network, we can give alias for this network.We can
configure secondary/public interface on a compute node, we can also give
alias for it. I gave the following typical example, you consider how to use
in your case. The related doc link is
http://xcat-docs.readthedocs.io/en/latest/guides/admin-guides/manage_clusters/ppc64le/diskful/customize_image/network/cfg_network_adapter.html
The example:
node name in xCAT DB is node1;
Management/Deploy interface eth0, it can have alias node1-private, name
in /etc/hosts and DNS is node1 and node1-private, its ip is 10.5.106.9, its
network is 10_0_0_0-255_0_0_0
Secondary/Public 10Gb interface eth1, it can have alias node1-public, name
in /etc/hosts and DNS node1-eth1 and node1-public, its ip is 30.5.106.9,
its network is 30_0_0_0-255_0_0_0
How to configure in xCAT DB:
1. configure network table:
]# tabdump networks
#netname,net,mask,mgtifname,gateway,dhcpserver,tftpserver,nameservers,ntpservers,logservers,dynamicrange,staticrange,staticrangeincrement,nodehostname,ddnsdomain,vlanid,domain,mtu,comments,disable
"10_0_0_0-255_0_0_0","10.0.0.0","255.0.0.0",,,,,,,,,,,,,,,,,
"30_0_0_0-255_0_0_0","30.0.0.0","255.0.0.0",,,,,,,,,,,,,,,,,
2. configure nics table:
]# lsdef node1 |sed 's/ //g'|grep ^nic
nicaliases.eth1=node1-public
nichostnamesuffixes.eth1=-eth1
nicips.eth1=30.5.106.9
nicnetworks.eth1=30_0_0_0-255_0_0_0
nictypes.eth1=ethernet
3. configure hosts table:
]# tabdump hosts
#node,ip,hostnames,otherinterfaces,comments,disable
"node1","10.5.106.9","node1-private",,,
4. create /etc/hosts
]# makehosts node1
]# cat /etc/hosts|grep 106.9
10.5.106.9 node1 node1.cluster.com node1-private
30.5.106.9 node1-eth1 node1-eth1.cluster.com node1-public
5. enable DNS
]#makedns node1
]# nslookup node1-private
Server: 10.5.106.2
Address: 10.5.106.2#53
node1-private.cluster.com canonical name = node1.cluster.com.
Name: node1.cluster.com
Address: 10.5.106.9
... ...
6. configure NICs in node1
if the node is provisioned, use updatenode;
]#updatenode node1 "confignetwork -s"
If the node is not provisioned, use postscript or postbootscript to call
confignetwork script;
Best Regards
--------------------------------------------------
Yuan Bai (白媛)
CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: by...@cn.ibm.com
Address: IBM ZGC Campus. Ring Building 28,
ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian
District,
Beijing P.R.China 100193
IBM环宇大厦
北京市海淀区东北旺西路8号,中关村软件园28号楼
邮编:100193
From: Ulf Johansson <ulf.johans...@govirtual.se>
To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>
Date: 08/08/2017 08:50 PM
Subject: [xcat-user] Node name on secondary interface
Hi.
One question regarding network interfaces and host/node names.
Is it possible to have xCat configure the node/host name on a
secondary/public interface instead of the management interface on a compute
node?
For example
Management/Deploy interface, name in /etc/hosts and DNS node1-adm
Secondary/Public 10Gb interface, name in /etc/hosts and DNS node1
Regards,
-Ulf
--
Ulf Johansson
Go Virtual Nordic AB
Datavägen 21A
SE-436 32 Askim
Sweden
Phone: +46-31-748 88 79
Fax: +46-31-286205
E-mail: ulf.johans...@govirtual.se
Web: www.govirtual.se
Think Visual - Go Virtual
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
xCAT-user mailing list
xCAT-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xcat-user