Hi Yuan,
thanks for this. I changed the entry in the litefile and now I get the
behaviour I wanted.
I was running in circles because I was copying much of the configuration from
our previous cluster deployment (using xcat 2.7), and this behaviour seems to
have changed somewhat – or I’ve missed another trick somewhere.
In any case, setting resolv.conf to ro, rerunning liteimg and rebooting fixed
it.
On to the next problem! ;-)
Jeff
From: Yuan Y Bai [mailto:by...@cn.ibm.com]
Sent: 04 July 2018 05:45
To: xcat-user@lists.sourceforge.net
Cc: xcat-user@lists.sourceforge.net
Subject: Re: [xcat-user] resolv.conf multiple search domains
Hi Jeff,
I think "/etc/resolv.conf" in your node is over-written by dhclient.
You can try the following to get correct result.
If "/etc/resolv.conf" in litefile table is "ro", you can customize the
rootimg/etc/resolv.conf, after the node is booted, you can get the customized
/etc/resolv.conf, it is "ro".
If "/etc/resolv.conf" in litefile table is "tmpfs" or "rw",
"/etc/resolv.conf" will be generated by dhclient. In this situation,
nameservers and domain from "networks" table are more priority than that in
"site" table. So you can configure correct nameservers and domain for specific
network entry in networks table. If nameservers and domain are empty in
networks table, you can correct nameservers and domain in site table.
Best Regards
--------------------------------------------------
Yuan Bai (白媛)
CSTL HPC System Management Development
Tel:86-10-82451401
E-mail: by...@cn.ibm.com<mailto: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
----- Original message -----
From: Jeff Berry
<jeff.be...@mrc-cbu.cam.ac.uk<mailto:jeff.be...@mrc-cbu.cam.ac.uk>>
To: xCAT Users Mailing list
<xcat-user@lists.sourceforge.net<mailto:xcat-user@lists.sourceforge.net>>
Cc:
Subject: [xcat-user] resolv.conf multiple search domains
Date: Fri, Jun 29, 2018 9:54 PM
Good afternoon,
configuring the cluster is proceeding apace, and I find myself unclear on how
best to deal with some dns issues.
xcat 2.14.1, Master and statelite nodes all running CentOS7.5
When I boot, a resolv.conf file is being generated and installed, and although
it has the right nameservers, it does not have the search domains we want.
After liteimg, the .defaults/etc/resolv.conf file contains just the dummy line.
And on boot, I end up with a resolv.conf that looks like:
search <domain1> <domain1>
nameserver <ns1>
nameserver <ns2>
nameserver <ns3>
nameserver <ns4>
That is, the same domain is duplicated on the search line. The nameservers
themselves are correct, though.
I tried editing the .defaults/etc/resolv.conf file, but it had no effect.
Obviously I am unclear on how that resolv.conf file is being generated, and any
pointers that anyone can provide will be gratefully followed up.
Jeff Berry, MRC CBU
------------------------------------------------------------------------------
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<mailto: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