> We'd like to use short hostnames as all of our keys in the xCAT tables, to save typing, and have the FQDN assigned as the hostname after an install.

This should already be the standard behavior as long as your nodeadd contained the short hostname and not the FQDN. What are you seeing on your end?



On 11/20/2012 3:22 PM, Pocina, Goran wrote:

We'd like to use short hostnames as all of our keys in the xCAT tables, to save typing, and have the FQDN assigned as the hostname after an install.

We could fix the hostname with a postscript, or perhaps a Kickstart statement, however we'd prefer to have it done more transparently.

It would be great if we could use something like a regex in "network.nodehostname="/\z/.nyc.desres.deshaw.com/" to do this automatically:

[root@drdkvm0003 dump1]# lsdef -t network 149_77_52_0-255_255_254_0

Object name: 149_77_52_0-255_255_254_0

ddnsdomain=nyc.desres.deshaw.com

domain=nyc.desres.deshaw.com

dynamicrange=149.77.53.132-149.77.53.191

gateway=149.77.52.10

mask=255.255.254.0

mgtifname=!remote!

nameservers=149.77.52.53,149.77.52.35,10.232.15.130

net=149.77.52.0

* nodehostname=/\z/.nyc.desres.deshaw.com/*

ntpservers=149.77.52.24,149.77.52.41,149.77.52.138,149.77.52.129

tftpserver=149.77.53.252

But this doesn't seem to have any effect on the DHCP host-name entry generated in the leases file, or on the "HOSTNAME=develkv8" entry put in /etc/sysconfig/network after the install.

BTW. We do have the FQDN listed first in /etc/hosts and DNS:

[root@develkv8 ~]# hostname

develkv8

[root@develkv8 ~]# host 149.77.53.121

121.53.77.149.in-addr.arpa domain name pointer *develkv8.nyc.desres.deshaw.com.*

[root@develkv8 ~]# grep develkv8 /etc/hosts

>>>149.77.53.121 *develkv8.nyc.desres.deshaw.com* develkv8 # row 0 rack 0 rank 0

Is there a transparent way to do this?

Thanks.



------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov


_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to