If you want node01-ib to be in DNS (assuming it's not handled by some external 
DNS server), then it needs to be in /etc/hosts either by manually adding it or 
via the hoses table and running makehosts.

As for your second question, I'm no expert at regexp, but I believe you would 
have node01.ib. It would be pretty easy to test, though.

Assuming node01 is the provisioning name of the node, and node01-ib is the 
desired name if its IPoIB interface, you would define node01 as a node and 
setup nics.nichostnamesuffixes as "-ib" for that node or node group. If the 
IPoIB network should have a different domain name than the provisioning net, 
then you can define that in networks.domain for the ib network.

An example:

nodels n01 nics -b
n01: nics.nichostnamesuffixes: ib0!-ib (inherited from group compute)
n01: nics.nicips: ib0!172.25.0.11 (inherited from group compute)
n01: nics.nicnetworks: ib0!ibnet (inherited from group compute)
n01: nics.nictypes: ib0!Infiniband (inherited from group compute)

tabdump nics
#node,nicips,nichostnamesuffixes,nichostnameprefixes,nictypes,niccustomscripts,nicnetworks,nicaliases,nicextraparams,nicdevices,nicsadapter,comments,disable
"compute","|\D+(\d+).*$|ib0!172.25.0.(($1-0)+10)|","ib0!-ib",,"ib0!Infiniband",,"ib0!ibnet",,,,,,

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

-----Original Message-----
From: Lachlan Simpson <lachlan.simp...@unsw.edu.au> 
Sent: Monday, March 2, 2020 9:44 PM
To: xcat-user@lists.sourceforge.net
Subject: [External] Re: [xcat-user] Networking: groups and nodes; nic* 
attributes

Also, a follow up.

If I have machine node01

nicips.ib0=10.1.1.6
nichostnamesuffixes.ib0=-ib

Should create the /etc/hosts entry 

node01-ib 10.1.1.6


If I *also* have in the ib group (which node01 belongs to)

nicaliases.ib0=|(k\d+)|($1).ib|

does that create 

node01.ib OR node01-ib.ib?

Cheers
L.


On Tue, 2020-03-03 at 02:28 +0000, Lachlan Simpson wrote:
> I have two questions:
> 
> 1. If a node belongs to a group with nic* defined are those additions added 
> to the node's def?
> 
> for eg, if I have an existing node  *without* those nics defined, does 
> the installation/config process add those values to the node? (lsdef 
> before gives nothing, lsdef after has nic* entries)
> 
> 2. How does one remove errant nicalias entries (for example, any nic* 
> key/value in reality) from a node's definition? Given that chdef -m/-p 
> doesn't work ( 
> https://xcat-docs.readthedocs.io/en/stable/advanced/domain_name_resolu
> tion/domain_name_resolution.html#setting-individual-nic-attribute-valu
> es
> )
> 
> I have tried re-defining the values I wanted to change and just ended 
> up with two entries for nicaliases.ib0= in the node def?
> 
> cheers
> L.
-- 
   
Lachlan Simpson

Research Technology Services

UNSW Research Technology Services
Level 3, Chemical Sciences Building F10
UNSW SYDNEY NSW 2052 AUSTRALIA
E: lachlan.simp...@unsw.edu.au
W: https://research.unsw.edu.au

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


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

Reply via email to