Re: [xcat-user] resolv.conf multiple search domains
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 mailto:jeff.be...@mrc-cbu.cam.ac.uk>> To: xCAT Users Mailing list 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 nameserver nameserver nameserver nameserver 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
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 DevelopmentTel:86-10-82451401E-mail: by...@cn.ibm.comAddress: IBM ZGC Campus. Ring Building 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,Beijing P.R.China 100193IBM环宇大厦北京市海淀区东北旺西路8号,中关村软件园28号楼邮编:100193 - Original message -From: Jeff Berry To: xCAT Users Mailing list Cc:Subject: [xcat-user] resolv.conf multiple search domainsDate: 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.5When 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 nameserver nameserver nameserver nameserver 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 mostengaging tech sites, Slashdot.org! http://sdm.link/slashdot___xCAT-user mailing listxCAT-user@lists.sourceforge.nethttps://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
Re: [xcat-user] resolv.conf multiple search domains
You can configure litetree table, here is example: [root@bybc0602 ~]# tabdump litetree#priority,image,directory,mntopts,comments,disable"1","rhels7.3-custom-statelite","bybc0602:/statelite/install/",,, Best Regards--Yuan Bai (白媛)CSTL HPC System Management DevelopmentTel:86-10-82451401E-mail: by...@cn.ibm.comAddress: IBM ZGC Campus. Ring Building 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,Beijing P.R.China 100193IBM环宇大厦北京市海淀区东北旺西路8号,中关村软件园28号楼邮编:100193 - Original message -From: Jeff Berry To: xCAT Users Mailing list Cc:Subject: Re: [xcat-user] resolv.conf multiple search domainsDate: Mon, Jul 2, 2018 5:11 PM Hi Yuan, that’s what I thought should be happening – but it isn’t working properly. When I log into the node and compare /etc/resolv.conf and /.default/etc/resolv.conf they are not the same. I wondering if there’s a configuration setting that I’ve got wrong. Best, Jeff From: Yuan Y Bai [mailto:by...@cn.ibm.com]Sent: 02 July 2018 03:40To: xcat-user@lists.sourceforge.netCc: xcat-user@lists.sourceforge.netSubject: Re: [xcat-user] resolv.conf multiple search domains Hi Jeff, You can also customize /etc/resolv.conf. When a node boots up in statelite mode, it will by default copy all of its tmpfs files from the .default directory of the root image, for example /install/netboot/rhels7.3/x86_64/compute/rootimg/.default, so there is not required to set up a litetree table. If you decide that you want some of the files pulled from different locations that are different per node, you can use this table. The litetree table controls where the initial content of the files in the litefile table come from, and the long term content of the ro files. Best Regards--Yuan Bai (白媛)CSTL HPC System Management DevelopmentTel:86-10-82451401E-mail: by...@cn.ibm.comAddress: IBM ZGC Campus. Ring Building 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,Beijing P.R.China 100193IBM环宇大厦北京市海淀区东北旺西路8号,中关村软件园28号楼邮编:100193 - Original message -From: Jeff Berry <jeff.be...@mrc-cbu.cam.ac.uk>To: xCAT Users Mailing list <xcat-user@lists.sourceforge.net>Cc:Subject: [xcat-user] resolv.conf multiple search domainsDate: 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.5When 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 nameserver nameserver nameserver nameserver 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 mostengaging tech sites, Slashdot.org! http://sdm.link/slashdot___xCAT-user mailing listxCAT-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/xcat-user --Check out the vibrant tech community on one of the world's mostengaging tech sites, Slashdot.org! http://sdm.link/slashdot ___xCAT-user mailing listxCAT-user@lists.sourceforge.nethttps://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
Re: [xcat-user] resolv.conf multiple search domains
Hi Yuan, that’s what I thought should be happening – but it isn’t working properly. When I log into the node and compare /etc/resolv.conf and /.default/etc/resolv.conf they are not the same. I wondering if there’s a configuration setting that I’ve got wrong. Best, Jeff From: Yuan Y Bai [mailto:by...@cn.ibm.com] Sent: 02 July 2018 03:40 To: xcat-user@lists.sourceforge.net Cc: xcat-user@lists.sourceforge.net Subject: Re: [xcat-user] resolv.conf multiple search domains Hi Jeff, You can also customize /etc/resolv.conf. When a node boots up in statelite mode, it will by default copy all of its tmpfs files from the .default directory of the root image, for example /install/netboot/rhels7.3/x86_64/compute/rootimg/.default, so there is not required to set up a litetree table. If you decide that you want some of the files pulled from different locations that are different per node, you can use this table. The litetree table controls where the initial content of the files in the litefile table come from, and the long term content of the ro files. 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 mailto:jeff.be...@mrc-cbu.cam.ac.uk>> To: xCAT Users Mailing list 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 nameserver nameserver nameserver nameserver 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
Re: [xcat-user] resolv.conf multiple search domains
Hi Jeff, You can also customize /etc/resolv.conf. When a node boots up in statelite mode, it will by default copy all of its tmpfs files from the .default directory of the root image, for example /install/netboot/rhels7.3/x86_64/compute/rootimg/.default, so there is not required to set up a litetree table. If you decide that you want some of the files pulled from different locations that are different per node, you can use this table. The litetree table controls where the initial content of the files in the litefile table come from, and the long term content of the ro files. Best Regards--Yuan Bai (白媛)CSTL HPC System Management DevelopmentTel:86-10-82451401E-mail: by...@cn.ibm.comAddress: IBM ZGC Campus. Ring Building 28,ZhongGuanCun Software Park,No.8 Dong Bei Wang West Road, Haidian District,Beijing P.R.China 100193IBM环宇大厦北京市海淀区东北旺西路8号,中关村软件园28号楼邮编:100193 - Original message -From: Jeff Berry To: xCAT Users Mailing list Cc:Subject: [xcat-user] resolv.conf multiple search domainsDate: 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.5When 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 nameserver nameserver nameserver nameserver 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 mostengaging tech sites, Slashdot.org! http://sdm.link/slashdot___xCAT-user mailing listxCAT-user@lists.sourceforge.nethttps://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
Re: [xcat-user] resolv.conf multiple search domains
xCAT build the /etc/resolv.conf based on domain name and nameserver from site table. if there is no nameserver, it will pick up xcatmaster. Thanks, Casandra ... Casandra Hong Qiu Phone: (845) 433-9291, t/l 293-9291 Office: Building 8, 3-B-04 cxh...@us.ibm.com From: Jeff Berry To: xCAT Users Mailing list Date: 06/29/2018 09:54 AM Subject:[xcat-user] resolv.conf multiple search domains 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 nameserver nameserver nameserver nameserver 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 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
[xcat-user] resolv.conf multiple search domains
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 nameserver nameserver nameserver nameserver 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 https://lists.sourceforge.net/lists/listinfo/xcat-user