Hi Russell,
I just checked the postscript hardeths, it seems it only changes the eth
interface config from dhcp to static, while not changes /etc/resolv.conf,
so I agree with Christopher, assuming your problem is just dhcp, not
related to hardeths postscript(if possible, you could consider to remove
hardeths postscript for your diskful nodes, and try the install again).
I do not have a diskful SLES handy, but only diskless SLES11 SP1 one, I
think for dhcp, it might be the same logic. but not sure what SLES version
are you using? In my SLES11 SP1 diskless cluster, the /etc/resolv.conf can
be populated correctly, here is the details, FYI..
dx360m3n05:~ # cat /etc/resolv.conf
# Generated by dhcpcd for interface eth6
search ppd.pok.ibm.com
nameserver 9.114.34.227
dx360m3n05:~ # cat /etc/*release
SUSE Linux Enterprise Server 11 (x86_64)
VERSION = 11
PATCHLEVEL = 1
dx360m3n05:~ #
To debug your problem, it's better to check:
1. on the mn, /etc/dhcpd.conf, make sure it contains the similar lines
below in the shared-network section for the eth you are using:
option domain-name "ppd.pok.ibm.com";
option domain-name-servers 9.114.34.227;
2. after the cn is installed and booted, the dhcpcd will get the
domain-name and domain-name-servers from dhcpsd, and populated
/etc/resolv.conf.
If the dhpcd.conf on your mn is correct, then maybe this problem is
related to the SLES version you are using?
Best Regards,
-----------------------------
Sun Jing(孙靖)
IBM China Software Development Laboratory
Tel: (86-10) 82453625 E-mail: [email protected]
Address: Building 28, ZhongGuanCun Software Park,
No.8, Dong Bei Wang West Road, Haidian District Beijing 100193,
PRC
北京市海淀区东北旺西路8号中关村软件园28号楼
邮编: 100193
Russell Jones <[email protected]>
2012-01-30 03:00
Please respond to
xCAT Users Mailing list <[email protected]>
To
[email protected]
cc
Subject
Re: [xcat-user] Diskfull nodes and resolv.conf
Some additional information, this looks like it may be limited to just
SLES in this case. I deployed a CentOS 5.6 node with the hardeths
postscript and /etc/resolv.conf was populated properly. No other changes
were made to the node outside of changing the OS to deploy.
I noticed that "/opt/xcat/share/xcat/install/scripts" has a few scripts
that set resolv.conf. For example:
xcat-suse:/opt/xcat/share/xcat/install/scripts # grep -i resolv *
post.debian:echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf
post.debian:done >>/etc/resolv.conf
post.esx:echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf
post.esx:done >>/etc/resolv.conf
post.esx:cat /etc/resolv.conf
post.rh.iscsi:echo "search #TABLE:site:key=domain:value#"
>/etc/resolv.conf
post.rh.iscsi:done >>/etc/resolv.conf
post.ubuntu:echo "search #TABLE:site:key=domain:value#" >/etc/resolv.conf
post.ubuntu:done >>/etc/resolv.conf
Given that neither centos nor sles seem to have a default postscript that
set this (aside from the rh.isci one?), I am unsure what mechanism xCAT is
relying on to define the nameserver configuration for diskfull nodes. If
you could shine some light on where this can be found, it may help me
better track down why CentOS nodes are working but SLES nodes are not.
Thanks again!
On 1/29/2012 10:24 AM, Russell Jones wrote:
Thanks Lisa,
I have checked my tables again against option #1 in that page you provided
and everything seems correct. See below for my site table attributes.
Here's a bit more info on what's going on:
Both diskless and diskfull nodes are booting and acquiring their
/etc/resolv.conf without an issue as long as they are using DHCP.
"makehosts", "makedns", and "makedhcp" all work and populate the various
files correctly with no errors. It's when I add the "hardeths" postscript
in that diskfull nodes only lose their DNS configuration. IP and subnet
gets set correctly for the nodes, it's just /etc/resolv.conf that is
empty.
The following is the /etc/resolv.conf of a diskless node after it was
booted with the hardeths postscript. As you can see it appears it still
keeps the DNS config from when DHCP ran on it prior to the interface being
turned into a static one:
c1n1:~ # cat /etc/resolv.conf
# Generated by dhcpcd for interface eth0
search site.local
nameserver 192.168.1.1
Here is his xCAT configuration after I have told it to install:
xcat-suse:/var/log # nodeset c1n1 install
c1n1: install sles11.1-x86_64-compute
c1n1: install sles11.1-x86_64-compute
xcat-suse:/var/log # lsdef c1n1
Object name: c1n1
arch=x86_64
currchain=boot
currstate=install sles11.1-x86_64-compute
groups=all
initrd=xcat/sles11.1/x86_64/initrd
ip=192.168.1.200
kcmdline=autoyast=http://service01/install/autoinst/c1n1 install=
http://service01/install/sles11.1/x86_64/1
kernel=xcat/sles11.1/x86_64/linux
mac=00:50:56:11:44:33
netboot=pxe
nfsserver=service01
os=sles11.1
postbootscripts=otherpkgs
postscripts=syslog,remoteshell,syncfiles,hardeths
profile=compute
provmethod=install
servicenode=service01
status=booted
statustime=01-29-2012 15:45:24
And here is his /etc/resolv.conf after installing:
c1n1:~ # cat /etc/resolv.conf
### /etc/resolv.conf file autogenerated by netconfig!
#
# Before you change this file manually, consider to define the
# static DNS configuration using the following variables in the
# /etc/sysconfig/network/config file:
# NETCONFIG_DNS_STATIC_SEARCHLIST
# NETCONFIG_DNS_STATIC_SERVERS
# NETCONFIG_DNS_FORWARDER
# or disable DNS configuration updates via netconfig by setting:
# NETCONFIG_DNS_POLICY=''
#
# See also the netconfig(8) manual page and other documentation.
#
# Note: Manual change of this file disables netconfig too, but
# may get lost when this file contains comments or empty lines
# only, the netconfig settings are same with settings in this
# file and in case of a "netconfig update -f" call.
#
### Please remove (at least) this line when you modify the file!
c1n1:~ # host xcat-suse
;; connection timed out; no servers could be reached
The "NETCONFIG_DNS_STATIC_SERVERS" attribute it is mentioning above is
also empty.
The hardeths postscript does work as designed however:
c1n1:/etc/sysconfig/network # cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
STARTMODE=onboot
DHCLIENT_PRIMARY_DEVICE=yes
IPADDR=192.168.1.200
NETMASK=255.255.255.0
Unless I am missing something, I am just not seeing anything generated in
the autoinst file that would fill /etc/resolv.conf in for the case of
diskfull nodes not utilizing DHCP.
I can always just write a postscript that fills in the DNS attributes in
/etc/resolv.conf (and have seen other sites do the same), but I wasn't
sure if keeping the DNS configuration when using the hardeths postscript
was supposed to be a built-in, working functionality with 2.6 when
utilizing the management node as the DNS server.
Here are my site table attributes:
xcat-suse:~ # tabdump site
#key,value,comments,disable
"blademaxp","64",,
"fsptimeout","0",,
"installdir","/install",,
"ipmimaxp","64",,
"ipmiretries","3",,
"ipmitimeout","2",,
"consoleondemand","no",,
"master","192.168.1.1",,
"forwarders","172.16.99.1",,
"nameservers","192.168.1.1",,
"maxssh","8",,
"ppcmaxp","64",,
"ppcretry","3",,
"ppctimeout","0",,
"powerinterval","0",,
"syspowerinterval","0",,
"sharedtftp","0",,
"SNsyncfiledir","/var/xcat/syncfiles",,
"tftpdir","/tftpboot",,
"xcatdport","3001",,
"xcatiport","3002",,
"xcatconfdir","/etc/xcat",,
"timezone","America/New_York",,
"useNmapfromMN","no",,
"enableASMI","no",,
"db2installloc","/mntdb2",,
"databaseloc","/var/lib",,
"sshbetweennodes","ALLGROUPS",,
"dnshandler","ddns",,
"vsftp","y",,
"cleanupxcatpost","no",,
"domain","site.local",,
"installloc","xcat-suse:/install",,
xcat-suse:~ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:59:87:B0
inet addr:172.16.99.234 Bcast:172.16.99.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26412 errors:0 dropped:0 overruns:0 frame:0
TX packets:21189 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2510431 (2.3 Mb) TX bytes:3681162 (3.5 Mb)
eth1 Link encap:Ethernet HWaddr 00:0C:29:59:87:BA
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:552754 errors:0 dropped:0 overruns:0 frame:0
TX packets:2447039 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38007415 (36.2 Mb) TX bytes:3647660521 (3478.6 Mb)
On 1/29/2012 5:39 AM, Lissa Valletta wrote:
The mkresolvconf script was written to support the Service Node move
function we now support in hiearchical clusters. It was not written for
basic setup during install. There was a big change for Name resolutions
from 2.3 to 2.6. We no longer use bind but have replaced it with ddns.
Could you check you setup based on this documentation:
http://sourceforge.net/apps/mediawiki/xcat/index.php?title=Cluster_Name_Resolution
IF you note in the doc "The resolv.conf files for the compute nodes will
be
created automatically using the "domain" and "nameservers" values set in
the site definition. " Need to check your site table attributes.
Lissa K. Valletta
2-3/T12
Poughkeepsie, NY 12601
(tie 293) 433-3102
From: Russell Jones <[email protected]>
To: xCAT Users Mailing list <[email protected]>
Date: 01/27/2012 05:42 PM
Subject: [xcat-user] Diskfull nodes and resolv.conf
Hi all,
I am comparing the autoinst files generated between xcat 2.3 and 2.6,
and it appears that at one point (xcat 2.3) the /etc/resolv.conf was
filled in via the "/opt/xcat/sbin/makenamed.conf" file. Looking at the
autoinst files in 2.6, while this file exists the autoinst files being
generated do not contain any entries for placing data in
/etc/resolv.conf. As a result, if I use the "hardeths" script the node
has no DNS information configured.
I did however see that there is now a postscript named "mkresolvconf"
that seems to take care of this. Is this the preferred method now of
configuring a static IP and DNS information on a node (hardeths +
mkresolvconf)?
Thanks!
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user